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

:root {
  /* Achtergronden */
  --bg-base:    #0D1015;
  --bg-surface: #181D20;
  --bg-elevated:#3B4044;
  --bg-overlay: #2A2F35;

  /* Primaire accent — Defensie Amber */
  --accent:       #FEAB00;
  --accent-hover: #E09500;
  --accent-muted: rgba(254,171,0,0.15);

  /* Militaire identiteitskleur — 11e Luchtmobiele Brigade (RAL 3005 Wijnrood) */
  --military:        #59231d;
  --military-light:  #7a2e26;
  --military-hover:  #6e2820;
  --military-muted:  rgba(89,35,29,0.25);
  --military-border: rgba(89,35,29,0.5);

  /* Falcon Guards tartan */
  --tartan-overlay: rgba(13,16,21,0.70);

  /* Tekst */
  --text-primary:   #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted:     #8B949E;
  --text-disabled:  #4B5563;
  --text-on-accent: #000000;

  /* Semantic kleuren */
  --color-success: #22C55E;
  --color-danger:  #EF4444;
  --color-warning: #F59E0B;
  --color-info:    #3B82F6;

  /* Muted semantic varianten */
  --color-success-muted: rgba(34,197,94,0.15);
  --color-danger-muted:  rgba(239,68,68,0.15);
  --color-warning-muted: rgba(245,158,11,0.15);
  --color-info-muted:    rgba(59,130,246,0.15);

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.08);
  --border-default: rgba(255,255,255,0.14);
  --border-strong:  rgba(255,255,255,0.25);
  --border-accent:  #FEAB00;

  /* Border radius */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  /* Spacing (4px grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  --shadow:        0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 20px rgba(254,171,0,0.2);

  /* Containers */
  --container:      1100px;
  --container-wide: 1440px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition:        0.2s ease;
  --transition-slow:   0.35s ease;
  --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

  /* Fonts */
  --font-display: 'Barlow', Arial, Helvetica, sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Typografische schaal */
  --type-hero:    3.5rem;
  --type-h1:      2.25rem;
  --type-h2:      1.625rem;
  --type-h3:      1.125rem;
  --type-body-lg: 1rem;
  --type-body:    0.9375rem;
  --type-small:   0.8125rem;
  --type-label:   0.75rem;
  --type-btn:     0.9375rem;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  background-image:
    linear-gradient(var(--tartan-overlay), var(--tartan-overlay)),
    url('/images/tartan.jpg?v=6');
  background-size: auto, cover;
  background-attachment: local, fixed;
  background-repeat: repeat, repeat;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: none; }

h1 {
  font-family: var(--font-display);
  font-size: var(--type-h1);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}
h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}
h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  flex: 1;
}

.container--wide {
  max-width: var(--container-wide);
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  height: 60px;
}

.nav-brand a {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-brand a:hover { opacity: 0.85; text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  font-size: var(--type-small);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* ─── Flash messages ────────────────────────────────────────────────────────── */
.flash {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border-left: 4px solid transparent;
  font-family: var(--font-body);
  font-size: var(--type-body);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  margin: var(--space-3) var(--space-6);
}
.flash--success { border-left-color: var(--color-success); }
.flash--error   { border-left-color: var(--color-danger); }
.flash--info    { border-left-color: var(--color-info); }
.flash--warning { border-left-color: var(--color-warning); }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--type-btn);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition-fast), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled,
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: scale(1.02);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--bg-overlay);
  transform: scale(1.02);
}

.btn--danger {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.btn--danger:hover {
  background: #DC2626;
  border-color: #DC2626;
  transform: scale(1.02);
}

.btn--full { width: 100%; }
.btn--sm   { padding: 0.4rem 1rem; font-size: var(--type-small); }
.btn--lg   { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group label {
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--type-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(254,171,0,0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-disabled); }

.form-group select {
  appearance: none;
  cursor: pointer;
}

/* ─── Assignment detail ─────────────────────────────────────────────────────── */
.assignment-dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: var(--space-2) var(--space-3);
  margin: 0;
}
.assignment-dl dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--type-small);
  padding-top: 0.15rem;
}
.assignment-dl dd {
  margin: 0;
  color: var(--text-secondary);
}
.assignment-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.assignment-items-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
}

.form-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-end;
  flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }

/* ─── Auth layout ───────────────────────────────────────────────────────────── */
.auth-page { background-color: var(--bg-base); }

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}
.auth-logo__img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: var(--space-4);
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}
.auth-logo h1 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: var(--type-h1);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-form h2 { margin-bottom: var(--space-6); }

.auth-link {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--type-small);
  color: var(--text-muted);
}
.auth-link a { color: var(--accent); }
.auth-link a:hover { color: var(--accent-hover); }

