/* Modern Liquid Glassmorphic UI Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
  --font-sans: "Sukhumvit Set", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette (HSL Harmony - Dark Mode Base) */
  --bg-base: #080c14;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: 99, 102, 241;       /* Indigo: rgb(99, 102, 241) */
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  --secondary: 168, 85, 247;     /* Purple: rgb(168, 85, 247) */
  --accent: 20, 184, 166;        /* Teal: rgb(20, 184, 166) */
  --accent-glow: rgba(20, 184, 166, 0.2);
  
  --success: 34, 197, 94;        /* Green */
  --warning: 234, 179, 8;        /* Yellow */
  --danger: 239, 68, 68;         /* Red */
  
  /* Glassmorphism Tokens */
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.04);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  --glass-blur: blur(20px);
  
  /* Readability Base */
  --read-bg: #0f172a;
  --read-border: rgba(255, 255, 255, 0.12);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --blob-opacity: 0.45;
  --blob-blend: screen;
}

/* Light Theme Variables override */
body.light-theme {
  --bg-base: #f1f5f9;            /* Soft slate gray */
  --text-primary: #0f172a;       /* Deep slate */
  --text-secondary: #475569;     /* Muted slate */
  --text-muted: #64748b;
  
  /* Glassmorphism Tokens for Light Mode */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(15, 23, 42, 0.03);
  --glass-border-hover: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02), 0 12px 40px -8px rgba(15, 23, 42, 0.04);
  
  /* Readability Base for Light Mode */
  --read-bg: #f8fafc;
  --read-border: rgba(0, 0, 0, 0.1);
  
  --blob-opacity: 0.25;
  --blob-blend: normal;
  
  --primary-glow: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(20, 184, 166, 0.1);
}

body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4, 
body.light-theme h5, 
body.light-theme h6 {
  color: #0f172a !important;
}

