

/* Flex Utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-1 {
  gap: 0.25rem;
}

.text-sm {
  font-size: 0.875rem;
}

.font-medium {
  font-weight: 500;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--muted));
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: hsl(var(--primary));
}

input:focus + .slider {
  box-shadow: 0 0 1px hsl(var(--primary));
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.slider.round {
  border-radius: 22px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Bilingual mode label styling */
.bilingual-mode-label {
  white-space: nowrap;
  color: hsl(var(--foreground));
}

@media (max-width: 480px) {
  /* Extra small screens */
  .bilingual-mode-label {
    font-size: 0.7rem;
  }

  .toggle-switch {
    width: 36px;
    height: 20px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
  }

  input:checked + .slider:before {
    transform: translateX(16px);
  }
}

/* Brand Styles */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: hsl(var(--primary));
  font-size: 1.25rem;
}

/* Theme Toggle Styles */
.theme-selector {
  position: relative;
  margin-left: 1rem;
}

.button-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-icon.active {
  background-color: hsla(var(--primary), 0.2);
  color: hsl(var(--primary));
}



/* Settings Panel Styles */
.settings-panel {
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}

.settings-content {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gap-4 {
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-select {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  width: 100%;
}

.premium-toggle-container {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid hsl(var(--border));
}

.toggle-switch-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

/* Disabled model option styles */
option.premium-disabled {
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted));
  font-style: italic;
}

.try-it-free-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem; /* Reduced top and bottom padding */
}

.try-it-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Reduced gap between elements */
}

/* Time Limit Notice */
.time-limit-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced gap */
  background-color: hsla(var(--primary), 0.1);
  border-radius: var(--radius);
  padding: 0.5rem; /* Reduced padding */
  margin: 0 auto 0.25rem; /* Reduced bottom margin */
  max-width: 800px;
  text-align: center;
}

.time-limit-notice i {
  color: hsl(var(--primary));

  font-size: 1.25rem;

}

.time-limit-notice p {
  margin: 0;
  color: hsl(var(--foreground));

}

.time-limit-notice .highlight {
  color: hsl(var(--primary));
  font-weight: 600;
}

.time-limit-notice .free-tier-info {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

/* Header Controls */
.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Timer Display */
.timer-display {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background-color: hsla(var(--primary), 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  vertical-align: middle;
  width: 3.5rem; /* Fixed width to prevent button movement */
  text-align: center;
}

/* Inline Record Button */
.record-button-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.record-button-inline:hover {
  filter: brightness(0.9);
}

.record-button-inline.recording {
  background-color: hsl(var(--destructive));
  animation: pulse 1.5s infinite;
}

/* Transcription Card */
.transcription-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem; /* Reduced padding */
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
  margin-bottom: 0.75rem; /* Reduced margin */
  text-align: center;
}

.card-header h3 {
  font-family: 'Poppins', sans-serif;

  font-size: 1.5rem;

  margin: 0;
  color: hsl(var(--foreground));
}

/* Language Selection */
.language-selection {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced gap */
  margin-bottom: 0.75rem; /* Reduced margin */
}

.language-selection label {
  font-weight: 500;
  color: hsl(var(--foreground));

}

.language-select {
  flex: 1;

  padding: 0.5rem;

  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));

  font-size: 0.875rem;

}

/* Recording Controls */
.recording-controls {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the button */
  gap: 0.25rem; /* Further reduced gap */
  margin-bottom: 0.5rem; /* Further reduced margin */
}

.record-button-container {
  position: relative;
  /* Removed flex: 1 to make it only as wide as needed */
}

.record-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem; /* Minimal gap */
  width: auto;
  min-width: 70px; /* Further reduced minimum width */
  padding: 0.2rem 0.35rem; /* Minimal padding */
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.7rem; /* Smallest reasonable font size */
  cursor: pointer;
  transition: all 0.2s ease;
}

.record-button:hover {
  filter: brightness(0.9);
}

.record-button.recording {
  background-color: hsl(var(--destructive));
  animation: pulse 1.5s infinite;
}

.record-button.recording i {
  animation: blink 1s infinite;
}

.recording-timer {
  display: inline-block;
  font-size: 0.75rem; /* Smaller font */
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.35rem; /* Reduced padding */
  border-radius: var(--radius);
  margin-left: 0.5rem; /* Add margin to separate from button */
}

.upload-container {
  position: relative;
  display: inline-block;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-label:hover {
  background-color: hsl(var(--secondary));
}

.audio-upload {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: hsl(var(--secondary));
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Transcription Result */
.transcription-result {
  margin-bottom: 1.5rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem; /* Reduced margin */
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-header h4 {
  margin: 0;

  font-size: 1rem;

  color: hsl(var(--foreground));
}

.copy-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button:not(:disabled):hover {
  background-color: hsl(var(--secondary));
}

.copy-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.transcription-text {

  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.2s ease;
  outline: none;
}

.transcription-text:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsla(var(--primary), 0.2);
}

.edit-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
}

.edit-hint i {
  font-size: 0.7rem;
}

.placeholder-text {
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin: 2rem 0;
}

/* Bilingual Mode Styles */
.bilingual-mode-container {
  display: grid;
  grid-template-columns: 1fr;

  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bilingual-mode-container {
    grid-template-columns: 1fr 1fr;

  }
}

/* Speaker cards for bilingual mode */
.speaker-card-1 .card-header {
  background-color: hsla(240, 100%, 97%, 0.5);
}

.speaker-card-2 .card-header {
  background-color: hsla(170, 100%, 97%, 0.5);
}

/* Translation Styles */
.translation-result {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.translation-actions {
  display: flex;
  gap: 0.5rem;
}

.translate-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.translate-button:hover:not(:disabled) {
  filter: brightness(0.9);
}

.translate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.translation-text {

  min-height: 150px;
  max-height: 250px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  line-height: 1.5;

  margin-top: 0.75rem;
}

/* Call to Action */
.try-it-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.try-it-cta p {
  margin: 0;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Features Comparison */
.features-comparison {
  max-width: 800px;
  margin: 0 auto;
}

.features-comparison h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.comparison-table {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background-color: hsl(var(--secondary));
  font-weight: 600;
}

.comparison-header > div {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid hsl(var(--border));
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row > div {
  padding: 0.75rem 1rem;
  text-align: center;
}

.feature-name {
  text-align: left !important;
  font-weight: 500;
}

.try-it-free {
  color: hsl(var(--secondary-foreground));
}

.free-trial {
  color: hsl(var(--muted-foreground));
}

.basic-pack {
  color: hsl(var(--primary));
  font-weight: 500;
}

.pro-pack {
  color: hsl(var(--primary));
  font-weight: 600;
}

.fa-check {
  color: hsl(142, 76%, 36%);
}

.fa-times {
  color: hsl(var(--destructive));
}

/* Transcribing Indicator */
.transcribing-indicator {
  color: hsl(var(--primary));
  font-style: italic;
  margin-top: 0.5rem;
  animation: fade-pulse 1.5s infinite;
}

@keyframes fade-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 hsla(var(--destructive), 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px hsla(var(--destructive), 0);
  }
  100% {
    box-shadow: 0 0 0 0 hsla(var(--destructive), 0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 hsla(var(--primary), 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px hsla(var(--primary), 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 hsla(var(--primary), 0);
    transform: scale(1);
  }
}

.pulse-animation {
  animation: pulse 1.5s infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .recording-controls {

    flex-direction: column;

  }

  .features-comparison {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 650px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  }

}
