/* AI Talk Coach - Mobile-First Responsive CSS */

/* Design Token System */
:root {
  /* Brand Colors */
  --brand-400: #9A8FFF;
  --brand-500: #7466FF;
  --brand-600: #5E51F5;
  --aqua-400: #5BE0D9;
  --aqua-500: #1FC3C3;
  --aqua-600: #13B2B2;
  --gradient-primary: linear-gradient(135deg, var(--brand-500), var(--aqua-500));

  /* Neutrals */
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;

  /* Semantic Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Dark Mode Support */
  --bg-dark: #0B1020;
  --card-dark: #111827;
  --text-dark: #F1F5F9;
  --muted-dark: #9CA3AF;
  --gradient-primary-dark: linear-gradient(135deg, #8EA0FF, #6FE9DF);
}

/* New Design System Utilities */
.grad-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule-grad {
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.card {
  background: var(--card);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Gradient Accent Helpers */
.gradient-divider {
  height: 2px;
  background: var(--gradient-primary);
  margin: 2rem 0;
  opacity: 0.6;
}

.gradient-underline {
  position: relative;
}

.gradient-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Landing Page Styles */
.landing-page {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

/* Hero Section */
.hero-section {
  padding: 4rem 1rem 6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 50px;
  font-size: 0.875rem;
  color: #0369a1;
  margin-bottom: 1.5rem;
}

.badge-icon {
  font-size: 0.75rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 2px 4px rgba(116, 102, 255, 0.2);
}

.btn-primary:hover {
  filter: saturate(1.05) brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(116, 102, 255, 0.3);
}

.btn-secondary {
  border: 1px solid var(--brand-500);
  color: var(--brand-600);
  background: white;
  border-radius: 12px;
  padding: 10px 16px;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: var(--brand-600);
}

.btn-secondary-outline {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.btn-secondary-outline:hover {
  background: #f9fafb;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #059669;
  font-weight: 500;
}

.feature-icon {
  font-size: 1rem;
}

/* Demo Card */
.hero-demo {
  order: -1;
}

@media (min-width: 768px) {
  .hero-demo {
    order: 0;
  }
}

.demo-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.demo-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.demo-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 6px;
}

.demo-prompt {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 1rem;
}

.demo-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.timer-presets {
  display: flex;
  gap: 0.5rem;
}

.preset-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.preset-btn.active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.record-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #111827;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

/* Stats Section */
.stats-section {
  background: white;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 3rem 1rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Why Now Section - Clean, minimal style matching page */
.why-now-section {
  background: #ffffff;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.why-now-container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-now-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .why-now-badges {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.why-now-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  max-width: 450px;
  text-align: left;
}

.why-now-badge .badge-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.why-now-badge .badge-text {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #6b7280;
  font-weight: 500;
}

/* Beta Status Section - Simple banner style */
.beta-status-section {
  background: #f9fafb;
  padding: 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.beta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.beta-card {
  background: transparent;
  border: none;
  padding: 0;
  display: block;
}

.beta-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.beta-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.beta-content p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.beta-progress {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 300px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--aqua-500);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8125rem;
  color: #9ca3af;
  font-weight: 500;
  text-align: center;
}

/* Section Styles */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 3rem;
}

/* How It Works */
.how-it-works {
  background: #f9fafb;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Features Section */
.features-section {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  background: #dcfce7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Demo Section */
.demo-section {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .demo-content {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.demo-text p {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 2rem;
}

.demo-features {
  margin-top: 1.5rem;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.feature-dot {
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
}

.preview-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.preview-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}

.preview-icon {
  font-size: 1rem;
}

/* FAQ Section */
.faq-section {
  background: #f9fafb;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: #111827;
  color: white;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.note-icon {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .steps-grid,
  .features-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }
}

/* Practice Interface Styles */
.practice-interface {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.practice-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  min-height: 70vh;
  width: 100% !important;
}

/* Force two-column layout on screens 640px and wider */
@media (min-width: 640px) {
  .practice-layout {
    grid-template-columns: 1fr 380px !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }
}

/* Enhanced layout for larger screens */
@media (min-width: 1200px) {
  .practice-layout {
    grid-template-columns: 1fr 420px !important;
    gap: 3rem !important;
  }
}

/* Practice Panel (Left Side) */
.practice-panel {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100% !important;
  overflow: hidden;
}

.practice-header h1 {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.practice-header p {
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Prompt Display */
.prompt-display {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.prompt-header h3 {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prompt-target-time {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.shuffle-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.shuffle-btn:hover {
  background: #2563eb;
}

.prompt-content p {
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* Timer Presets */
.timer-presets {
  margin-bottom: 2rem;
}

.timer-presets h4 {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  color: #374151;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.preset-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Countdown Timer */
.countdown-timer {
  text-align: center;
  margin-bottom: 2rem;
}

.timer-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-track {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.timer-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-percentage {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.timer-status {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timer-time {
  color: #6b7280;
  font-weight: 500;
}

/* Recording Controls */
.recording-controls {
  text-align: center;
  margin-bottom: 1.5rem;
}

.start-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 200px;
}

.start-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.start-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.start-btn.running {
  background: #dc2626;
}

.start-btn.running:hover {
  background: #b91c1c;
}

.start-btn.timer-completed {
  background: #f59e0b;
  animation: pulse-orange 2s infinite;
}

.start-btn.timer-completed:hover {
  background: #d97706;
}

.start-btn.completed {
  background: #059669;
}

.recording-actions {
  margin-top: 1rem;
}

.record-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(116, 102, 255, 0.2);
}

.record-btn:hover {
  background: linear-gradient(135deg, var(--brand-600), var(--aqua-600));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(116, 102, 255, 0.3);
}

/* Enforcement Notice */
.enforcement-notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

.enforcement-notice p {
  color: #92400e;
  font-size: 0.875rem;
  margin: 0;
}

/* Session Report */
.session-report {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.session-report h4 {
  color: #0c4a6e;
  margin-bottom: 1rem;
}

.report-content {
  margin-bottom: 1rem;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-metrics .metric {
  text-align: center;
}

.report-metrics .metric-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-metrics .metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.report-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.report-note {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.report-note strong {
  color: #f59e0b;
  font-weight: 600;
}

/* Insights Panel (Right Side) */
.insights-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  width: 100% !important;
  min-width: 300px !important;
}

.insights-card,
.focus-areas-card,
.prompt-library-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.insights-card h3,
.focus-areas-card h4,
.prompt-library-card h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric {
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

/* Focus Areas */
.focus-list {
  list-style: none;
  color: #374151;
}

.focus-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Prompt Library */
.library-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px 4px 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.tab-btn.active {
  color: var(--brand-600);
  background: rgba(116, 102, 255, 0.1);
  border-bottom: 2px solid var(--brand-500);
}

.fluency-section h5 {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  gap: 0.75rem;
}

.prompt-text {
  flex: 1;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.4;
}

.use-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.use-btn:hover {
  background: #2563eb;
}

/* Hidden Form */
.hidden-form {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .practice-panel,
  .insights-card,
  .focus-areas-card,
  .prompt-library-card {
    padding: 1rem;
  }

  .timer-circle {
    width: 120px;
    height: 120px;
  }

  .timer-percentage {
    font-size: 1.5rem;
  }

  .start-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .library-tabs {
    flex-wrap: wrap;
  }

  .prompt-item {
    flex-direction: column;
    align-items: stretch;
  }

  .use-btn {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

/* Typography */
h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.875rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }

/* Layout */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  min-height: calc(100vh - 70px);
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: white;
  background: var(--gradient-primary);
  font-size: 1rem;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: 160px;
}

@media (max-width: 768px) {
  .logo-image {
    height: 32px;
    max-width: 120px;
  }
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #333;
  margin: 2px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #64748b;
  border-radius: 0.5rem;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-600);
  background-color: rgba(116, 102, 255, 0.1);
}

.nav-icon { font-size: 1.125rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(116, 102, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-600), var(--aqua-600));
  box-shadow: 0 4px 8px rgba(116, 102, 255, 0.3);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  border-color: #d1d5db;
  background: white;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Flash Messages */
.flash {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.flash.notice {
  background-color: rgba(31, 195, 195, 0.1);
  color: var(--aqua-600);
  border: 1px solid var(--aqua-400);
}

.flash.alert {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-section {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

/* Session Configuration Collapsible Styles */
.session-config-header {
  cursor: pointer;
  border-radius: 8px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.session-config-header:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.session-config-header h3 {
  margin: 0;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 600;
}

.config-note {
  margin: 4px 0 0 0;
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
}

.config-toggle-icon {
  font-size: 1.2rem;
  color: #64748b;
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.session-config-content {
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.form-errors {
  background-color: #fef2f2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.form-errors ul {
  margin-left: 1.5rem;
}

/* Page Headers */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header p {
  color: #64748b;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

/* Sessions Index */
.sessions-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.session-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.session-title a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
}

.session-title a:hover {
  color: #2563eb;
}

.session-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.session-language,
.session-type {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.session-status {
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-completed { background: #dcfce7; color: #166534; }
.status-failed { background: #fecaca; color: #991b1b; }

.session-preview {
  margin-bottom: 1rem;
}

.quick-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
  flex: 1;
  min-width: 60px;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.issue-summary {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.issue-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: block;
}

.issue-types {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.issue-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.session-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 1rem;
}

.session-date {
  color: #6b7280;
  font-size: 0.875rem;
}

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

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Recording Interface */
.recording-interface {
  text-align: center;
  padding: 2rem 1rem;
}

/* Recording Primary Section */
.recording-primary {
  order: -1; /* Move to top */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
}

/* Duration Presets */
.duration-presets {
  margin-bottom: 2rem;
}

.duration-presets h3 {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1.125rem;
  font-weight: 600;
}

.preset-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.preset-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid #d1d5db;
  background: white;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.preset-btn:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.preset-btn.active {
  background: #3b82f6;
  border-color: #1d4ed8;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.preset-btn.active:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}

/* Session Configuration - Secondary */
.session-config {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.session-config h3 {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Post-Recording Interface */
.session-details-form {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.session-details-form h3 {
  margin-bottom: 1rem;
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 600;
}

.audio-preview {
  margin-bottom: 1.5rem;
  text-align: center;
}

.audio-preview audio {
  width: 100%;
  max-width: 400px;
  border-radius: 0.5rem;
}

.preview-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-replay {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-use-recording {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.25rem;
}

.session-title-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.recorder-status {
  margin-bottom: 1.5rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6b7280;
  margin: 0 auto 0.5rem;
}

.status-indicator.recording {
  background: #dc2626;
  animation: pulse 1s infinite;
}

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

@keyframes pulse-orange {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}

.recorder-controls {
  margin-bottom: 2rem;
}

.btn-record {
  background: #dc2626;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.125rem;
  border: none;
}

.btn-record.recording {
  background: #991b1b;
  animation: pulse 2s infinite;
}

/* Enhanced Primary Record Button */
.btn-record-primary {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.btn-record-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  border-color: #b91c1c;
}

.btn-record-primary.recording {
  background: #991b1b;
  border-color: #7f1d1d;
  animation: pulse 2s infinite;
}

.recording-timer {
  margin-top: 1rem;
}

.timer-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  display: block;
}

/* Countdown Display */
.countdown-display {
  font-size: 1.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 1rem;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: color 0.3s ease;
}

.countdown-display.warning {
  color: #9ca3af;
}

.countdown-display.critical {
  color: #9ca3af;
}

.timer-progress {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #9ca3af;
  transition: width 1s linear, background-color 0.3s ease;
}

.recording-preview {
  margin-top: 2rem;
}

.media-player {
  width: 100%;
  max-width: 500px;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.preview-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Prompt Selection */
.prompt-controls {
  margin-bottom: 1.5rem;
}

.prompt-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.selected-prompt {
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
}

.prompt-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.prompt-category {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.prompt-title {
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.prompt-text {
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.prompt-meta {
  display: flex;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.difficulty {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.difficulty.beginner { background: #dcfce7; color: #166534; }
.difficulty.intermediate { background: #fef3c7; color: #92400e; }
.difficulty.advanced { background: #fecaca; color: #991b1b; }

/* Recording Tips */
.recording-tips {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.recording-tips ul {
  list-style: none;
  margin-top: 1rem;
}

.recording-tips li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.recording-tips li:before {
  content: "•";
  color: #2563eb;
  font-weight: 600;
  position: absolute;
  left: 0;
}

/* Session Show */
.session-show {
  padding-bottom: 2rem;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.session-title-section h1 {
  margin-bottom: 0.5rem;
}

.session-meta {
  display: flex;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.language-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.session-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.action-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.processing-status {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.status-icon {
  font-size: 2rem;
}

/* Media Player */
.media-player-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.player-container {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-markers {
  position: relative;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.issue-marker {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -2px;
  cursor: pointer;
  border: 2px solid white;
  transform: translateX(-50%);
}

.marker-clarity { background: #ef4444; }
.marker-pace { background: #f59e0b; }
.marker-filler { background: #8b5cf6; }
.marker-volume { background: #10b981; }

/* Filler Word Highlighting */
.filler-word {
  background-color: #fef3c7;
  color: #d97706;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 500;
  border: 1px solid #f59e0b;
}

.filler-word.filler-um,
.filler-word.filler-uh {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
}

.filler-word.filler-like {
  background-color: #dbeafe;
  color: #2563eb;
  border-color: #60a5fa;
}

.filler-word.filler-you_know {
  background-color: #f3e8ff;
  color: #9333ea;
  border-color: #c084fc;
}

.filler-word.filler-basically,
.filler-word.filler-actually {
  background-color: #ecfdf5;
  color: #16a34a;
  border-color: #4ade80;
}

.time-display {
  font-family: monospace;
  font-weight: 600;
  color: #4b5563;
}

.playback-speed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Analysis Dashboard */
.analysis-dashboard {
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.metric-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.metric-card .metric-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.metric-context {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.context-good { background: #dcfce7; color: #166534; }
.context-ok { background: #f3f4f6; color: #4b5563; }
.context-needs-work { background: #fef3c7; color: #92400e; }
.context-slow { background: #dbeafe; color: #1d4ed8; }
.context-fast { background: #fecaca; color: #991b1b; }

/* Issues Section */
.issues-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.issue-categories {
  margin-top: 1rem;
}

.issue-category {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.issue-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.toggle-btn {
  background: #f3f4f6;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.category-issues {
  space-y: 1rem;
}

.issue-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.issue-timing {
  flex-shrink: 0;
}

.time-link {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: monospace;
}

.time-link:hover {
  background: #1d4ed8;
}

.issue-content {
  flex: 1;
}

.issue-text {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.coaching-note {
  background: #eff6ff;
  color: #1e40af;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.issue-severity {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.severity-low { background: #dcfce7; color: #166534; }
.severity-medium { background: #fef3c7; color: #92400e; }
.severity-high { background: #fecaca; color: #991b1b; }

.no-issues {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Transcript */
.transcript-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.transcript-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.transcript-content {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  line-height: 1.8;
  max-height: 400px;
  overflow-y: auto;
}

/* Prompts Library */
.prompts-controls {
  margin-bottom: 2rem;
}

.search-filter {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.view-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.prompts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.prompt-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.prompt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prompt-header {
  margin-bottom: 1rem;
}

.prompt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.2s;
}

.favorite-btn.active,
.favorite-btn:hover {
  color: #f59e0b;
}

.prompt-details {
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.detail-label {
  color: #6b7280;
  font-weight: 500;
}

.skill-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skill-tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.prompt-actions {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.secondary-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.action-btn:hover {
  color: #2563eb;
  background: #f3f4f6;
}

/* Quick Practice */
.quick-practice-section,
.prompts-tips {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quick-options-grid,
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.quick-option,
.tip-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-align: center;
}

.tip-item {
  display: flex;
  gap: 1rem;
  text-align: left;
}

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-content h4 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.tip-content p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 0.75rem;
  padding: 0;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Responsive Design - Mobile First */

/* Small tablets and large phones */
@media (min-width: 640px) {
  .main-content {
    padding: 1.5rem;
  }

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

  .form-row .form-group {
    min-width: 150px;
  }

  .quick-options-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompts-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Tablets */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
  }

  .sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .issue-item {
    align-items: flex-start;
  }

  .transcript-header {
    flex-wrap: nowrap;
  }

  .session-header {
    flex-wrap: nowrap;
  }

  .session-actions {
    flex-wrap: nowrap;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .main-content {
    padding: 2rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }

  .sessions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    flex-wrap: nowrap;
  }

  .quick-options-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation Styles (hidden by default, shown when active) */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
    display: none;
    z-index: 1000;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    border-radius: 0;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: #f3f4f6;
  }

  /* Animate hamburger menu */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile specific adjustments */
  .session-header,
  .session-actions,
  .session-footer,
  .form-actions,
  .transcript-header,
  .prompt-meta,
  .session-actions .action-menu {
    justify-content: center;
  }

  .quick-metrics {
    justify-content: center;
  }

  .category-filters,
  .prompt-filters {
    justify-content: flex-start;
  }
}

/* Print styles */
@media print {
  .main-header,
  .session-actions,
  .form-actions,
  .secondary-actions,
  .mobile-menu-toggle {
    display: none !important;
  }

  .main-content {
    padding: 0;
    max-width: none;
  }

  .session-card,
  .form-section,
  .media-player-section,
  .issues-section,
  .transcript-section {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    break-inside: avoid;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus,
.nav-link:focus,
.filter-btn:focus,
.control-btn:focus,
.time-link:focus,
.action-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Export Menu */
.export-menu {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  animation: fadeInScale 0.2s ease-out;
}

.export-options {
  padding: 1rem;
}

.export-options h4 {
  margin: 0 0 0.75rem 0;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.export-option {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
}

.export-option:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  color: #1d4ed8;
}

.export-option:active {
  transform: translateY(1px);
}

.export-close {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 0 0 8px 8px;
  transition: all 0.2s;
}

.export-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Recording Button States */
.recorder-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.recorder-btn.ready {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.recorder-btn.ready:hover {
  background: #059669;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.recorder-btn.requesting {
  background: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: pulse-orange 1.5s infinite;
}

.recorder-btn.recording {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: pulse 1.5s infinite;
}

.recorder-btn.processing {
  background: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.recorder-btn.uploading {
  background: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  pointer-events: none;
}

.recorder-btn.error {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Recording Status Indicator */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.ready {
  background: #10b981;
}

.status-indicator.requesting {
  background: #f59e0b;
}

.status-indicator.recording {
  background: #ef4444;
}

.status-indicator.processing {
  background: #6366f1;
}

.status-indicator.error {
  background: #ef4444;
}

/* Recording Status Display */
.recording-status {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 4px solid #10b981;
}

.status-text {
  color: #374151;
  font-weight: 500;
}

/* Audio Preview Section */
.audio-preview-section {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 2px dashed #d1d5db;
}

.audio-preview-section h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.audio-preview audio {
  width: 100%;
  margin: 1rem 0;
}

.preview-note {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Preview Actions */
.preview-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-analyze {
  background: #6366f1 !important;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-analyze:hover {
  background: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* Workflow Help */
.workflow-help {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.workflow-help p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.workflow-help ol {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.workflow-help li {
  counter-increment: step-counter;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0 0.5rem 3rem;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.workflow-help li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Recording Choice Interface */
.recording-preview-section {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.recording-preview-section h4 {
  color: #0c4a6e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.audio-preview-container {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #e0e7ff;
}

.audio-preview-container audio {
  width: 100%;
}

.recording-choice-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.recording-choice-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.recording-choice-actions .btn-secondary {
  background: #6b7280;
  color: white;
  border: 2px solid #6b7280;
}

.recording-choice-actions .btn-secondary:hover {
  background: #4b5563;
  border-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.recording-choice-actions .btn-analyze {
  background: #059669 !important;
  color: white;
  border: 2px solid #059669;
}

.recording-choice-actions .btn-analyze:hover {
  background: #047857 !important;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Notification Styles */
.notification {
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

/* Insights Section */
.insights-section {
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.insights-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.insights-controls select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
}

.sparklines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sparkline-container {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.sparkline-container:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trend-indicator {
  font-weight: 500;
}

.sparkline-chart {
  height: 50px;
  display: flex;
  align-items: center;
}

.trends-section {
  margin-bottom: 2rem;
}

.trends-container {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.trends-list {
  max-height: 300px;
  overflow-y: auto;
}

.trend-item {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.trend-item:hover {
  background-color: #f9fafb;
}

.trend-item:last-child {
  border-bottom: none;
}

.ai-insights {
  margin-top: 1rem;
}

.insights-container h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.insight {
  transition: all 0.2s;
}

.insight:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Color classes for insights */
.insight.positive {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
}

.insight.negative {
  background-color: #fef2f2;
  border-color: #fecaca;
}

.insight.neutral {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

/* Mobile responsiveness for insights */
@media (max-width: 768px) {
  .insights-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .sparklines-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .insights-controls {
    align-self: stretch;
  }
  
  .insights-controls select {
    width: 100%;
  }
}

/* Adaptive Prompts Section */
.adaptive-prompts-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #bbf7d0;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.adaptive-prompts-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #10b981, #3b82f6, #8b5cf6);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.1;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.section-description {
  color: #064e3b;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.weakness-tag {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0.125rem;
  text-transform: capitalize;
}

.adaptive-prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.adaptive-prompt {
  background: white;
  border: 2px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.adaptive-prompt:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(16, 185, 129, 0.15);
  border-color: #059669;
}

.category-recommended {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 600;
}

.improvement-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
}

.focus-area-tag {
  background: #ddd6fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.adaptive-prompt .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.adaptive-prompt .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Mobile adaptations for adaptive prompts */
@media (max-width: 768px) {
  .adaptive-prompts-section {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 8px;
  }
  
  .adaptive-prompts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.25rem;
  }
  
  .weakness-tag {
    display: block;
    margin: 0.25rem 0;
    text-align: center;
  }
}

/* Accessibility Enhancements */

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 6px;
}

/* Accessibility toggle button */
.accessibility-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  border: 2px solid white;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
  background: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Accessibility panel */
.accessibility-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  min-width: 320px;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  display: none;
}

.accessibility-panel h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  text-align: center;
  color: #1f2937;
}

.accessibility-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.accessibility-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.accessibility-btn:hover,
.accessibility-btn:focus {
  border-color: #3b82f6;
  background: #f8fafc;
  color: #1e40af;
}

.accessibility-btn[aria-pressed="true"] {
  background: #3b82f6;
  color: white;
  border-color: #1d4ed8;
}

.close-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.close-panel:hover,
.close-panel:focus {
  background: #f3f4f6;
  color: #374151;
}

/* Keyboard shortcuts info */
.keyboard-shortcuts-info {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #1f2937;
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 350px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10002;
  font-size: 0.875rem;
}

.keyboard-shortcuts-info h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #f9fafb;
}

.keyboard-shortcuts-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.keyboard-shortcuts-info li {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.keyboard-shortcuts-info kbd {
  background: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #4b5563;
}

.keyboard-shortcuts-info button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.keyboard-shortcuts-info button:hover,
.keyboard-shortcuts-info button:focus {
  background: #374151;
  color: white;
}

/* High contrast mode */
.high-contrast {
  filter: contrast(150%) brightness(120%);
}

.high-contrast .nav-link,
.high-contrast .btn,
.high-contrast button {
  border: 2px solid currentColor !important;
}

.high-contrast .btn-primary {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.high-contrast .btn-secondary {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

/* Large text mode */
.large-text {
  font-size: 1.125em;
}

.large-text h1 { font-size: 2.25rem; }
.large-text h2 { font-size: 1.875rem; }
.large-text h3 { font-size: 1.5rem; }
.large-text h4 { font-size: 1.25rem; }

.large-text .btn {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.large-text .nav-link {
  padding: 1rem;
  font-size: 1rem;
}

/* Reduced motion mode */
.reduced-motion,
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.reduced-motion .session-card:hover,
.reduced-motion .prompt-card:hover,
.reduced-motion .btn:hover {
  transform: none !important;
}

/* Enhanced keyboard navigation */
.keyboard-navigation *:focus,
.enhanced-keyboard-nav *:focus {
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px !important;
}

.enhanced-focus:focus {
  box-shadow: 0 0 0 3px #f59e0b, 0 0 0 6px rgba(245, 158, 11, 0.3) !important;
  outline: none !important;
}

/* Focus within for containers */
.session-card:focus-within,
.prompt-card:focus-within {
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Improved button focus states */
.btn:focus {
  position: relative;
  z-index: 1;
}

/* Form field accessibility */
input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

/* ARIA live regions */
[aria-live="polite"],
[aria-live="assertive"] {
  position: relative;
}

/* Mobile accessibility adjustments */
@media (max-width: 768px) {
  .accessibility-toggle {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
  
  .accessibility-panel {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-width: none;
    min-width: 0;
    padding: 1.5rem;
  }
  
  .keyboard-shortcuts-info {
    left: 10px;
    right: 10px;
    max-width: none;
    width: calc(100% - 20px);
  }
  
  .skip-link:focus {
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    text-align: center;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .accessibility-toggle,
  .skip-link,
  .accessibility-btn,
  .close-panel {
    transition: none;
  }
}

/* High contrast media query support */
@media (prefers-contrast: high) {
  .nav-link,
  .btn,
  button {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .session-card:hover {
    transform: none;
  }

  .prompt-card:hover {
    transform: none;
  }
}

/* Modern History Page Styles */
.history-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #3b82f6;
}

.breadcrumb-icon {
  font-size: 0.75rem;
}

.breadcrumb-separator {
  color: #d1d5db;
  font-weight: 500;
}

.breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

.history-header {
  text-align: center;
  margin-bottom: 1rem;
}

.history-header h1 {
  font-size: 1.375rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.125rem;
}

.history-subtitle {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

/* Stats Overview */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #f8fafc;
  border-radius: 4px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #f1f5f9;
}

.stat-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

/* Sessions Sections */
.sessions-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
}

.sessions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* Modern Session Cards */
.session-card-modern {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.session-card-modern:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  min-height: 48px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
  margin-right: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  min-width: 120px;
  flex-shrink: 0;
}

.session-language {
  background: #f1f5f9;
  color: #475569;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.completion-badge {
  margin-top: 0.25rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-completed {
  background: #dcfce7;
  color: #166534;
}

.badge-processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-failed {
  background: #fecaca;
  color: #991b1b;
}

/* Card Metrics */
.card-metrics {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.metric-icon {
  font-size: 1rem;
}

.metric-content {
  text-align: left;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.metric-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.btn-details {
  flex: 1;
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-details:hover {
  background: #f1f5f9;
  color: #1f2937;
  text-decoration: none;
}

.btn-delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-delete:hover {
  background: #fecaca;
  color: #991b1b;
}

.card-error {
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin: 1rem 0;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .history-page {
    padding: 0.75rem;
  }

  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .sessions-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .session-card-modern {
    padding: 0.75rem;
  }

  .card-metrics {
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
  }

  .metric-item {
    justify-content: space-between;
  }

  .card-actions {
    flex-direction: column;
    gap: 0.375rem;
  }

  .breadcrumbs {
    margin-bottom: 0.75rem;
  }

  .history-header {
    margin-bottom: 0.75rem;
  }

  .sessions-section {
    margin-bottom: 1.5rem;
  }
}

/* Priority Recommendations Styles */
.priority-recommendations-section {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.priority-recommendations-section h3 {
  color: #1e40af;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Focus This Week */
.focus-this-week {
  margin-bottom: 2rem;
}

.focus-areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .focus-areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

.focus-area-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #10b981;
}

.focus-area-card.priority-high {
  border-left-color: #ef4444;
}

.focus-area-card.priority-medium {
  border-left-color: #f59e0b;
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.focus-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1f2937;
}

.focus-metrics {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.focus-metrics .arrow {
  color: #10b981;
  font-weight: bold;
}

.target-metric {
  color: #10b981;
  font-weight: 600;
}

.focus-impact {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.impact-score {
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.effort-level {
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline {
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.actionable-steps {
  margin-bottom: 1rem;
}

.actionable-steps ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.actionable-steps li {
  margin-bottom: 0.25rem;
  color: #4b5563;
}

.specific-examples {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.issue-example {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef9e7;
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.issue-text {
  font-style: italic;
  color: #92400e;
  flex-grow: 1;
}

.time-link-small {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.time-link-small:hover {
  background: #2563eb;
}

/* Quick Wins */
.quick-wins {
  margin-bottom: 2rem;
}

.quick-wins-list {
  display: grid;
  gap: 1rem;
}

.quick-win-item {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #10b981;
}

.quick-win-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.quick-win-description p {
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.quick-win-impact {
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Practice Plan */
.practice-plan {
  margin-bottom: 2rem;
}

.practice-sections {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .practice-sections {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.daily-practice-section,
.weekly-goals-section,
.progress-tracking-section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.practice-sections h5 {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.practice-list,
.goals-list,
.tracking-list {
  margin-left: 1rem;
}

.practice-list li,
.goals-list li,
.tracking-list li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

/* Secondary Focus */
.secondary-focus {
  margin-bottom: 2rem;
}

.secondary-areas-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .secondary-areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.secondary-area-card {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem;
}

.secondary-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.secondary-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.improvement-potential {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.secondary-note {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Clean Session Analysis Styles (Like Screenshot) */
.session-show-clean {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Tab Navigation */
.analysis-tabs-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  overflow: hidden;
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.tab-btn.active {
  color: #059669;
  background: white;
  border-bottom-color: #059669;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 2rem;
}

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

/* Clean Metrics Overview */
.metrics-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .metrics-overview {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Primary Circular Metric */
.metric-card-circular {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 1.5s ease-in-out;
  transform-origin: 50% 50%;
}

.progress-ring__circle--active {
  stroke-linecap: round;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: #4F46E5;
  text-align: center;
}

.metric-details {
  flex: 1;
}

.metric-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.metric-description {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

/* Secondary Simple Metrics */
.secondary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .secondary-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-card-simple {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.metric-indicator.filler {
  background: #059669;
}

.metric-indicator.pace {
  background: #3b82f6;
}

.metric-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.metric-value-large {
  font-size: 2rem;
  font-weight: 700;
  color: #374151;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-target {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Next Steps Section */
.next-steps-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fef9e7;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.05em;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
}

.action-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.action-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.05em;
}

.re-run-btn {
  background: #e5e7eb;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.re-run-btn:hover {
  background: #d1d5db;
}

.action-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.action-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.start-drill-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.start-drill-btn:hover {
  background: #047857;
}

/* Clean Issues Section */
.issues-section-clean {
  margin: 2rem 0;
}

.issue-filters {
  margin: 1rem 0;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tag {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background: #e5e7eb;
}

.filter-tag.active {
  background: #059669;
  color: white;
  border-color: #059669;
}

.issues-list-clean {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.issue-item-clean {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.issue-item-clean:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.issue-timestamp {
  flex-shrink: 0;
}

.timestamp-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timestamp-btn:hover {
  background: #2563eb;
}

.issue-content {
  flex: 1;
}

.issue-text {
  font-style: italic;
  color: #374151;
  margin-bottom: 0.5rem;
}

.priority-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.priority-badge.high {
  background: #fee2e2;
  color: #dc2626;
}

.priority-badge.medium {
  background: #fef3c7;
  color: #d97706;
}

.priority-badge.low {
  background: #f0fdf4;
  color: #166534;
}

.jump-btn {
  background: #e5e7eb;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.jump-btn:hover {
  background: #d1d5db;
}

/* Secondary Insights */
.secondary-insights {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
}

.insights-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.insight-label {
  color: #6b7280;
  font-weight: 500;
}

.insight-value {
  color: #374151;
  font-weight: 600;
}

/* Progress Tab Styling */
.progress-plan-content {
  max-width: 800px;
  margin: 0 auto;
}

.progress-plan-content h2 {
  text-align: center;
  color: #374151;
  margin-bottom: 2rem;
}

/* Context Badge */
.context-badge {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .session-show-clean {
    padding: 0.75rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .metric-value-large {
    font-size: 1.5rem;
  }

  .action-card {
    padding: 1rem;
  }

  .issue-item-clean {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .issue-timestamp {
    align-self: flex-start;
  }
}
/* ===== UI IMPROVEMENT STYLES ===== */

/* Compact Timer Controls */
.timer-controls-compact {
  margin-bottom: 1.5rem;
}

.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.timer-header h5 {
  margin: 0;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-buttons-horizontal {
  display: flex;
  gap: 0.5rem;
}

.countdown-timer-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.timer-circle-small {
  position: relative;
  width: 80px;
  height: 80px;
}

.timer-circle-small .timer-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-circle-small .timer-percentage {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
}

.timer-circle-small .timer-status {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Enhanced Metrics Grid */
.metrics-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metrics-grid-enhanced .metric {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
}

.metrics-grid-enhanced .metric-label {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.metrics-grid-enhanced .metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

/* Recent Sessions Card */
.recent-sessions-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recent-sessions-card h5 {
  margin: 0 0 0.75rem 0;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

.recent-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-session-item {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.recent-session-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.session-link {
  text-decoration: none;
  display: block;
}

.session-link:hover {
  color: #3b82f6;
}

.session-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.session-meta {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
}

.session-duration {
  font-weight: 500;
}

/* Practice Panel Improvements */
.practice-panel {
  gap: 1.5rem !important;
  padding: 1.5rem !important;
}

.practice-header h2 {
  margin-bottom: 1rem;
  color: #1f2937;
  font-size: 1.5rem;
}

/* Enhanced Insights Panel - Right Sidebar */
.insights-panel {
  gap: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-height: 100vh;
  overflow-y: auto;
}

/* New Insights Header Card */
.insights-header-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.insights-header-card h3 {
  color: #1f2937;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Key Metrics Row Layout (Similar to screenshot) */
.key-metrics-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.key-metrics-row.secondary-row {
  margin-bottom: 0;
}

.key-metric {
  flex: 1;
  text-align: center;
}

.key-metric .metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.key-metric .metric-value-large {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

/* Performance Metrics Card */
.performance-metrics-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.performance-metrics-card h4 {
  color: #1f2937;
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.metrics-grid-enhanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-item {
  text-align: center;
}

.metric-item .metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.metric-item .metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

/* Enhanced Prompt Library */
.prompt-library-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.prompt-library-card h4 {
  color: #1f2937;
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.library-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.tab-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.fluency-section,
.elevator-pitch-section {
  margin-bottom: 1.5rem;
}

.fluency-section:last-child,
.elevator-pitch-section:last-child {
  margin-bottom: 0;
}

.fluency-section h5,
.elevator-pitch-section h5 {
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.prompt-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.prompt-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.prompt-item.featured {
  background: #fef3c7;
  border-color: #fbbf24;
}

.prompt-item:last-child {
  margin-bottom: 0;
}

.prompt-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.use-btn {
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.use-btn:hover {
  background: #4b5563;
}

.use-btn.primary {
  background: #3b82f6;
}

.use-btn.primary:hover {
  background: #2563eb;
}

/* Other cards styling */
.insights-card, .focus-areas-card, .recent-sessions-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

/* Compact Session Setup Styling */
.pre-recording-setup-compact {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.session-config-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.config-row {
  display: flex;
  gap: 1rem;
  align-items: end;
}

.config-row.secondary-settings {
  opacity: 0.8;
}

.config-group {
  flex: 1;
}

.config-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.config-input,
.config-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s ease;
}

.config-input:focus,
.config-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.config-select {
  cursor: pointer;
}

/* Session Info Dropdown Styles */
.session-info-dropdown {
  margin-top: 0.75rem;
}

.session-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.session-info-header:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.session-info-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.config-toggle-icon {
  font-size: 0.75rem;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.session-info-header[aria-expanded="true"] .config-toggle-icon {
  transform: rotate(180deg);
}

.session-config-content {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fafafa;
}

/* Post-Recording Actions Styles */
.post-recording-actions {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.recording-info {
  margin-bottom: 1rem;
}

.recording-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-icon {
  font-size: 1.125rem;
}

.status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #065f46;
}

.recording-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.separator {
  color: #d1d5db;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-record-again {
  min-width: 140px;
}

.btn-analyze {
  min-width: 160px;
}

/* Animation keyframes */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Responsive adjustments for compact form */
@media (max-width: 640px) {
  .config-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .config-row.secondary-settings {
    flex-direction: row;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .recording-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .separator {
    display: none;
  }
}

/* Mobile Responsive Improvements */
@media (max-width: 767px) {
  .metrics-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .timer-controls-compact .countdown-timer-compact {
    flex-direction: column;
    gap: 0.75rem;
  }

  .preset-buttons-horizontal {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Mobile adjustments for insights */
  .insights-panel {
    gap: 1rem !important;
  }

  .insights-header-card,
  .performance-metrics-card,
  .prompt-library-card {
    padding: 1rem;
  }

  .key-metrics-row {
    gap: 0.75rem;
  }

  .key-metric .metric-value-large {
    font-size: 1.5rem;
  }

  /* Mobile friendly prompt items */
  .prompt-item {
    padding: 0.625rem;
  }

  .prompt-text {
    font-size: 0.8125rem;
  }
}

/* Timer and Start Button Horizontal Layout */
.timer-start-layout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.start-btn-compact {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.start-btn-compact:hover {
  background: #059669;
}

.countdown-timer-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.countdown-timer-compact .timer-time {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Mobile adjustments for timer layout */
@media (max-width: 767px) {
  .timer-start-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .start-btn-compact {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* ===== TRIAL MODE STYLES ===== */

/* Trial Mode Container */
.practice-interface.trial-mode {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 16px;
  position: relative;
}

.practice-interface.trial-mode::before {
  content: "30s Free Demo";
  position: absolute;
  top: -1px;
  right: 20px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Trial Header */
.trial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.trial-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Locked Duration Buttons */
.preset-btn.locked {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  border: 1px solid #e5e7eb !important;
}

.preset-btn.trial-locked {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: white !important;
  border: 1px solid #0284c7 !important;
}

/* Trial Results Card */
.trial-results-card, .trial-intro-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.trial-results-card h3, .trial-intro-card h3 {
  color: #1f2937;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Trial Metrics Display */
.trial-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.trial-metric {
  text-align: center;
  flex: 1;
}

.trial-metric .metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.trial-metric .metric-value-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0ea5e9;
  line-height: 1;
}

/* Locked Features List */
.locked-features {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.locked-features h4 {
  margin: 0 0 0.75rem 0;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

.locked-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #6b7280;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}

.locked-feature:last-child {
  border-bottom: none;
}

.locked-feature .feature-icon {
  opacity: 0.7;
}

/* Trial CTA Button */
.trial-cta {
  text-align: center;
}

.trial-signup-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.trial-signup-btn:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Trial Intro Benefits List */
.demo-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.demo-benefits li {
  padding: 0.5rem 0;
  color: #374151;
  font-size: 0.875rem;
  position: relative;
  padding-left: 1.5rem;
}

.demo-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 600;
}

.upgrade-preview {
  background: #f0f9ff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.upgrade-preview h4 {
  margin: 0 0 0.75rem 0;
  color: #0ea5e9;
  font-size: 0.875rem;
  font-weight: 600;
}

.upgrade-preview .locked-feature {
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  border-bottom: none;
  color: #6b7280;
}

/* Trial Error State */
.trial-error {
  text-align: center;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 8px;
  color: #dc2626;
}

.trial-error p {
  margin: 0 0 1rem 0;
}

/* Mobile Responsive Adjustments for Trial */
@media (max-width: 767px) {
  .trial-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .trial-metric .metric-value-large {
    font-size: 2rem;
  }

  .practice-interface.trial-mode::before {
    right: 10px;
    font-size: 0.6875rem;
    padding: 3px 8px;
  }
}

/* ===== NEW LANDING PAGE STYLES ===== */

/* Updated Landing Page Layout */
.landing-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* Updated Hero Section Styles */
.hero-section {
  background: linear-gradient(to bottom, white, #f8fafc);
  padding: 4rem 1.25rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero-badge .badge-icon {
  color: var(--brand-500);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-highlight {
  color: transparent;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-features {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Hero Demo Section */
.hero-demo {
  padding: 1rem;
}

.hero-demo .card {
  padding: 1.5rem;
}

.demo-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.demo-prompt {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.timer-presets {
  display: flex;
  gap: 0.5rem;
}

.preset-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  background: white;
  color: #6b7280;
}

.preset-btn.active {
  background: #1f2937;
  color: white;
  border-color: #1f2937;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.metric-mini {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 0.75rem;
}

.metric-mini .metric-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.metric-mini .metric-value {
  font-size: 1rem;
  font-weight: 600;
}

/* Proof Strip Section */
.proof-strip-section {
  background: white;
  padding: 2rem 1.25rem;
}

.proof-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.proof-badge {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.proof-key {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.proof-text {
  font-size: 0.875rem;
  color: #6b7280;
}

/* How It Works Section */
.how-it-works {
  background: #f8fafc;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.step-card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.step-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-card p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Features Grid */
.features-section {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--brand-600);
}

.feature-card p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Why Now Section */
.why-now-section {
  background: linear-gradient(135deg, rgba(116, 102, 255, 0.08), rgba(31, 195, 195, 0.08));
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.why-now-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .why-now-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-now-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.why-now-section ul {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: #1f2937;
  line-height: 1.6;
}

.why-now-section li {
  margin-bottom: 0.5rem;
}

.why-now-quote {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.quote-text {
  color: #1f2937;
}

/* Demo Section */
.demo-section {
  background: white;
}

.demo-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .demo-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.demo-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.demo-text p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.demo-features {
  margin-top: 0.5rem;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.feature-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand-500);
}

.demo-preview {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.preview-header h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Waitlist Section */
.waitlist-section {
  background: white;
}

.waitlist-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .waitlist-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.waitlist-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.waitlist-section p {
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.waitlist-benefits {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: #374151;
}

.waitlist-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.waitlist-form {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
}

.waitlist-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.waitlist-form span {
  font-size: 0.875rem;
  color: #374151;
}

.waitlist-form input {
  margin-top: 0.25rem;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: white;
}

.waitlist-form button {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.waitlist-form p {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* FAQ Section */
.faq-section {
  background: #f8fafc;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.faq-answer {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Footer */
.landing-footer {
  background: white;
  border-top: 1px solid #e5e7eb;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Sticky Mini CTA */
.sticky-mini-cta {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  box-shadow: 0 10px 25px rgba(116, 102, 255, 0.3);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}

.sticky-mini-cta.visible {
  opacity: 1;
  transform: scale(1);
}

.sticky-mini-cta .btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

/* Tooltip Styles */
.metric-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
}

.metric-name-text {
  display: inline;
}

.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #6b7280;
  border: none;
  cursor: help;
  font-size: 12px;
  line-height: 1;
  transition: all 0.2s ease;
}

.tooltip-trigger:hover {
  background-color: #4F46E5;
  color: white;
  transform: scale(1.1);
}

.tooltip-content {
  position: absolute;
  z-index: 9999;
  background-color: #1f2937;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 300px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  white-space: normal;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
}

.tooltip-content.hidden {
  opacity: 0;
  visibility: hidden;
}

.tooltip-content.visible {
  opacity: 1;
  visibility: visible;
}

/* Hero Metric Styles */
.metric-card-circular.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
}

.hero-metric-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.metric-grade-badge {
  font-size: 2rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.metric-grade-badge.grade-a,
.metric-grade-badge.grade-aplus {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.metric-grade-badge.grade-b,
.metric-grade-badge.grade-bplus {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.metric-grade-badge.grade-c,
.metric-grade-badge.grade-cplus {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.metric-grade-badge.grade-d,
.metric-grade-badge.grade-f {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Transcript Legend Dropdown Styles */
.transcript-legend-container {
  position: relative;
  margin-bottom: 1rem;
}

.legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legend-toggle:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.legend-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  min-width: 280px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.legend-dropdown.hidden {
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none;
}

.legend-dropdown.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.legend-dropdown .legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.legend-dropdown .legend-item:last-child {
  border-bottom: none;
}

.legend-dropdown .legend-desc {
  color: #6b7280;
  font-size: 0.875rem;
}

.legend-dropdown .filler-word {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.8125rem;
  white-space: nowrap;
  min-width: 80px;
}

/* ============================================
   REDESIGNED ANALYSIS PAGE STYLES
   ============================================ */

/* Session Show Redesign Container */
.session-show-redesign {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Top Navigation */
.analysis-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.back-link {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #3730A3;
}

.session-meta-inline {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Session Title */
.session-title-main {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

/* Media Player Top Section */
.media-player-section-top {
  margin-bottom: 2rem;
}

.media-player-section-top .player-container {
  position: relative;
}

.media-player-section-top .media-player {
  width: 100%;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Main Grid Layout */
.analysis-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .analysis-main-grid {
    grid-template-columns: 1fr;
  }

  .analysis-sidebar {
    order: -1;
  }
}

.analysis-main-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Compact Metrics Row (4 cards) */
.metrics-row-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .metrics-row-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .metrics-row-compact {
    grid-template-columns: 1fr;
  }
}

.metric-card-compact {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.metric-card-compact:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.metric-card-compact.highlighted {
  border: 2px solid #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.circular-progress-small {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-percentage-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: #4F46E5;
}

.metric-value-compact-large {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.metric-value-compact-large .unit {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.metric-label-compact {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-status-compact {
  font-size: 0.8125rem;
  color: #6b7280;
}

.metric-grade-small {
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
}

.metric-grade-small.grade-a,
.metric-grade-small.grade-aplus {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.metric-grade-small.grade-b,
.metric-grade-small.grade-bplus {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.metric-grade-small.grade-c {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

/* Section Labels & Headings */
.section-label-small {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

/* Next Step / Coach Section */
.next-step-section {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 1.5rem;
}

.action-card-modern {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.action-label-badge {
  background: #4F46E5;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-run-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.re-run-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.action-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.action-description {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.start-drill-btn-gradient {
  width: 100%;
  background: linear-gradient(135deg, #4F46E5, #1FC3C3);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.start-drill-btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* What to Fix / Issues Section */
.issues-section-modern {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.issue-filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-pill {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  background: #e5e7eb;
}

.filter-pill.active {
  background: #4F46E5;
  color: white;
  border-color: #4F46E5;
}

.issues-list-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.issue-item-modern {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  align-items: start;
}

.issue-timestamp-btn .timestamp-link {
  background: #4F46E5;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Monaco', 'Courier New', monospace;
}

.issue-content-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.issue-category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.issue-text-quote {
  font-size: 0.9375rem;
  color: #0f172a;
  font-style: italic;
}

.issue-tip {
  font-size: 0.875rem;
  color: #6b7280;
}

.jump-btn-modern {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #4F46E5;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.jump-btn-modern:hover {
  background: #4F46E5;
  color: white;
  border-color: #4F46E5;
}

/* Right Sidebar */
.analysis-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

/* Progress Deltas */
.progress-deltas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.delta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delta-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.delta-value {
  font-size: 0.9375rem;
  font-weight: 700;
}

.delta-value.positive {
  color: #10b981;
}

.delta-value.negative {
  color: #ef4444;
}

.delta-value.neutral {
  color: #6b7280;
}

.no-data-text {
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
}

/* Trend Chart Placeholder */
.trend-chart-placeholder {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.chart-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.mini-chart {
  height: 60px;
  background: #f9fafb;
  border-radius: 6px;
  padding: 0.5rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 2px;
}

.chart-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, #4F46E5, #7c3aed);
  border-radius: 2px 2px 0 0;
  min-height: 10%;
}

/* Secondary Insights */
.insights-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-row-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.insight-label-simple {
  font-size: 0.875rem;
  color: #6b7280;
}

.insight-value-simple {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

/* Action Buttons Grid */
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
}

.action-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.action-icon {
  font-size: 1.25rem;
}

/* Recommendation Widget in Sidebar */
.recommendation-widget {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff) !important;
  border: 2px solid #e9d5ff !important;
}

.recommendation-content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rec-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6b21a8;
  line-height: 1.4;
}

.rec-actions-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-rec-primary-sidebar {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-rec-primary-sidebar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-rec-secondary-sidebar {
  background: white;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-rec-secondary-sidebar:hover {
  background: #faf5ff;
  border-color: #d8b4fe;
}

/* Transcript Section Modern */
.transcript-section-modern {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.transcript-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.transcript-header-modern h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.05em;
}

.toggle-highlights-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-highlights-btn:hover {
  background: #f9fafb;
}

.transcript-content-modern {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

/* Bottom Recommendation */
.bottom-recommendation {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border: 2px solid #e9d5ff;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .bottom-recommendation {
    flex-direction: column;
    align-items: stretch;
  }
}

.recommendation-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rec-icon {
  font-size: 1.5rem;
}

.rec-text {
  font-size: 1rem;
  color: #6b7280;
}

.rec-text strong {
  color: #0f172a;
  font-weight: 700;
}

.recommendation-actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .recommendation-actions {
    flex-direction: column;
  }
}

.btn-rec-primary {
  background: linear-gradient(135deg, #4F46E5, #1FC3C3);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-rec-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-rec-secondary {
  background: white;
  color: #4F46E5;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid #4F46E5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-rec-secondary:hover {
  background: #f5f3ff;
}

/* Progress Plan Page Styles */
.progress-plan-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .session-show-redesign {
    padding: 1rem;
  }

  .analysis-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .session-title-main {
    font-size: 1.5rem;
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
  }

  .issue-item-modern {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .jump-btn-modern {
    width: 100%;
  }
}

/* Notes Modal Styles */
.notes-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.notes-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 2;
}

.notes-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.notes-modal-content .modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.notes-modal-content .modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.notes-modal-content .modal-close:hover {
  color: #0f172a;
}

.notes-modal-content .modal-body ul {
  list-style-type: disc;
  margin-bottom: 0;
}

.notes-modal-content .modal-body li {
  margin-bottom: 0.5rem;
}

/* ============================================
   PROGRESS DASHBOARD
   ============================================ */

.progress-page {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
}

.progress-page .page-header {
  margin-bottom: 2rem;
}

.progress-page .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.progress-page .page-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.progress-dashboard {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Column */
.progress-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Right Column */
.progress-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Styles */
.weekly-focus-card,
.daily-plan-card,
.skill-snapshot-card,
.progress-charts-card,
.practice-calendar-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Weekly Focus Card */
.weekly-focus-card .estimated-time {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}

.focus-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.focus-icon {
  font-size: 1.5rem;
}

.focus-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.focus-target {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.focus-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-item {
  text-align: center;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 600;
}

.progress-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.focus-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.focus-actions .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.focus-actions .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.focus-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.focus-actions .btn-secondary {
  background: white;
  color: #6366f1;
  border: 2px solid #e5e7eb;
}

.focus-actions .btn-secondary:hover {
  border-color: #6366f1;
  background: #f9fafb;
}

.coach-tip {
  background: #f9fafb;
  border-left: 3px solid #6366f1;
  padding: 1rem;
  border-radius: 8px;
}

.coach-tip strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.coach-tip p {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* Daily Plan Card */
.plan-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.plan-number {
  width: 2rem;
  height: 2rem;
  background: #6366f1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.plan-content {
  flex: 1;
}

.plan-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.plan-content p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.btn-start {
  background: transparent;
  border: 1px solid #6366f1;
  color: #6366f1;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-start:hover {
  background: #6366f1;
  color: white;
}

.plan-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.plan-actions .btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-actions .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
}

.plan-actions .btn-link {
  background: transparent;
  color: #6366f1;
  border: 1px solid #e5e7eb;
}

/* Skill Snapshot Card */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-item {
  text-align: center;
}

.skill-name {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.skill-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.skill-delta {
  font-size: 0.875rem;
  font-weight: 600;
}

.skill-delta.positive {
  color: var(--success);
}

.skill-delta.negative {
  color: var(--danger);
}

/* Info Buttons & Tooltips */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: help;
  position: relative;
  transition: color 0.2s;
}

.info-btn:hover {
  color: #6366f1;
}

.tooltip-content {
  position: absolute;
  background: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 200px;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: normal;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
}

.tooltip-content.hidden {
  display: none;
}

.tooltip-content.visible {
  display: block;
}

/* Progress Charts Card */
.chart-container {
  margin-bottom: 2rem;
}

.chart-container:last-child {
  margin-bottom: 1rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chart-current-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #6366f1;
}

.chart-container canvas {
  height: 120px !important;
  width: 100%;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.chart-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Practice Calendar Card */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 4px;
  transition: all 0.2s;
}

.calendar-day.missed {
  background: #e5e7eb;
}

.calendar-day.trained {
  background: #6366f1;
}

.calendar-day:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.legend-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.legend-dot.missed {
  background: #e5e7eb;
}

.legend-dot.trained {
  background: #6366f1;
}

.calendar-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* No Sessions Message */
.no-sessions-message {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-sessions-message h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.no-sessions-message p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.no-sessions-message .btn-primary {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.no-sessions-message .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .progress-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .focus-progress-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
  }

  .progress-label {
    text-align: left;
    margin-bottom: 0;
  }

  .calendar-grid {
    gap: 0.25rem;
  }

  .plan-item {
    flex-direction: column;
  }

  .btn-start {
    width: 100%;
  }
}

/* Feedback Menu and Modal Styles */

/* Feedback button */
.feedback-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--brand-500), var(--aqua-500));
  color: white;
  border: 2px solid white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.feedback-button:hover,
.feedback-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Feedback modal */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feedback-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feedback-modal h2 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  color: var(--text);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feedback-description {
  margin: 0 0 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-500);
}

.character-count {
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 4px;
}

.file-input {
  display: none;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
}

.file-input-label:hover {
  border-color: var(--brand-500);
  background: #f0f0ff;
}

.file-icon {
  font-size: 1.25rem;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.remove-image:hover {
  background: var(--danger);
}

.feedback-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(116, 102, 255, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: #e5e7eb;
  color: var(--text);
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feedback-success {
  padding: 16px;
  background: var(--success);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .feedback-modal-content {
    padding: 24px;
    max-height: 85vh;
  }

  .feedback-modal h2 {
    font-size: 1.5rem;
  }

  .feedback-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .feedback-button {
    right: 10px;
    bottom: 10px;
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