body.light-theme .glass-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .glass-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .test-item {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .test-item:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .option-label {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

body.light-theme .option-label:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .option-input:checked + .option-label {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgb(99, 102, 241);
  color: rgb(79, 70, 229);
}

body.light-theme .option-letter {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

body.light-theme .option-input:checked + .option-label .option-letter {
  background: rgb(99, 102, 241);
  border-color: rgb(99, 102, 241);
  color: white;
}

body.light-theme .form-control {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.light-theme .form-control:focus {
  background: #ffffff;
  border-color: rgb(20, 184, 166);
}

body.light-theme .bubble-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

body.light-theme .bubble-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .bubble-btn.active {
  border-color: rgb(99, 102, 241);
  color: rgb(79, 70, 229);
}

body.light-theme .bubble-btn.answered {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgb(20, 184, 166);
  color: rgb(13, 148, 136);
}

body.light-theme .audio-player-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .explanation-box {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme table tr {
  color: var(--text-primary) !important;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Liquid Animation Blobs */
.liquid-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-base);
  transition: background-color 0.4s ease;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  mix-blend-mode: var(--blob-blend);
  animation: float-around 25s infinite alternate ease-in-out;
  transition: opacity 0.4s ease, mix-blend-mode 0.4s ease;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0) 70%);
  top: -10%;
  left: -5%;
  animation-duration: 20s;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, rgba(168, 85, 247, 0) 70%);
  bottom: -10%;
  right: -5%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.65) 0%, rgba(20, 184, 166, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes float-around {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(80px, -60px) scale(1.15) rotate(120deg); }
  66% { transform: translate(-50px, 70px) scale(0.9) rotate(240deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel-hover:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.12), var(--glass-shadow);
  transform: translateY(-2px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Typography & Layouts */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; line-height: 2.5rem; }
p { color: var(--text-secondary); line-height: 1.6; }
a { color: rgb(129, 140, 248); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: rgb(165, 180, 252); }

/* Button & Form Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, rgb(99, 102, 241) 0%, rgb(168, 85, 247) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

body.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background: linear-gradient(135deg, rgb(20, 184, 166) 0%, rgb(13, 148, 136) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-accent:hover { box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5); }

.btn-danger {
  background: linear-gradient(135deg, rgb(239, 68, 68) 0%, rgb(220, 38, 38) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover { box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); }

.btn-success {
  background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  border: none;
}

.btn-success:hover { box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5); }

.btn-orange {
  background: linear-gradient(135deg, rgb(249, 115, 22) 0%, rgb(234, 88, 12) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  border: none;
}

.btn-orange:hover { box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: rgb(20, 184, 166);
  box-shadow: 0 0 15px var(--accent-glow);
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* Page Layouts */
#app { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding: 2rem; max-width: 1400px; width: 100%; margin: 0 auto; }

/* Custom Navigation Bar Styles */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 2rem;
  margin-top: 1rem;
  border-radius: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgb(165, 180, 252) 0%, rgb(216, 180, 254) 50%, rgb(153, 246, 228) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

body.light-theme .nav-brand {
  background: linear-gradient(135deg, rgb(79, 70, 229) 0%, rgb(147, 51, 234) 50%, rgb(13, 148, 136) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

body.light-theme .nav-link:hover, body.light-theme .nav-link.active {
  background: rgba(0, 0, 0, 0.05);
}

.nav-user { display: flex; align-items: center; gap: 0.85rem; }
.user-role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}
.user-role-badge.role-student {
  background: rgba(20, 184, 166, 0.1);
  color: rgb(45, 212, 191);
  border-color: rgba(20, 184, 166, 0.25);
}
.user-role-badge.role-teacher {
  background: rgba(168, 85, 247, 0.1);
  color: rgb(192, 132, 252);
  border-color: rgba(168, 85, 247, 0.25);
}

body.light-theme .user-role-badge.role-student {
  background: rgba(13, 148, 136, 0.06);
  color: rgb(13, 148, 136);
  border-color: rgba(13, 148, 136, 0.2);
}
body.light-theme .user-role-badge.role-teacher {
  background: rgba(126, 34, 206, 0.06);
  color: rgb(126, 34, 206);
  border-color: rgba(126, 34, 206, 0.2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  background: linear-gradient(135deg, rgb(99, 102, 241) 0%, rgb(168, 85, 247) 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
  user-select: none;
}
body.light-theme .user-avatar {
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}


/* Authentication Screen UI */
.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 120px); padding: 2rem 0; }
.auth-container { width: 100%; max-width: 480px; padding: 2.5rem; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .auth-tabs {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.auth-tab {
  text-align: center;
  padding: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .auth-tab.active {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.role-option {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.light-theme .role-option {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.01);
}

.role-option input { display: none; }
.role-option.active {
  border-color: rgb(99, 102, 241);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Dashboard Statistics */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, white 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .stat-value {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-icon {
  background: rgba(255, 255, 255, 0.05);
  color: rgb(129, 140, 248);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .stat-icon {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.04);
}

/* Dashboard Layout Columns */
.dashboard-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 1024px) { .dashboard-layout { grid-template-columns: 1fr; } }
.list-panel { display: flex; flex-direction: column; gap: 1rem; }

/* Test List Item */
.test-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.test-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.test-badge { padding: 0.25rem 0.50rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.badge-reading { background: rgba(99, 102, 241, 0.15); color: rgb(165, 180, 252); border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-listening { background: rgba(20, 184, 166, 0.15); color: rgb(153, 246, 228); border: 1px solid rgba(20, 184, 166, 0.3); }
.badge-full { background: rgba(168, 85, 247, 0.15); color: rgb(216, 180, 254); border: 1px solid rgba(168, 85, 247, 0.3); }

/* Student Test Engine Layout */
.test-runner-container { display: flex; flex-direction: column; height: calc(100vh - 140px); gap: 1.5rem; }
.test-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; gap: 1rem; }
.header-title-area { flex: 0 1 auto; }
.progress-container { flex: 1; margin: 0 2rem; }
.header-actions-area { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-secondary); }
.progress-bar-bg { height: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
body.light-theme .progress-bar-bg { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.02); }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, rgb(99, 102, 241) 0%, rgb(20, 184, 166) 100%); border-radius: 4px; transition: width 0.3s ease-out; }
.timer-box { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; padding: 0.5rem 1rem; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
body.light-theme .timer-box { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.05); }
.timer-warning { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: rgb(248, 113, 113); animation: pulse 1s infinite alternate; }

/* Split-Screen Workspace */
.test-workspace { display: grid; grid-template-columns: 1.1fr 1fr; flex: 1; gap: 1.5rem; min-height: 0; }
@media (max-width: 900px) { .test-workspace { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.workspace-left { overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; height: 100%; }
.workspace-right { overflow-y: auto; padding: 2rem; height: 100%; display: flex; flex-direction: column; gap: 1.75rem; }

/* Custom layout variants */
.test-workspace.part-5-layout { grid-template-columns: 1fr; }
.test-workspace.listening-compact-layout { grid-template-columns: 340px 1fr; }
.workspace-left.compact-padding { padding: 1.25rem; gap: 1rem; }

@media (max-width: 900px) {
  .test-runner-container { height: auto; gap: 1rem; }
  .test-workspace { grid-template-columns: 1fr !important; grid-template-rows: auto auto !important; height: auto; gap: 1rem; }
  .test-workspace.part-5-layout { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .test-workspace.listening-compact-layout { grid-template-columns: 1fr !important; grid-template-rows: auto auto !important; }
  .workspace-left, .workspace-right { height: auto !important; overflow-y: visible !important; padding: 1.25rem 1rem !important; }
  
  .test-header { flex-direction: column; align-items: stretch; padding: 1rem; gap: 1rem; }
  .progress-container { margin: 0; width: 100%; }
  .header-actions-area { display: flex; justify-content: space-between; align-items: center; width: 100%; }
  
  .navigation-bubble-sheet {
    position: sticky;
    bottom: 0.5rem;
    z-index: 100;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0.75rem 1rem;
  }
  body.light-theme .navigation-bubble-sheet {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }
  
  main { padding: 1rem 0.5rem; }
  .nav-container { margin: 0.5rem; padding: 0.75rem 1rem; }
  .option-label { padding: 0.75rem 1rem; font-size: 0.9rem; }
  .audio-player-card { padding: 0.75rem; gap: 0.75rem; }

  /* Mobile Tab Switcher for reading section */
  .mobile-workspace-tabs {
    display: flex !important;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .mobile-tab-btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .mobile-tab-btn.active {
    background: linear-gradient(135deg, rgb(99,102,241), rgb(168,85,247)) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
  }
  body.light-theme .mobile-tab-btn {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
  }
  body.light-theme .mobile-tab-btn.active {
    background: linear-gradient(135deg, rgb(99,102,241), rgb(168,85,247)) !important;
    color: white !important;
  }
  .test-workspace.mobile-active-passage .workspace-right {
    display: none !important;
  }
  .test-workspace.mobile-active-questions .workspace-left {
    display: none !important;
  }

  /* High contrast glass fallback on mobile for better legibility */
  .glass-panel {
    background: rgba(15, 23, 42, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
  body.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  }

  /* Mobile Touch Targets expansion */
  .exam-access-toggle {
    width: 24px !important;
    height: 24px !important;
    margin-right: 0.5rem;
  }
  .draggable-chapter, .draggable-lesson {
    padding: 1.5rem 1.25rem !important;
  }
  .focus-part-checkbox {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Readability Variant for Reading Passages (Part 7) */
.passage-readability-card {
  background-color: var(--read-bg) !important;
  border: 1px solid var(--read-border) !important;
  color: #e2e8f0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.light-theme .passage-readability-card {
  color: #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.passage-readability-card h2, .passage-readability-card h3, .passage-readability-card h4 {
  color: white !important;
  font-family: 'Playfair Display', Georgia, serif;
}

body.light-theme .passage-readability-card h2, 
body.light-theme .passage-readability-card h3, 
body.light-theme .passage-readability-card h4 {
  color: #0f172a !important;
}

.passage-content { white-space: pre-wrap; font-family: inherit; margin-top: 1rem; }
.part-label { align-self: flex-start; background: rgba(255, 255, 255, 0.08); padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
body.light-theme .part-label { background: rgba(0, 0, 0, 0.06); }

/* Photo & Audio Player */
.photo-container { width: 100%; max-height: 320px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.2); }
body.light-theme .photo-container { border-color: rgba(0,0,0,0.08); background: rgba(0, 0, 0, 0.05); }
.photo-img { max-width: 100%; max-height: 320px; object-fit: contain; }
.audio-player-card { padding: 1rem; display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, 0.03); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); }
.audio-controls { flex: 1; }

/* Question Options selection Styling */
.question-block { padding: 1rem 0; }
.option-group { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
.option-wrapper { position: relative; }
.option-input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.option-label { display: flex; align-items: center; padding: 0.95rem 1.25rem; border-radius: 10px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); cursor: pointer; transition: var(--transition-smooth); font-weight: 500; gap: 1rem; }
.option-label:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); }
.option-input:checked + .option-label { background: rgba(99, 102, 241, 0.15); border-color: rgb(99, 102, 241); box-shadow: 0 0 15px rgba(99, 102, 241, 0.15); color: white; }
.option-letter { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; font-weight: 700; transition: var(--transition-fast); }
.option-input:checked + .option-label .option-letter { background: rgb(99, 102, 241); border-color: rgb(99, 102, 241); color: white; }

/* Bubble Navigation Sheet */
.navigation-bubble-sheet { padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bubbles-grid { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; flex: 1; }
.bubble-btn { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: 0.85rem; cursor: pointer; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-secondary); transition: var(--transition-fast); position: relative; }
.bubble-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); color: var(--text-primary); }
.bubble-btn.active { border-color: rgb(99, 102, 241); color: rgb(129, 140, 248); box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); }
.bubble-btn.answered { background: rgba(20, 184, 166, 0.15); border-color: rgb(20, 184, 166); color: rgb(20, 184, 166); }
.bubble-btn.flagged { border-color: rgb(234, 179, 8); }
.bubble-btn.flagged::after { content: '🚩'; position: absolute; top: -4px; right: -4px; font-size: 0.65rem; }

/* Flag & Review Actions */
.review-actions { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
body.light-theme .review-actions { border-color: rgba(0, 0, 0, 0.05); }
.flag-toggle-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: var(--transition-fast); }
.flag-toggle-btn:hover, .flag-toggle-btn.flagged { color: rgb(234, 179, 8); }

/* Test Review & Score Screen */
.results-header { text-align: center; padding: 2rem 0; }
.score-circle-container { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; }
.score-circle { width: 140px; height: 140px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
body.light-theme .score-circle { border-color: rgba(0,0,0,0.05); }
.score-circle-listening { border-color: rgba(20, 184, 166, 0.3); background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 80%); }
.score-circle-reading { border-color: rgba(99, 102, 241, 0.3); background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 80%); }
.score-circle-total { border-color: rgba(168, 85, 247, 0.4); background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 80%); }
.score-circle-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.score-circle-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-top: 0.25rem; }

/* Correct/Incorrect Option Review Styles */
.option-wrapper-correct .option-label { border-color: rgb(34, 197, 94) !important; background: rgba(34, 197, 94, 0.15) !important; color: white !important; }
body.light-theme .option-wrapper-correct .option-label { color: rgb(21, 128, 61) !important; }
.option-wrapper-correct .option-letter { background: rgb(34, 197, 94) !important; border-color: rgb(34, 197, 94) !important; color: white !important; }
.option-wrapper-incorrect .option-label { border-color: rgb(239, 68, 68) !important; background: rgba(239, 68, 68, 0.15) !important; color: white !important; }
body.light-theme .option-wrapper-incorrect .option-label { color: rgb(185, 28, 28) !important; }
.option-wrapper-incorrect .option-letter { background: rgb(239, 68, 68) !important; border-color: rgb(239, 68, 68) !important; color: white !important; }
.explanation-box { background: rgba(255, 255, 255, 0.03); border-left: 4px solid rgb(99, 102, 241); padding: 1rem; border-radius: 0 8px 8px 0; margin-top: 1rem; }
body.light-theme .explanation-box { border-left-color: rgb(79, 70, 229); }

/* Table configurations */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
body.light-theme th, body.light-theme td { border-bottom-color: rgba(0, 0, 0, 0.06); }
th { color: var(--text-secondary); font-weight: 700; text-align: left; }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.01); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }
body.light-theme ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
body.light-theme ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

.chart-container { position: relative; width: 100%; height: 100%; min-height: 250px; }

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.5s infinite;
  border-radius: 8px;
}
body.light-theme .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.02) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.02) 75%);
  background-size: 200% 100%;
}
.skeleton-text { height: 16px; margin-bottom: 0.5rem; width: 100%; }
.skeleton-title { height: 24px; margin-bottom: 1rem; width: 60%; }
@keyframes skeleton-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulse {
  0% { opacity: 0.9; box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
  100% { opacity: 1; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
}

/* Floating controls */
.floating-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .control-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .control-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Filter pills for Exam Library */
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  user-select: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-color: rgb(168, 85, 247);
  color: rgb(216, 180, 254);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

/* Light Theme override for filter pills */
body.light-theme .filter-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

body.light-theme .filter-pill:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
}

body.light-theme .filter-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgb(168, 85, 247);
  color: rgb(109, 40, 217);
  box-shadow: none;
}

