/* ==========================================================================
   HOOKED WORKBOOK - MODERN INTERACTIVE STYLES
   Design System: Clean, Premium, Tech-Forward, Bilingual Support
   ========================================================================== */

:root {
  /* Color Palette - Light Theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #334155;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  --border-light: #e2e8f0;
  --border-focus: #818cf8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-surface-hover: #1e293b;
  --bg-sidebar: #050811;
  --bg-sidebar-hover: #111827;
  --bg-sidebar-active: #1f2937;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-border: #4338ca;
  
  --accent: #38bdf8;
  --accent-light: rgba(56, 189, 248, 0.15);
  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.15);
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.15);
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.15);
  
  --border-light: #1f2937;
  --border-focus: #6366f1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

/* Sidebar Navigation */
.app-sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-text p {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-progress {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.progress-info span.progress-pct {
  color: var(--accent);
  font-weight: 700;
}

.progress-bar-container {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #0ea5e9, #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}

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

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.5rem 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: #ffffff;
}

.nav-item.active {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nav-item .nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-item.completed .nav-badge {
  background: var(--success);
  color: white;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}

/* Main Content Area */
.app-main {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header & Controls */
.top-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(var(--bg-surface), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.btn-sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--text-primary);
  cursor: pointer;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--success-light);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-outline:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

.btn-sample {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
}
.btn-sample:hover {
  background-color: var(--accent);
  color: white;
}

.btn-danger-outline {
  background-color: transparent;
  color: var(--danger);
  border-color: var(--danger-light);
}
.btn-danger-outline:hover {
  background-color: var(--danger);
  color: white;
}

/* Bilingual switch pill */
.switch-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-hover);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
}

.switch-pill button {
  background: transparent;
  border: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.switch-pill button.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Container */
.content-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem 2rem;
}

/* Hero Section */
.hero-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  max-width: 700px;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-meta span strong {
  color: #ffffff;
}

/* Sections */
.workbook-section {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.workbook-section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.section-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(to right, var(--bg-surface), var(--bg-surface-hover));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-body {
  padding: 2rem;
}

/* English subtitle support */
.en-text {
  display: block;
  font-size: 0.85em;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.hide-en .en-text {
  display: none !important;
}

/* Callout Box / Remember this */
.callout-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.callout-box.info {
  background-color: var(--accent-light);
  border-left-color: var(--accent);
}

.callout-box.warning {
  background-color: var(--warning-light);
  border-left-color: var(--warning);
}

.callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-box.info .callout-title {
  color: var(--accent);
}

.callout-content ul {
  padding-left: 1.25rem;
}

.callout-content li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Diagrams and Figures */
.figure-wrapper {
  margin: 1.75rem 0;
  text-align: center;
  background: var(--bg-surface-hover);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.figure-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.figure-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* Interactive SVG Hook Model */
.interactive-hook-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.hook-quadrant {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.hook-quadrant:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.hook-quadrant.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.quadrant-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.quadrant-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.quadrant-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Exercise Form Components */
.exercise-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: border-color var(--transition-fast);
}

.exercise-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.exercise-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.q-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.exercise-instruction {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.5;
}

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

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

/* Checkbox Grid for Exercise 3 */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkbox-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.checkbox-pill:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--primary-border);
}

.checkbox-pill input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.checkbox-pill.checked {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.pill-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.pill-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

/* Template Builder Box (Exercise 2) */
.template-builder {
  background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(14, 165, 233, 0.05));
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.template-sentence {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.8;
}

.template-fill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  min-width: 140px;
}

/* Interactive Manipulation Matrix (Exercise 6) */
.matrix-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.matrix-quadrant {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.matrix-quadrant:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.matrix-quadrant.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.matrix-role {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-criteria {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.matrix-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Testimonials Carousel / Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-text {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

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

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

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

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ==========================================================================
   PRINT MEDIA STYLES (for PDF export / Printing)
   ========================================================================== */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  
  .app-sidebar,
  .top-header,
  .toast,
  .btn,
  .switch-pill,
  .modal-overlay {
    display: none !important;
  }
  
  .app-main {
    margin-left: 0 !important;
  }
  
  .content-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .hero-card {
    background: #f1f5f9 !important;
    color: black !important;
    border: 1px solid #cbd5e1;
    box-shadow: none !important;
    page-break-after: avoid;
  }
  
  .hero-card::after {
    display: none;
  }
  
  .hero-title, .hero-subtitle, .hero-meta strong {
    color: black !important;
  }
  
  .workbook-section {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 2rem !important;
  }
  
  textarea.form-control, input.form-control {
    border: 1px solid #94a3b8 !important;
    background: #fafafa !important;
    color: black !important;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  
  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  
  .app-main {
    margin-left: 0;
  }
  
  .btn-sidebar-toggle {
    display: inline-flex;
  }
  
  .top-header {
    padding: 0.75rem 1rem;
  }
  
  .content-container {
    padding: 1.5rem 1rem 3rem 1rem;
  }
  
  .hero-card {
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .interactive-hook-container,
  .matrix-container {
    grid-template-columns: 1fr;
  }
}
