/* ==========================================================================
   ARIADNA B1 ENGLISH MASTER - CANVA AESTHETIC STYLESHEET
   Modern, soft, playful, highly legible, 100% responsive for PC & Mobile
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-dark: #3730a3;

  --accent-purple: #8b5cf6;
  --accent-purple-light: #ede9fe;
  --accent-pink: #ec4899;
  --accent-pink-light: #fce7f3;
  --accent-teal: #14b8a6;
  --accent-teal-light: #ccfbf1;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-sky: #0ea5e9;
  --accent-sky-light: #e0f2fe;

  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.08);
  --shadow-lg: 0 12px 28px rgba(99, 102, 241, 0.12);
  --shadow-hover: 0 16px 36px rgba(99, 102, 241, 0.16);

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP NAVIGATION BAR (Canva Soft Style)
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Timer Widget (2h Study Plan) */
.timer-widget {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timer-icon {
  font-size: 1.3rem;
  animation: pulse 2s infinite ease-in-out;
}

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

.timer-display {
  display: flex;
  flex-direction: column;
}

.timer-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4338ca;
  font-weight: 700;
}

.timer-time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #312e81;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-timer {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-timer:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.btn-timer-reset {
  background: white;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-timer-reset:hover {
  background: #e0e7ff;
}

/* Nav Stats & Dad Report Button */
.nav-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-badge {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.btn-test-sound {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-test-sound:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-dad-report {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.25s ease;
}

.btn-dad-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* ==========================================================================
   APP LAYOUT & SIDEBAR
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: calc(100vh - 72px);
}

.sidebar {
  width: 290px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
}

.sidebar-header {
  padding: 0 0.5rem;
}

.sidebar-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-light);
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
  padding: 0 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--primary);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4338ca;
  border-color: #c7d2fe;
  font-weight: 700;
}

.nav-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.nav-text {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-status-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 700;
}

.nav-status-badge.passed {
  background: #d1fae5;
  color: #065f46;
}

.nav-final-exam {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  color: #92400e;
}

.nav-final-exam.active {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}

.nav-tag-urgent {
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.sidebar-quote-card {
  margin-top: auto;
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  border: 1px dashed #d8b4fe;
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
}

.quote-icon {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.quote-text {
  font-size: 0.8rem;
  color: #6b21a8;
  font-style: italic;
  line-height: 1.45;
}

/* ==========================================================================
   MAIN CONTENT CONTAINER
   ========================================================================== */
.main-content {
  flex-grow: 1;
  padding: 2rem 2.5rem;
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
}

/* Welcome Banner / Hero */
.hero-card {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.22);
  margin-bottom: 2rem;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1.02rem;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-hero-primary {
  background: white;
  color: #4f46e5;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  font-size: 0.92rem;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   2-HOUR DAILY STUDY PLANNER WIDGET
   ========================================================================== */
.study-plan-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

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

.section-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #1e1b4b;
}

.section-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.plan-block {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.plan-block:hover {
  border-color: #c7d2fe;
  background: #fdfdfd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.plan-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.plan-block-time {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.plan-block-icon {
  font-size: 1.35rem;
}

.plan-block-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.plan-block-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.plan-block-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 0.65rem;
}

.plan-check-label {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.plan-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ==========================================================================
   MODULE CARDS GRID (DASHBOARD)
   ========================================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.mod-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mod-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.mod-badge-1 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.mod-badge-2 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.mod-badge-3 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.mod-badge-4 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.mod-badge-5 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.mod-badge-6 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }

.mod-title-area {
  flex-grow: 1;
}

.mod-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.mod-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.3;
}

.mod-topics-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.mod-topics-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mod-topics-list li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.1rem;
}

.mod-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mod-progress-info {
  display: flex;
  flex-direction: column;
}

.mod-progress-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mod-progress-bar-bg {
  width: 90px;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 3px;
}

.mod-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.btn-mod-action {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mod-action:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODULE VIEW (TOPICS, TABS, THEORY, PRACTICES, DIAGNOSTIC QUIZ)
   ========================================================================== */
.module-view-header {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mod-view-intro h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e1b4b;
}

.mod-view-intro p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mod-pass-rule-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #92400e;
  font-weight: 600;
}

