/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000; /* Black background */
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Section Title */
.and-calculator .section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Main Converter Container */
.converter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background-color: #1a1a1a; /* Dark gray container */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 20px auto;
}

/* Input and Output Containers */
.input-container,
.output-container {
  background-color: #2d2d2d;
  color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.input-container:hover,
.output-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Card Header */
.input-container h3,
.output-container h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.input-container h3 i,
.output-container h3 i {
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.input-container h3 i:hover,
.output-container h3 i:hover {
  opacity: 1;
}

/* Textarea Editor */
.ace_editor {
  width: 100%;
  height: 150px;
  background-color: #333;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  padding: 10px;
  resize: vertical;
  outline: none;
  transition: border 0.3s ease;
}

.ace_editor:focus {
  border-color: #5f9ea0;
  box-shadow: 0 0 0 2px rgba(95, 158, 160, 0.2);
}

/* Editor Stats */
.editor-stats {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ccc;
}

/* Toolbar */
.converter-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.converter-toolbar button {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 500;
}

.converter-toolbar button:nth-child(1) {
  background-color: #5f9ea0; /* Teal */
}

.converter-toolbar button:nth-child(2) {
  background-color: #3498db; /* Blue */
}

.converter-toolbar button:nth-child(3) {
  background-color: #e74c3c; /* Red */
}

.converter-toolbar button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Checkbox Label */
.auto-update-label {
  font-size: 0.9rem;
  margin-left: auto;
  color: #ccc;
  display: flex;
  align-items: center;
}

.auto-update-label input[type="checkbox"] {
  margin-right: 5px;
}