:root {
  --primary-color: #3498db;
  --secondary-color: #e74c3c;
  --tertiary-color: #2ecc71;
  --bg-color: #f9f9f9;
  --text-color: #333;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --persona1-color: #3498db;
  --persona2-color: #e74c3c;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: var(--text-color);
}

/* Prevent scrolling when loading overlay is active */
body.loading-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  text-align: center;
  color: var(--text-color);
}

h1 {
  margin-bottom: 30px;
  font-size: 2.2em;
}

h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8em;
}

h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-link {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ========================= */
/* Full-Screen Loading Overlay */
/* ========================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(10px);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  max-width: 500px;
  padding: 40px;
}

/* Logo and Animation */
.loading-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
}

.loading-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.loading-svg {
  width: 100%;
  height: 100%;
  color: white;
}

.progress-circle {
  animation: loading-progress 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes loading-progress {
  0% {
    stroke-dashoffset: 314;
    transform: rotate(0deg);
  }
  50% {
    stroke-dashoffset: 157;
    transform: rotate(180deg);
  }
  100% {
    stroke-dashoffset: 314;
    transform: rotate(360deg);
  }
}

.mic-icon {
  animation: pulse-scale 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.loading-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-expand 2s ease-out infinite;
}

@keyframes pulse-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Loading Text */
.loading-text {
  margin-bottom: 40px;
  animation: fade-in-up 0.8s ease-out;
}

.loading-title {
  font-size: 2em;
  font-weight: 300;
  margin: 0 0 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  }
}

.loading-message {
  font-size: 1.1em;
  opacity: 0.9;
  margin: 0;
  animation: fade-in 1s ease-out 0.3s both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.loading-progress {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.loading-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #f0f0f0 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Loading Steps */
.loading-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.loading-steps::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

.loading-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.loading-step.active {
  opacity: 1;
}

.loading-step.active .step-dot {
  background: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: step-pulse 1s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Error State */
.loading-error {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.loading-error i {
  font-size: 64px;
  color: #ff6b6b;
  margin-bottom: 20px;
  animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.loading-error h3 {
  color: white;
  font-size: 1.8em;
  margin: 20px 0;
}

.error-details {
  opacity: 0.9;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.retry-button, .back-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1em;
}

.retry-button:hover, .back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .loading-content {
    padding: 20px;
  }
  
  .loading-title {
    font-size: 1.5em;
  }
  
  .loading-steps {
    flex-direction: column;
    gap: 20px;
  }
  
  .loading-steps::before {
    top: 0;
    left: 12px;
    right: auto;
    width: 1px;
    height: 80%;
  }
  
  .step-label {
    font-size: 0.9em;
  }
}

/* Old loading styles (kept for backward compatibility) */
.loading {
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--primary-color);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  color: var(--secondary-color);
}

.podcast-info {
  margin-bottom: 40px;
  text-align: center;
}

.podcast-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.podcast-description {
  margin: 20px 0;
  font-style: italic;
  color: #666;
  font-size: 16px;
}

/* WaveSurfer container */
.audio-player-container {
  margin-top: 30px;
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}


#waveform {
  width: 100%;
}

#minimap {
  width: 100%;
}

/* Audio controls */
.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 16px; 
}