/* ─── Card ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

/* Militaire card variant — luchtmobiel-gerelateerde content */
.card--military {
  border-left: 3px solid var(--military);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.hero h1 {
  font-size: var(--type-hero);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}
.hero p {
  font-size: var(--type-body-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

/* ─── Page header ───────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ─── Table ─────────────────────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body);
}
.table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border-bottom: 1px solid var(--border-default);
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-overlay); }

/* ─── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Status badges (uitnodigingen, rollen) */
.badge--pending  { background: var(--color-warning-muted); color: var(--color-warning); }
.badge--accepted { background: var(--color-success-muted); color: var(--color-success); }
.badge--revoked  { background: var(--color-danger-muted);  color: var(--color-danger); }
.badge--expired  { background: var(--border-subtle);       color: var(--text-muted); }
.badge--role     { background: var(--accent-muted);        color: var(--accent); }

/* Semantische badges */
.badge--accent   { background: var(--accent-muted);         color: var(--accent); }
.badge--success  { background: var(--color-success-muted);  color: var(--color-success); }
.badge--danger   { background: var(--color-danger-muted);   color: var(--color-danger); }
.badge--warning  { background: var(--color-warning-muted);  color: var(--color-warning); }
.badge--info     { background: var(--color-info-muted);     color: var(--color-info); }
.badge--neutral  { background: var(--border-subtle);        color: var(--text-muted); }

/* 11e Luchtmobiele Brigade — "Luchtmobiel", "Air Assault", eenheidslabels */
.badge--military {
  background: var(--military-muted);
  color: var(--military-light);
  border: 1px solid var(--military-border);
}

.badge--sm { font-size: 0.7rem; padding: 0.15rem 0.5rem; }

/* ─── Empty state ───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Error pages ───────────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.error-page h1 {
  font-size: 6rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-transform: uppercase;
}
.error-page h2 { color: var(--text-primary); margin-bottom: var(--space-4); }
.error-page p  { color: var(--text-muted); margin-bottom: var(--space-8); }

/* ─── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard h1 { margin-bottom: var(--space-2); }

.group-selector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.group-selector__current {
  font-size: var(--type-body-lg);
  font-weight: 600;
  color: var(--text-primary);
}
.group-selector__form select {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
}
.group-selector__form select:focus {
  outline: none;
  border-color: var(--accent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.dashboard-card h2 {
  font-size: var(--type-h3);
  font-family: var(--font-display);
  margin: 0;
}
.dashboard-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.dashboard-list__item:last-child { border-bottom: none; }
.dashboard-list__item a {
  font-weight: 500;
  color: var(--text-secondary);
}
.dashboard-list__item a:hover { color: var(--accent); }
.dashboard-list__item small {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: var(--type-small);
}

/* ─── Course structure ──────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); font-size: var(--type-body); }

.course-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.module-card { margin-bottom: var(--space-4); }
.module-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.item-list {
  list-style: none;
  margin-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.item-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--bg-overlay);
  font-size: var(--type-body);
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}
.item-list__item:hover { background: var(--bg-elevated); }

/* ─── Lesson editor ─────────────────────────────────────────────────────────── */
.block-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-5); }

.block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.block__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  gap: var(--space-2);
  flex-wrap: wrap;
}

.block__label {
  font-size: var(--type-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.block__actions { display: flex; gap: var(--space-2); align-items: center; }

.block__textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  font-size: var(--type-body);
  font-family: var(--font-body);
  resize: vertical;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.block__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(254,171,0,0.12);
}
.block__textarea::placeholder { color: var(--text-disabled); }

/* Callout blocks — donkere varianten */
.block--callout--info    { border-left: 4px solid var(--color-info);    background: rgba(59,130,246,0.08); }
.block--callout--warning { border-left: 4px solid var(--color-warning); background: rgba(245,158,11,0.08); }
.block--callout--success { border-left: 4px solid var(--color-success); background: rgba(34,197,94,0.08); }
.block--callout--danger  { border-left: 4px solid var(--color-danger);  background: rgba(239,68,68,0.08); }

.callout-variant, .media-type {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  font-size: var(--type-small);
  background: var(--bg-overlay);
  color: var(--text-secondary);
}

.block__media-upload { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-2); }
.media-file-input { font-size: var(--type-small); color: var(--text-muted); }
.media-url-input, .block__caption {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  font-size: var(--type-body);
  font-family: var(--font-body);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.media-preview { margin-top: var(--space-1); }

.block-add-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

/* ─── Lesson view ───────────────────────────────────────────────────────────── */
.lesson-content { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }

.lesson-block { line-height: 1.7; }
.lesson-block--text p {
  font-size: var(--type-body-lg);
  color: var(--text-secondary);
  white-space: pre-line;
}

.lesson-block--callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border-left: 4px solid;
}
.callout--info    { background: rgba(59,130,246,0.08);  border-color: var(--color-info); }
.callout--warning { background: rgba(245,158,11,0.08);  border-color: var(--color-warning); }
.callout--success { background: rgba(34,197,94,0.08);   border-color: var(--color-success); }
.callout--danger  { background: rgba(239,68,68,0.08);   border-color: var(--color-danger); }