/* Topic Tabs Navigation */
.topic-tabs-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.topic-tab-btn {
  background: white;
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.topic-tab-btn:hover {
  background: #f8fafc;
  color: var(--primary);
  border-color: #cbd5e1;
}

.topic-tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.topic-tab-btn.quiz-tab {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.topic-tab-btn.quiz-tab.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

/* Theory & Lesson Content Card */
.lesson-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.lesson-title-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.lesson-title-area h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e1b4b;
}

.theory-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.theory-box h4 {
  font-size: 1.05rem;
  color: #1e1b4b;
  margin-bottom: 0.5rem;
}

.rule-highlight {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  font-size: 0.92rem;
  color: #1e40af;
}

/* Real-Life Conversation Cards */
.conversation-block {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

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

.conversation-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b21a8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-bubble-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
}

.chat-bubble.speaker-a {
  background: white;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble.speaker-b {
  background: #6366f1;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.speaker-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  display: block;
}

.chat-bubble.speaker-a .speaker-label { color: #6366f1; }
.chat-bubble.speaker-b .speaker-label { color: #e0e7ff; }

.translation-subtext {
  font-size: 0.78rem;
  opacity: 0.85;
  font-style: italic;
  display: block;
  margin-top: 0.25rem;
}

/* Audio Pronunciation Buttons */
.btn-speak {
  background: white;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.45rem;
  transition: all 0.2s;
}

.btn-speak:hover {
  background: #e0e7ff;
  transform: scale(1.05);
}

/* 10 PRACTICES SECTION */
.practices-container {
  margin-top: 2rem;
}

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

.practices-header h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exercise-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.exercise-item:hover {
  border-color: #cbd5e1;
}

.exercise-num-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.exercise-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.85rem;
}

/* Options / Buttons for Multiple Choice Exercises */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.option-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.option-btn:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

.option-btn.selected-correct {
  background: #d1fae5 !important;
  border-color: #34d399 !important;
  color: #065f46 !important;
  font-weight: 700;
}

.option-btn.selected-wrong {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
  color: #991b1b !important;
}

/* Fill in the blank exercises */
.fill-blank-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.input-fill {
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  min-width: 140px;
  transition: all 0.2s;
}

.input-fill:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-check-blank {
  background: #6366f1;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.feedback-banner {
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.3s ease;
}

.feedback-banner.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.feedback-banner.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MODULE DIAGNOSTIC TEST (10 QUESTIONS, 9/10 PASSING RULE)
   ========================================================================== */
.quiz-container {
  background: white;
  border: 2px solid #e0e7ff;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.quiz-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.quiz-badge-rule {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.quiz-q-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.quiz-q-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.35rem;
}

.quiz-q-text {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.quiz-opt-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-opt-label {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.quiz-opt-label:hover {
  background: #eef2ff;
  border-color: #818cf8;
}

.quiz-opt-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.quiz-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-submit-quiz {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
}

.btn-submit-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Quiz Result Screens (Pass vs Repeat) */
.quiz-result-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-xl);
}

.quiz-result-card.passed {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #34d399;
}

.quiz-result-card.failed {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #f87171;
}

.result-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.result-score-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.passed .result-score-tag { color: #065f46; }
.failed .result-score-tag { color: #991b1b; }

.result-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-desc {
  font-size: 0.98rem;
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

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

/* ==========================================================================
   MODULE 5: WRITING FOR DAD AREA
   ========================================================================== */
.dad-writing-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.dad-instruction-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dad-badge-icon {
  font-size: 2.5rem;
}

.dad-instruction-text h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 0.25rem;
}

.dad-instruction-text p {
  font-size: 0.92rem;
  color: #92400e;
  line-height: 1.45;
}

.writing-textarea {
  width: 100%;
  height: 170px;
  border: 2px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  background: white;
  outline: none;
  transition: all 0.2s;
}

.writing-textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.writing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #92400e;
  font-weight: 600;
}

.btn-send-dad {
  background: #d97706;
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-send-dad:hover {
  background: #b45309;
  transform: translateY(-2px);
}

/* ==========================================================================
   LISTENING & SPEECH PLAYER
   ========================================================================== */
.listening-player-card {
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-icon {
  width: 48px;
  height: 48px;
  background: #6366f1;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.player-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1b4b;
}

.player-subtitle {
  font-size: 0.82rem;
  color: #4338ca;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-play-audio {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-play-audio:hover {
  background: #4338ca;
  transform: scale(1.03);
}

/* Dictation Spelling Game */
.dictation-box {
  background: white;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   FINAL EXAM & DIAGNOSTIC REPORT
   ========================================================================== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.report-stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.report-stat-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.report-stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #1e1b4b;
}

.report-recommendations-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.rec-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rec-item {
  background: white;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #854d0e;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   MODAL & PRINTABLE REPORT FOR DAD
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e1b4b;
}

.btn-close-modal {
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
}

.btn-secondary {
  background: white;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-primary {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Report Sheet Styling */
.dad-sheet {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: #ffffff;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.sheet-seal {
  background: #f5f3ff;
  border: 1px solid #c7d2fe;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: right;
  font-size: 0.8rem;
}

.sheet-seal-badge {
  font-weight: 800;
  color: #4338ca;
}

.dad-signature-area {
  margin-top: 2rem;
  border-top: 1px dashed #cbd5e1;
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sign-line {
  border-bottom: 1px solid #94a3b8;
  height: 40px;
  margin-bottom: 0.35rem;
}

.sign-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Audio Toast */
.audio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e1b4b;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  max-width: 420px;
}

.btn-toast-stop {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s;
}

.btn-toast-stop:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Stories & Dictation Lab Styles */
.story-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.story-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.story-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e1b4b;
}

.story-paragraph-item {
  background: #f8fafc;
  border-left: 3px solid #6366f1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.story-p-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.6;
}

.story-p-trans {
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
  display: block;
  margin-top: 0.35rem;
}

.dictation-lab-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.audio-toast.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Mobile Nav Bar */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  justify-content: space-around;
  z-index: 100;
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-btn.active {
  color: var(--primary);
}

.mobile-nav-btn .btn-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (PC & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .sidebar {
    display: none; /* Mobile bottom nav used instead */
  }

  .mobile-nav {
    display: flex;
  }

  .main-content {
    padding: 1.25rem 1rem 5rem 1rem;
  }

  .top-nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .timer-widget {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .dad-signature-area {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #dadReportModal, #dadReportModal * {
    visibility: visible;
  }
  #dadReportModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: white;
    padding: 0;
  }
  .modal-footer, .btn-close-modal {
    display: none !important;
  }
  .modal-card {
    box-shadow: none;
    border: none;
  }
}