/* Custom Tooltip Styles for Graduation Cap review links */
.tooltip-container {
  position: relative;
}

.custom-tooltip {
  visibility: hidden;
  width: 200px;
  background-color: rgba(15, 23, 42, 0.95);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px 10px;
  position: absolute;
  z-index: 100;
  bottom: 125%; /* Position above the button */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tooltip arrow */
.custom-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Light Theme overrides for tooltips */
body.light-theme .custom-tooltip {
  background-color: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .custom-tooltip::after {
  border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
}

/* Compact Audio Player and Status Animations */
.compact-audio-player {
  padding: 0.75rem 1rem !important;
  gap: 0.75rem !important;
  min-height: 52px;
}

.audio-status-anim {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  animation: audioPulse 1.2s infinite alternate ease-in-out;
  box-shadow: 0 0 8px var(--accent-color);
}

@keyframes audioPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-color);
  }
}

/* Flagged navigation bubble overrides */
.bubble-btn.flagged {
  background: rgba(234, 179, 8, 0.15) !important;
  border-color: rgb(234, 179, 8) !important;
  color: rgb(234, 179, 8) !important;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.2) !important;
}
.bubble-btn.flagged:hover {
  background: rgba(234, 179, 8, 0.25) !important;
  border-color: rgb(234, 179, 8) !important;
  color: rgb(234, 179, 8) !important;
}

