/* ══════════════════════════════════════════════════════════════
   SD-Agile Courses — styles.css
   Design system ported from marketing site (www.sd-agile.com)
   ══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --navy: #0B1929;
  --navy-mid: #112340;
  --navy-light: #1a3352;
  --teal: #00B4D8;
  --teal-dim: #0090ac;
  --amber: #F4A22D;
  --amber-dim: #c47f15;
  --red-alert: #E84040;
  --green: #22c55e;
  --green-dim: #16a34a;
  --off-white: #EDF2F7;
  --muted: #8FA3B8;
  --text-body: #CBD5E0;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --focus-ring: 0 0 0 3px rgba(0,180,216,0.5);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(11,25,41,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,180,216,0.12);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--teal); }

.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links-inner { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a,
.nav-links-inner a {
  color: var(--muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active,
.nav-links-inner a:hover,
.nav-links-inner a.active { color: var(--teal); }

.nav-cta {
  background: var(--amber) !important; color: var(--navy) !important;
  padding: 0.55rem 1.4rem !important; border-radius: var(--radius) !important;
  font-weight: 600 !important; text-transform: none !important;
  letter-spacing: 0 !important; transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--amber-dim) !important; }

.nav-user {
  color: var(--off-white);
  font-size: 0.85rem;
  font-weight: 500;
}
.nav-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-logout:hover { border-color: var(--red-alert); color: var(--red-alert); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 6px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0;
  background: rgba(11,25,41,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,180,216,0.15);
  padding: 1.5rem 2rem 2rem;
  z-index: 99;
  flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-body); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 0.5rem; }
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .m-cta {
  margin-top: 1rem;
  background: var(--amber); color: var(--navy) !important;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  text-align: center; font-weight: 600;
}
.mobile-menu .m-cta:hover { background: var(--amber-dim) !important; }

/* ══════════════════════════════════════════════════════════════
   PAGE LAYOUT
   ══════════════════════════════════════════════════════════════ */
main {
  flex: 1;
  padding-top: 62px; /* nav height */
}
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.page-narrow {
  max-width: 520px;
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--teal); text-transform: uppercase;
  margin-bottom: 1rem;
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
h2 em { color: var(--teal); font-style: normal; }
h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--off-white);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-lead {
  font-size: 1.05rem; color: var(--muted);
  max-width: 620px; line-height: 1.8;
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--amber); color: var(--navy);
  padding: 0.75rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition); display: inline-block;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--amber-dim); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--teal); color: var(--navy);
  padding: 0.75rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition); display: inline-block;
}
.btn-secondary:hover { background: var(--teal-dim); }

.btn-outline {
  background: transparent;
  color: var(--off-white);
  padding: 0.75rem 1.8rem; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition); display: inline-block;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-danger {
  background: var(--red-alert); color: #fff;
  padding: 0.75rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition); display: inline-block;
}
.btn-danger:hover { opacity: 0.85; }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}
.card:hover { border-color: rgba(0,180,216,0.2); }

.placeholder-card {
  background: var(--navy-mid);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}
.placeholder-card p { font-size: 0.95rem; }

/* Admin nav cards */
.admin-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.admin-nav-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: all var(--transition);
}
.admin-nav-card:hover {
  border-color: var(--teal);
  background: rgba(0,180,216,0.04);
}
.admin-nav-card strong {
  display: block;
  color: var(--off-white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.admin-nav-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 0.4rem;
}
.form-group .form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--off-white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238FA3B8' d='M6 8.825L0.4 3.175l0.85-0.85L6 7.125l4.75-4.8 0.85 0.85z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select option {
  background: var(--navy-mid);
  color: var(--off-white);
}

textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-error {
  color: var(--red-alert);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--teal);
}
.form-check label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-body);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
thead th:hover { color: var(--teal); }
thead th.sorted { color: var(--teal); }

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-body);
}
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ══════════════════════════════════════════════════════════════
   STATUS BADGES
   ══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-pending { background: rgba(244,162,45,0.15); color: var(--amber); }