.lesson-media-img   { max-width: 100%; border-radius: var(--radius); display: block; }
.lesson-media-audio { width: 100%; }
.lesson-media-video { max-width: 100%; border-radius: var(--radius); display: block; }
.lesson-media-caption {
  font-size: var(--type-small);
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-4);
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ─── Editor split layout (editor + preview) ──────────────────────────────── */
.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.editor-split__editor { min-width: 0; }
.editor-split__preview {
  position: sticky;
  top: var(--space-4);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-overlay);
  border-radius: var(--radius) var(--radius) 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.preview-header__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}
.preview-header__label {
  font-size: var(--type-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.preview-body { padding: var(--space-6); }
.preview-body .lesson-content { margin-bottom: 0; }
.preview-empty {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .editor-split {
    grid-template-columns: 1fr;
  }
  .editor-split__preview {
    position: static;
    max-height: none;
  }
}

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

@media (max-width: 600px) {
  .nav-links      { gap: var(--space-3); }
  .auth-card      { padding: var(--space-8) var(--space-5); }
  .form-row       { flex-direction: column; }
  .hero h1        { font-size: var(--type-h1); }
  .container      { padding: var(--space-6) var(--space-4); }
}

/* ─── Militaire utilities (11e Luchtmobiele Brigade) ────────────────────────── */

/* Sectie-header met wijnrode accentstreep */
.section--military {
  border-top: 3px solid var(--military);
  padding-top: var(--space-4);
}

/* Gradient divider in wijnrood */
.divider--military {
  height: 2px;
  background: linear-gradient(90deg, var(--military) 0%, transparent 100%);
  border: none;
  margin: var(--space-6) 0;
}

/* Progress bar — amber accent */
.progress {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* ─── Recorder component ───────────────────────────────────────────────────── */
.fg-recorder {
  position: relative;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--bg-elevated);
  max-width: 480px;
}
.fg-recorder__status {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-size: var(--type-body);
}
.fg-recorder__timer {
  font-family: monospace;
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}
.fg-recorder[data-state="recording"] .fg-recorder__timer {
  color: var(--color-danger);
}
.fg-recorder__waveform {
  height: 40px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--bg-overlay);
  overflow: hidden;
}
.fg-recorder__waveform canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.fg-recorder__controls {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.fg-recorder__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--type-small);
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.fg-recorder__btn:hover { transform: scale(1.02); }

.fg-recorder__btn--record  { background: var(--color-danger); color: #fff; }
.fg-recorder__btn--record:hover { filter: brightness(0.9); }
.fg-recorder__btn--stop    { background: var(--color-danger); color: #fff; }
.fg-recorder__btn--stop:hover { filter: brightness(0.9); }
.fg-recorder__btn--play    { background: var(--accent); color: var(--text-on-accent); }
.fg-recorder__btn--play:hover { background: var(--accent-hover); }
.fg-recorder__btn--retry   { background: var(--bg-overlay); color: var(--text-secondary); border: 1px solid var(--border-default); }
.fg-recorder__btn--retry:hover { background: var(--bg-elevated); }
.fg-recorder__btn--confirm { background: var(--color-success); color: #fff; }
.fg-recorder__btn--confirm:hover { filter: brightness(0.9); }
.fg-recorder__btn--download { background: var(--bg-overlay); color: var(--text-secondary); border: 1px solid var(--border-default); }
.fg-recorder__btn--secondary { background: var(--bg-overlay); color: var(--text-secondary); border: 1px solid var(--border-default); }

.fg-recorder__icon { font-size: 1rem; }
.fg-recorder__audio { margin-top: var(--space-2); }
.fg-recorder__audio audio { width: 100%; }

.fg-recorder__error {
  color: var(--color-danger);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  background: var(--color-danger-muted);
  border-radius: var(--radius);
  margin-top: var(--space-2);
  line-height: 1.5;
  font-size: var(--type-body);
}
.fg-recorder__error a { color: var(--color-danger); text-decoration: underline; }
.fg-recorder__error small { font-weight: normal; opacity: 0.85; }

.fg-recorder__uploading {
  color: var(--accent);
  font-weight: 500;
  margin-top: var(--space-2);
  font-size: var(--type-body);
}

.fg-recorder__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 10;
}
.fg-recorder__dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  max-width: 320px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.fg-recorder__dialog p {
  margin: 0 0 var(--space-4);
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--text-secondary);
}
.fg-recorder__dialog-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}