body.light-theme .bubble-btn.flagged {
  background: rgba(234, 179, 8, 0.12) !important;
  border-color: rgb(202, 138, 4) !important;
  color: rgb(161, 98, 7) !important;
  box-shadow: none !important;
}
body.light-theme .bubble-btn.flagged:hover {
  background: rgba(234, 179, 8, 0.2) !important;
}

/* Typography & Spacing Enhancements (Intense Reading Mode) */
.passage-content {
  font-family: var(--font-sans) !important;
  line-height: 1.8 !important;
  font-size: 1.05rem !important;
  color: #f8fafc !important; /* bright crisp slate-white */
  letter-spacing: 0.015em !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.light-theme .passage-content {
  color: #1e293b !important; /* high-contrast deep grey */
}

.question-block p {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.55 !important;
  margin-bottom: 0.95rem !important;
  letter-spacing: -0.01em !important;
}

body.light-theme .question-block p {
  color: #0f172a !important; /* deep high-contrast slate */
}

.option-label {
  padding: 0.85rem 1.15rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
  transition: all 0.15s ease-in-out !important;
}

body.light-theme .option-label {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

body.light-theme .option-label:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

/* Perfectly align radio check styling */
.option-input:checked + .option-label {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgb(99, 102, 241) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15) !important;
  color: #ffffff !important;
}

body.light-theme .option-input:checked + .option-label {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgb(79, 70, 229) !important;
  color: rgb(67, 56, 202) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.1) !important;
}