.badge-approved { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-rejected { background: rgba(232,64,64,0.15); color: var(--red-alert); }
.badge-active { background: rgba(0,180,216,0.15); color: var(--teal); }
.badge-admin { background: rgba(160,120,255,0.15); color: #a078ff; }
.badge-org_admin { background: rgba(160,120,255,0.1); color: #b098ff; }
.badge-cert { background: rgba(244,162,97,0.15); color: var(--amber); }
.badge-user { background: rgba(0,180,216,0.1); color: var(--teal); }

/* Certification badge card (dashboard) */
.cert-badge-card {
  background: linear-gradient(135deg, rgba(244,162,97,0.1), rgba(0,180,216,0.05));
  border: 1px solid rgba(244,162,97,0.3);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
}
.cert-badge-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cert-badge-icon {
  font-size: 2rem;
  color: var(--amber);
}

/* ══════════════════════════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════════════════════════ */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* ══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 80px; right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.toast.info { background: var(--navy-light); color: var(--off-white); border-left: 3px solid var(--teal); }
.toast.success { background: var(--navy-light); color: var(--off-white); border-left: 3px solid var(--green); }
.toast.warning { background: var(--navy-light); color: var(--off-white); border-left: 3px solid var(--amber); }
.toast.error { background: var(--navy-light); color: var(--off-white); border-left: 3px solid var(--red-alert); }
.toast-close {
  background: none; border: none;
  color: var(--muted); font-size: 1.2rem;
  cursor: pointer; padding: 0; line-height: 1;
}
.toast-close:hover { color: var(--off-white); }
.toast-enter { animation: slideIn 0.25s ease; }
.toast-leave { animation: slideOut 0.25s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ══════════════════════════════════════════════════════════════
   LOADING SPINNER
   ══════════════════════════════════════════════════════════════ */
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(0,180,216,0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  background: #060d17;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  margin-top: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   STEP INDICATOR (for signup wizard)
   ══════════════════════════════════════════════════════════════ */
.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background var(--transition);
}
.step-dot.active { background: var(--teal); }
.step-dot.completed { background: var(--green); }

/* ══════════════════════════════════════════════════════════════
   SIGNUP — Account Type Cards & Password Strength
   ══════════════════════════════════════════════════════════════ */
.account-type-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.account-type-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  font-size: 0.95rem;
}
.account-type-card:hover {
  border-color: var(--teal);
  background: rgba(0,180,216,0.04);
}
.account-type-card.selected {
  border-color: var(--teal);
  background: rgba(0,180,216,0.08);
}
.account-type-card strong {
  color: var(--off-white);
  font-weight: 600;
}

.password-strength {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 0.3s ease, background 0.3s ease;
}
.password-strength-bar.strength-weak { background: var(--red-alert); }
.password-strength-bar.strength-fair { background: var(--amber); }
.password-strength-bar.strength-strong { background: var(--green); }

/* ══════════════════════════════════════════════════════════════
   COURSE GRID & CARDS
   ══════════════════════════════════════════════════════════════ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.course-card { display: flex; flex-direction: column; }
.course-card h3 { margin-bottom: 0.5rem; }
.course-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.course-meta {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.course-card-link {
  text-decoration: none;
  cursor: pointer;
}
.course-card-link:hover { border-color: var(--teal); }

/* ══════════════════════════════════════════════════════════════
   CONTENT LIST & VIEWER
   ══════════════════════════════════════════════════════════════ */
.content-list { margin-bottom: 1rem; }
.content-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.content-item:hover { border-color: var(--teal); background: rgba(0,180,216,0.03); }
.content-item.active { border-color: var(--teal); background: rgba(0,180,216,0.06); }
.content-item.completed .content-item-info strong { color: var(--muted); }

.content-item-status { width: 24px; text-align: center; flex-shrink: 0; }
.content-check { color: var(--green); font-size: 1.1rem; }
.content-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.content-item-info { flex: 1; }
.content-item-info strong { color: var(--off-white); font-size: 0.95rem; }
.content-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--teal);
  background: rgba(0,180,216,0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-text {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 0.95rem;
}
.content-text h1, .content-text h2, .content-text h3 { color: var(--off-white); margin: 1.5rem 0 0.75rem; }
.content-text p { margin-bottom: 1rem; }
.content-text ul, .content-text ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.content-text code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.88rem;
}
.content-text pre {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1rem;
}
.content-text img { max-width: 100%; border-radius: var(--radius); }

/* ══════════════════════════════════════════════════════════════
   TEST / QUIZ
   ══════════════════════════════════════════════════════════════ */
.question-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.question-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.question-dot:hover { border-color: var(--teal); }
.question-dot.active { border-color: var(--teal); background: rgba(0,180,216,0.15); color: var(--teal); }
.question-dot.answered { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   ADMIN STATS GRID
   ══════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

/* ══════════════════════════════════════════════════════════════
   MODAL OVERLAY
   ══════════════════════════════════════════════════════════════ */
.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: 200;
  padding: 2rem;
}
.modal-content {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-content h3 {
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── 1200px ── */
@media (max-width: 1200px) {
  nav { padding: 1.1rem 2.5rem; }
  footer { padding: 2.5rem 2.5rem; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .admin-nav-cards { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .page-container { padding: 2rem 1.25rem 3rem; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  h2 { font-size: 1.75rem; }
  .admin-nav-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-primary,
  .form-actions .btn-outline { width: 100%; text-align: center; }
  .toast-container { left: 1rem; right: 1rem; max-width: none; }
}
