/* Container styling using a class selector */
.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Title styling */
.title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #2c3e50;
}

/* Subtitle styling */
.subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 15px;
  color: #555;
}

/* Form styling */
.tts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Text input styling */
.text-input {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

/* Select box styling */
.select-box {
  width: 100%;
  max-width: 300px;
  font-size: 16px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

/* Label styling */
.form-label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  font-size: 20px;
}

/* Checkbox label styling */
.checkbox-label {
  margin-right: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    transform: scale(1.5); /* Adjust the checkbox size as needed */
    vertical-align: middle;
    cursor: pointer;
    accent-color: #4CAF50; /* Adds a green accent color */
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
    margin-right: 8px;
    outline: none;
    border-radius: 4px; /* Slight rounding for aesthetics */
}

/* Optional: Add a subtle hover effect */
.checkbox-label input[type="checkbox"]:hover {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
}

/* Drag & drop area styling */
.drag-drop {
  border: 2px dashed #aaa;
  text-align: center;
  padding: 25px;
  max-width: 300px;
  cursor: pointer;
  border-radius: 6px;
  position: relative;
  transition: background 0.3s;
  background-color: #fafafa;
}
.drag-drop:hover {
  background-color: #f0f0f0;
}

/* File input styling */
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* File name display styling */
.file-name-display {
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
}

/* Section styling */
.section {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
}
.section h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.3em;
  color: #444;
}

/* Note styling */
.note {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}

/* Slider grid styling */
.slider-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.slider-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

/* Button styling */
.generate-btn {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  padding: 15px 25px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s, background 0.2s;
  width: 200px;
  align-self: center;
}
.generate-btn:hover {
  transform: scale(1.05);
}

/* Disabled button styling */
.disabled-btn {
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* Blinking dots animation */
.blinking-dots {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  animation: blink 1.2s infinite steps(4, start);
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* Result area styling */
#result-area {
  margin-top: 25px;
  font-size: 16px;
  text-align: center;
}

/* Audio player styling */
#audio-player {
  margin-top: 20px;
  width: 100%;
  max-width: 500px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