/* Test Mode Segment Control inside Exam Library */
.test-mode-segment-control {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
body.light-theme .test-mode-segment-control {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.03);
}

.mode-seg-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.mode-seg-btn:hover {
  color: var(--text-primary);
}
.mode-seg-btn.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
body.light-theme .mode-seg-btn.active {
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.part-select-pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.part-select-pill.active {
  border-color: rgba(20, 184, 166, 0.4) !important;
  background: rgba(20, 184, 166, 0.15) !important;
  color: rgb(45, 212, 191) !important;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.1);
}
body.light-theme .part-select-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}
body.light-theme .part-select-pill.active {
  background: rgba(20, 184, 166, 0.08) !important;
  border-color: rgb(13, 148, 136) !important;
  color: rgb(13, 148, 136) !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}/* 7-Parts Progress Bars and Gamified AI Score Pointer Styling */
.fill-listening {
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.fill-reading {
  background: linear-gradient(90deg, #f472b6, #db2777);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
}
.text-listening {
  color: #38bdf8;
}
.text-reading {
  color: #f472b6;
}
body.light-theme .text-listening {
  color: #0369a1;
}
body.light-theme .text-reading {
  color: #be185d;
}

/* Dashboard Highlight Cards & Gamified Score Slider Pointer */
.dashboard-highlight-card {
  padding: 2.25rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 285px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .dashboard-highlight-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.02);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.06);
}

.dashboard-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .dashboard-highlight-card:hover {
  box-shadow: 0 24px 48px -10px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.05);
}

/* Gamified AI Predict Pointer */
.gamified-pointer-wrap {
  position: relative;
  padding: 12px 0;
}
.gamified-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
}
body.light-theme .gamified-track {
  background: rgba(0, 0, 0, 0.06);
}
.gamified-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.gamified-pointer {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.7);
  transition: left 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 5;
  cursor: pointer;
  animation: pointerPulse 2s infinite;
}
body.light-theme .gamified-pointer {
  border: 3.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.5);
}

@keyframes pointerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 0 4px 12px rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0), 0 4px 12px rgba(16, 185, 129, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 4px 12px rgba(16, 185, 129, 0.5);
  }
}

/* Secondary Button Outline style */
.btn-orange-outline {
  background: transparent !important;
  color: #ea580c !important;
  border: 2px solid #ea580c !important;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out;
}
.btn-orange-outline:hover {
  background: rgba(234, 88, 12, 0.08) !important;
  color: #ea580c !important;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.15) !important;
}
body.light-theme .btn-orange-outline {
  border-color: #ea580c !important;
  color: #ea580c !important;
}
body.light-theme .btn-orange-outline:hover {
  background: rgba(234, 88, 12, 0.05) !important;
}