.control-btn {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.control-btn.play-btn {
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:active {
  transform: scale(0.95);
}

.seek-label {
  position: absolute;
  bottom: -20px;
  font-size: 10px;
  color: #666;
  white-space: nowrap;
}

.button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button.primary {
  background-color: var(--primary-color);
}

.button.secondary {
  background-color: var(--secondary-color);
}

.button.tertiary {
  background-color: var(--tertiary-color);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Download buttons */
.download-section {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.download-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.download-btn {
  padding: 10px 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.download-btn:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Q&A Section Styles */
.qa-section {
  margin-top: 40px;
}

.question-input-wrapper {
  margin-bottom: 30px;
}

.question-input-container {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px;
  transition: all 0.3s ease;
}

.question-input-container:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.mic-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #8b5cf6;
  font-weight: 500;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.mic-icon:hover {
  background-color: rgba(139, 92, 246, 0.05);
  border-radius: 4px;
}

.mic-icon:active {
  background-color: rgba(139, 92, 246, 0.1);
}

.mic-icon i {
  font-size: 18px;
}

.question-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-color);
  outline: none;
}

.question-input::placeholder {
  color: #999;
}

.submit-button {
  padding: 10px 24px;
  background-color: #8b5cf6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.submit-button:hover {
  background-color: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.answering-container {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  display: none;
}

.answering-status {
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.processing-indicator {
  margin-top: 20px;
  text-align: center;
  padding: 20px;
}

.processing-text {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.processing-dots {
  display: inline-block;
}

.processing-dots span {
  animation: dots 1.4s infinite ease-in-out;
  font-size: 24px;
  color: var(--primary-color);
}

.processing-dots span:nth-child(1) { animation-delay: -0.32s; }
.processing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dots {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* Stream audio player styling */
.stream-container {
  margin-top: 20px;
  display: none;
}

#stream-audio-player {
  width: 100%;
  border-radius: 10px;
}

/* Transcript styling */
.transcript-container {
  margin-top: 40px;
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.transcript-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.transcript-heading h3 {
  margin: 0;
  font-size: 20px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.language-selector label {
  color: #666;
  font-weight: 500;
  margin: 0;
}

.language-dropdown {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  min-width: 100px;
  outline: none;
}

.language-dropdown:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.transcript-content {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #fafafa;
  transition: max-height 0.3s ease;
}

.transcript-table {
  width: 100%;
  border-collapse: collapse;
}

.transcript-row {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
  cursor: pointer;
}

.transcript-row:hover {
  background-color: #f5f5f5;
}

.transcript-row.current-playing {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 3px solid var(--primary-color);
}

.transcript-row.current-playing .transcript-cell {
  padding-left: 13px;
}

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

.transcript-cell {
  padding: 12px 16px;
  vertical-align: top;
}

.transcript-timestamp {
  width: 100px;
  color: #666;
  font-size: 14px;
  font-family: monospace;
}

.transcript-speaker {
  width: 120px;
  font-weight: 600;
  font-size: 14px;
}

.transcript-speaker.persona-1 {
  color: var(--persona1-color);
}

.transcript-speaker.persona-2 {
  color: var(--persona2-color);
}

.transcript-text {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 15px;
}



.transcript-cell p {
  display: flex;
  align-items: flex-start;
  margin: 0 0 6px 0;
  padding-bottom: 6px;
}

.transcript-cell p:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

span.transcript-speaker {
  font-weight: bold;
}

p span:not(.transcript-speaker) {
  flex: 1; /* let the text take the remaining space */
}


.toggle-transcript {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.no-transcript {
  text-align: center;
  padding: 40px;
  color: #888;
}

.no-transcript i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.ai-disclaimer {
  margin-top: 20px;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.ai-disclaimer p {
  margin: 0;
  line-height: 1.4;
}

.recording-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.recording-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 30px;
  border-radius: 10px;
  width: 500px;
  max-width: 90%;
  text-align: center;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.qa-history {
  margin-top: 50px;
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.qa-history-header {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.qa-history-header i {
  color: var(--primary-color);
}

.qa-history-empty {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.qa-history-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
  display: block;
}

.qa-item {
  margin-bottom: 25px;
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
  transition: all 0.2s ease;
}

.qa-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.qa-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.qa-date {
  font-size: 12px;
  color: #888;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 12px;
}

.qa-question {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.qa-question i {
  margin-top: 2px;
  flex-shrink: 0;
}

.qa-answer {
  margin-top: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.qa-answer.collapsed {
  max-height: 0;
  margin-top: 0;
}

.qa-answer.expanded {
  max-height: 1000px;
}

.qa-answer-content {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid var(--tertiary-color);
}

.qa-answer-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.qa-audio {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.qa-audio-player {
  width: 100%;
  border-radius: 6px;
  background-color: white;
}

.qa-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.qa-toggle:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.qa-toggle i {
  transition: transform 0.2s ease;
}

.qa-toggle.expanded i {
  transform: rotate(180deg);
}

/* Rating Widget */
.rating-widget {
  margin: 30px 0;
  padding: 25px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  text-align: center;
}

.rating-widget h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rating-widget > p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Thumbs Rating */
.thumbs-rating h4 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.thumbs-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.thumbs-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.thumbs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.thumbs-btn.selected.thumbs-up {
  background-color: #d4edda;
  border-color: var(--tertiary-color);
  color: var(--tertiary-color);
}

.thumbs-btn.selected.thumbs-down {
  background-color: #f8d7da;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.thumbs-btn i {
  font-size: 24px;
}

/* Star Rating */
.star-rating {
  text-align: left;
  margin-bottom: 20px;
}

.rating-category {
  margin-bottom: 20px;
}

.rating-category h4 {
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 16px;
}

.stars {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.stars i {
  font-size: 20px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.stars i:hover,
.stars i.active {
  color: #ffc107;
}

.rating-category textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

/* Rating Actions */
.rating-actions {
  margin-top: 20px;
}

/* Rating Success */
.rating-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--tertiary-color);
  font-weight: 600;
  margin-top: 15px;
}

.rating-success i {
  font-size: 18px;
}

/* Header Styles */
.app-header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 40px;
}

.logo-link.disabled {
  pointer-events: none;
  cursor: default;
}

.logo-img {
  height: 32px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.header-edit-btn:hover {
  background-color: #f5f5f5;
  color: #333;
  border-color: #ccc;
}

.header-edit-btn i {
  font-size: 14px;
}

.record-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.record-button.recording {
  background-color: #c0392b;
  animation: pulse 2s infinite;
}

.record-button:hover {
  background-color: #c0392b;
}

.record-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
}

.recording-status {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  color: #666;
  min-height: 24px;
}

.question-display {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  display: none;
}

.question-header {
  font-weight: bold;
  margin-bottom: 10px;
}

.question-text {
  margin-bottom: 20px;
  font-style: italic;
}

.question-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.question-controls button {
  padding: 8px 16px;
}

.submit-question {
  background-color: #2ecc71;
}

.rerecord-question {
  background-color: #e67e22;
}

.audio-visualization {
  height: 60px;
  width: 100%;
  background-color: #000;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  display: none;
}

/* Animation for the recording button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* Tab Navigation Styles */
.tab-navigation {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.tab-button:hover {
  color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

.tab-button i {
  font-size: 18px;
}

.tab-content {
  margin-top: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Community Questions Player Styles */
.community-player-container {
  padding: 20px;
}

.community-audio-player {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

/* WaveSurfer containers */
.community-waveform {
  width: 100%;
  margin-bottom: 10px;
}

.community-minimap {
  width: 100%;
  height: 30px;
}

.community-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
}

.community-playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.community-right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.community-time-display {
  font-size: 14px;
  color: #666;
  min-width: 80px;
}

.community-control-btn {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.community-control-btn.play-btn {
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.community-control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.community-control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.community-control-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Progress Bar */
.community-progress-container {
  margin-top: 20px;
}

.community-progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.community-progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s;
}

.community-time-display {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-family: monospace;
}

/* Current Question Section */
.current-question-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

.current-question-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-question-section h3 i {
  color: var(--primary-color);
  font-size: 20px;
}

.current-question-content {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.no-question-selected {
  text-align: center;
  color: #888;
  width: 100%;
}

.no-question-selected i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
  display: block;
}

.no-question-selected p {
  margin: 0;
  font-size: 14px;
}

.question-text {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  font-weight: 500;
}

/* Current Answer Section */
.current-answer-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border-left: 4px solid var(--tertiary-color);
}

.current-answer-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-answer-section h3 i {
  color: var(--tertiary-color);
  font-size: 20px;
}

.current-answer-content {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  min-height: 100px;
  max-height: 250px;
  overflow-y: auto;
}

.no-answer-yet {
  text-align: center;
  color: #888;
  padding: 20px;
}

.no-answer-yet i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
  display: block;
}

.no-answer-yet p {
  margin: 0;
  font-size: 14px;
}

.answer-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.answer-text p {
  margin: 0 0 12px 0;
}

.answer-text p:last-child {
  margin-bottom: 0;
}

.answer-text .transcript-speaker {
  font-weight: 600;
  color: #333;
  margin-right: 4px;
}

.answer-text .transcript-speaker.persona-1 {
  color: var(--persona1-color);
}

.answer-text .transcript-speaker.persona-2 {
  color: var(--persona2-color);
}

/* Legacy styles for backwards compatibility */
.community-current-qa {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.community-current-qa h3 {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 18px;
}

.community-transcript {
  max-height: 300px;
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.no-community-qa {
  text-align: center;
  color: #888;
  padding: 40px 20px;
}

.no-community-qa i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
  display: block;
}

.current-qa-content {
  padding: 10px;
}

.current-qa-question {
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.current-qa-question i {
  color: var(--primary-color);
  margin-right: 8px;
}

.current-qa-answer {
  padding: 15px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--tertiary-color);
}

.current-qa-answer i {
  color: var(--tertiary-color);
  margin-right: 8px;
}

.answer-text {
  margin-top: 10px;
  line-height: 1.6;
  color: #555;
}

.answer-text p {
  display: flex;
  align-items: flex-start;
  margin: 0 0 6px 0;
  padding-bottom: 6px;
}

.answer-text p:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}


/* Playlist Styles */
.community-playlist {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.community-playlist h3 {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 18px;
}

.community-playlist-items {
  max-height: 400px;
  overflow-y: auto;
}

.playlist-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.playlist-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.playlist-item.active {
  background: rgba(52, 152, 219, 0.1);
  border-color: var(--primary-color);
}

.playlist-item-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.playlist-item-number {
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.playlist-item.active .playlist-item-number {
  background: var(--tertiary-color);
}

.playlist-item-details {
  flex: 1;
}

.playlist-item-question {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 5px;
  line-height: 1.4;
}

.playlist-item-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #888;
}

.playlist-item-name {
  font-weight: 600;
}

.playlist-item-delete {
  background: transparent;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.playlist-item-delete:hover {
  background: rgba(231, 76, 60, 0.1);
  transform: scale(1.1);
}

.no-community-questions {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

.no-community-questions i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
  display: block;
}

.loading-community {
  text-align: center;
  padding: 40px 20px;
}

/* Delete Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: var(--text-color);
  font-size: 20px;
}

.modal-body {
  padding: 20px;
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.delete-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delete-warning i {
  color: #ffc107;
  font-size: 18px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cancel-btn {
  background: #6c757d;
  color: white;
}

.cancel-btn:hover {
  background: #5a6268;
}

.delete-btn {
  background: var(--secondary-color);
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}

/* Additional Controls Bar */
.additional-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Zoom Controls */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-default-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.zoom-default-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.zoom-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoom-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.zoom-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.zoom-level {
  font-size: 12px;
  color: #666;
  min-width: 35px;
  text-align: right;
}

/* Speed Control */
.speed-control {
  position: relative;
}

.speed-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #666;
}

.speed-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.speed-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 100px;
  overflow: hidden;
}

.speed-option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.speed-option:hover {
  background: #f0f0f0;
}

.speed-option.active {
  background: var(--primary-color);
  color: white;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.volume-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.volume-value {
  font-size: 12px;
  color: #666;
  min-width: 35px;
  text-align: right;
}

/* Community/Your Questions Volume Controls */
.community-volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.community-volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  padding: 0;
}

.community-volume-btn:hover {
  color: var(--primary-color);
}

.community-volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.community-volume-value {
  font-size: 12px;
  color: #666;
  min-width: 35px;
  text-align: right;
}

.community-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.community-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.community-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.community-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Community Speed Control */
.community-speed-control {
  position: relative;
}

.community-speed-btn {
  padding: 6px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-speed-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.community-speed-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 80px;
  overflow: hidden;
}

.community-speed-option {
  display: block;
  width: 100%;
  padding: 6px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.community-speed-option:hover {
  background: #f0f0f0;
}

.community-speed-option.active {
  background: var(--primary-color);
  color: white;
}

/* Toggle Switch */
.toggle-questions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

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

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-label {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

/* Download Dropdown */
.download-dropdown-container {
  position: relative;
  margin-left: auto;
}

.download-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.download-toggle-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 200px;
  overflow: hidden;
}

.download-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-option:hover {
  background: #f0f0f0;
  color: var(--primary-color);
}

.download-option:disabled {
  /* background-color: #cccccc; */
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: #aeaeae;
  background: white;
}

/* Player Mode Toggle */
.player-mode-toggle {
  text-align: center;
  margin-top: 8px;
  padding: 0;
}

.legacy-player-link,
.normal-player-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  /* padding: 8px 16px; */
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(249, 250, 251, 0.5);
}

.legacy-player-link:hover,
.normal-player-link:hover {
  background: rgba(249, 250, 251, 1);
  color: #4b5563;
  text-decoration: none;
}

.legacy-player-link i {
  color: #f59e0b;
}

.normal-player-link i {
  color: #10b981;
}

/* Legacy Player Mode Styles */
.legacy-mode .question-input-wrapper,
.legacy-mode .toggle-questions,
.legacy-mode #download-qa-only,
.legacy-mode #download-qa-audio,
.legacy-mode .zoom-controls {
  display: none !important;
}

.legacy-mode .audio-player-container {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  padding: 20px;
  border-radius: 12px;
}

.legacy-mode-indicator {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.legacy-mode-indicator i {
  color: #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .additional-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .zoom-controls {
    justify-content: center;
  }
  
  .speed-control {
    text-align: center;
  }
  
  .toggle-questions {
    justify-content: center;
  }
  
  .download-dropdown-container {
    margin-left: 0;
    text-align: center;
  }
  
  .download-dropdown {
    right: 50%;
    transform: translateX(50%);
  }
}

/* Privacy Indicator Styles */
.privacy-indicator {
  color: #8b5cf6;
  font-size: 12px;
  margin-left: 5px;
  cursor: help;
}

.privacy-notice {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6b46c1;
}

.privacy-notice i {
  color: #8b5cf6;
  font-size: 16px;
}

.privacy-notice span {
  flex: 1;
}

/* Tab button with privacy icon styling */
.tab-button .privacy-indicator {
  display: inline-block;
}