/* =============================================================
   TCF Canada – Feuille de style principale
   Design moderne, responsive, professionnel
   ============================================================= */

/* ── Variables CSS ─────────────────────────────────────────── */
:root {
  --primary:        #1a56db;
  --primary-dark:   #1e429f;
  --primary-light:  #ebf0ff;
  --secondary:      #7c3aed;
  --accent:         #0ea5e9;
  --success:        #16a34a;
  --success-light:  #dcfce7;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --warning:        #d97706;
  --warning-light:  #fef9c3;
  --neutral-50:     #f9fafb;
  --neutral-100:    #f3f4f6;
  --neutral-200:    #e5e7eb;
  --neutral-300:    #d1d5db;
  --neutral-400:    #9ca3af;
  --neutral-600:    #4b5563;
  --neutral-700:    #374151;
  --neutral-800:    #1f2937;
  --neutral-900:    #111827;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:      0 10px 25px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:      0 20px 50px rgba(0,0,0,.12);
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
  --font:           'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--neutral-800); background: var(--neutral-50); line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; transition: var(--transition); }

/* ── Utilitaires ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

/* ── Header / Navbar ───────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.25rem; color: var(--neutral-900); }
.navbar-brand .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg,var(--primary),var(--secondary)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.navbar-flag { font-size: 1.5rem; }
.navbar-tagline { font-size: .75rem; font-weight: 400; color: var(--neutral-400); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1a56db 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem 1rem; font-size: .8rem; letter-spacing: .5px; margin-bottom: 1.5rem; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(2rem,5vw,3.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: #60a5fa; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; }
.hero-stat small { font-size: .8rem; color: rgba(255,255,255,.65); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600;
  transition: var(--transition);
}
.btn-primary   { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(26,86,219,.35); }
.btn-primary:hover   { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.45); }
.btn-secondary { background: var(--neutral-100); color: var(--neutral-700); }
.btn-secondary:hover { background: var(--neutral-200); }
.btn-success   { background: var(--success); color: #fff; box-shadow: 0 4px 14px rgba(22,163,74,.3); }
.btn-success:hover   { background: #15803d; transform: translateY(-1px); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover    { background: #b91c1c; }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover   { background: var(--primary); color: #fff; }
.btn-lg        { padding: .85rem 2rem; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm        { padding: .4rem 1rem; font-size: .85rem; }
.btn:disabled  { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Cards de catégories ───────────────────────────────────── */
.categories-section { padding: 5rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--neutral-900); margin-bottom: .5rem; }
.section-sub   { color: var(--neutral-600); margin-bottom: 3rem; font-size: 1rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 2rem; }

.category-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,var(--primary),var(--accent));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.category-card.orale::before { background: linear-gradient(90deg,var(--secondary),#ec4899); }

.card-icon { width: 68px; height: 68px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.card-icon.ecrite { background: var(--primary-light); color: var(--primary); }
.card-icon.orale  { background: #f5f3ff; color: var(--secondary); }
.card-content h3 { font-size: 1.35rem; font-weight: 700; color: var(--neutral-900); margin-bottom: .4rem; }
.card-content p  { color: var(--neutral-600); font-size: .95rem; }
.card-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.card-tag { display: inline-flex; align-items: center; gap: .35rem; background: var(--neutral-100); border-radius: 999px; padding: .3rem .85rem; font-size: .8rem; color: var(--neutral-700); font-weight: 500; }
.card-arrow { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card-arrow .btn { width: 100%; }

/* ── Liste de sujets ───────────────────────────────────────── */
.sujets-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.25rem; }
.sujet-card {
  background: #fff; border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.sujet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.sujet-card h4 { font-size: 1rem; font-weight: 600; color: var(--neutral-900); margin-bottom: .75rem; }
.sujet-meta  { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 500; }
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-purple { background: #f5f3ff; color: var(--secondary); }
.badge-green  { background: var(--success-light); color: var(--success); }

/* ── Page consignes ────────────────────────────────────────── */
.page-section { padding: 4rem 0; }
.consignes-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 800px; margin: 0 auto; }
.consignes-header { background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: #fff; padding: 2.5rem; }
.consignes-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.consignes-header p  { opacity: .85; }
.consignes-body { padding: 2rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.info-item { background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; }
.info-item i { font-size: 1.75rem; color: var(--primary); margin-bottom: .5rem; }
.info-item strong { display: block; font-size: 1.25rem; font-weight: 700; color: var(--neutral-900); }
.info-item span   { font-size: .8rem; color: var(--neutral-600); }
.regles-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.regles-list li { display: flex; align-items: flex-start; gap: .75rem; }
.regles-list li i { color: var(--success); margin-top: .15rem; flex-shrink: 0; }

/* ── Examen ────────────────────────────────────────────────── */
.exam-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; padding: 2rem 0; min-height: calc(100vh - 70px); align-items: start; }
@media (max-width: 900px) { .exam-layout { grid-template-columns: 1fr; } .exam-sidebar { order: -1; } }

.exam-main { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.exam-progress-bar { height: 5px; background: var(--neutral-200); }
.exam-progress-bar-fill { height: 100%; background: linear-gradient(90deg,var(--primary),var(--accent)); transition: width .4s ease; }
.exam-question-body { padding: 2rem 2.5rem; }
.question-numero { font-size: .8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .75rem; }
.question-enonce { font-size: 1.1rem; font-weight: 500; color: var(--neutral-800); margin-bottom: 1.5rem; line-height: 1.7; }
.question-image  { border-radius: var(--radius-md); margin-bottom: 1.5rem; max-height: 320px; object-fit: contain; border: 1px solid var(--neutral-200); width: 100%; }
.audio-player-wrap { background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem; }
.audio-player-wrap audio { width: 100%; }

.propositions-list { display: flex; flex-direction: column; gap: .75rem; }
.proposition-item  { position: relative; }
.proposition-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.proposition-label {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--neutral-200); border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition); background: #fff;
}
.proposition-label:hover { border-color: var(--primary); background: var(--primary-light); }
.proposition-item input:checked + .proposition-label { border-color: var(--primary); background: var(--primary-light); }
.prop-letter { width: 28px; height: 28px; border-radius: 50%; background: var(--neutral-200); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; transition: var(--transition); }
.proposition-item input:checked + .proposition-label .prop-letter { background: var(--primary); color: #fff; }
.prop-text { flex: 1; color: var(--neutral-800); line-height: 1.5; padding-top: .15rem; }

.exam-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 2.5rem; border-top: 1px solid var(--neutral-200); }

/* ── Sidebar examen ────────────────────────────────────────── */
.exam-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 80px; }
.timer-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.5rem; text-align: center; }
.timer-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--neutral-600); margin-bottom: .5rem; }
.timer-display { font-size: 2.75rem; font-weight: 800; color: var(--neutral-900); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.timer-display.warning { color: var(--warning); animation: pulse 1s ease-in-out infinite; }
.timer-display.danger  { color: var(--danger);  animation: pulse .6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

.questions-nav-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.25rem; }
.questions-nav-card h4 { font-size: .85rem; font-weight: 600; color: var(--neutral-700); margin-bottom: 1rem; }
.questions-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: .35rem; }
.q-nav-btn { aspect-ratio:1; border-radius: var(--radius-sm); border: none; font-size: .75rem; font-weight: 600; cursor: pointer; background: var(--neutral-100); color: var(--neutral-600); transition: var(--transition); }
.q-nav-btn.active    { background: var(--primary); color: #fff; }
.q-nav-btn.answered  { background: var(--success-light); color: var(--success); }
.q-nav-btn:hover     { background: var(--primary); color: #fff; transform: scale(1.08); }

/* ── Résultats ─────────────────────────────────────────────── */
.resultat-hero { background: linear-gradient(135deg,#0f172a,#1e3a8a); color: #fff; padding: 3rem 0; text-align: center; }
.resultat-hero h2 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.score-circle { width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.15); border: 4px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 1.5rem auto; backdrop-filter: blur(4px); }
.score-pct    { font-size: 2.25rem; font-weight: 900; line-height: 1; }
.score-label  { font-size: .75rem; opacity: .8; }

.stats-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.stat-box  { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-md); padding: 1rem 1.5rem; text-align: center; backdrop-filter: blur(4px); }
.stat-box strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat-box small  { font-size: .8rem; opacity: .75; }

.correction-section { padding: 3rem 0; }
.correction-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); overflow: hidden; margin-bottom: 1rem; }
.correction-header { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; }
.correction-header.correct   { background: var(--success-light); border-left: 4px solid var(--success); }
.correction-header.incorrect { background: var(--danger-light);  border-left: 4px solid var(--danger); }
.correction-num { font-weight: 700; font-size: .9rem; }
.correction-enonce { flex: 1; font-size: .9rem; color: var(--neutral-800); }
.correction-icon i { font-size: 1.1rem; }
.correction-icon.correct   i { color: var(--success); }
.correction-icon.incorrect i { color: var(--danger); }
.correction-body { padding: 1.25rem 1.5rem; border-top: 1px solid var(--neutral-200); }
.correction-row  { display: flex; gap: .75rem; margin-bottom: .6rem; font-size: .9rem; align-items: flex-start; }
.correction-row:last-child { margin-bottom: 0; }
.correction-row .label { font-weight: 600; color: var(--neutral-600); min-width: 120px; }
.explication-box { background: #fefce8; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .875rem; color: #92400e; margin-top: .5rem; }

/* ── Admin ─────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--neutral-900); color: #fff; padding: 0; flex-shrink: 0; }
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-header .brand { font-weight: 700; font-size: 1.1rem; }
.admin-sidebar-header .brand small { display: block; font-size: .75rem; opacity: .5; font-weight: 400; }
.admin-nav  { padding: 1rem 0; }
.admin-nav a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem; color: rgba(255,255,255,.65); font-size: .9rem; transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a i { width: 18px; text-align: center; }
.admin-content { flex: 1; background: var(--neutral-50); overflow-x: hidden; }
.admin-topbar  { background: #fff; border-bottom: 1px solid var(--neutral-200); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--neutral-900); }
.admin-body { padding: 2rem; }

.table-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--neutral-200); overflow: hidden; }
.table-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--neutral-200); }
.table-card-header h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--neutral-50); padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--neutral-600); border-bottom: 1px solid var(--neutral-200); }
tbody td { padding: 1rem; font-size: .9rem; color: var(--neutral-700); border-bottom: 1px solid var(--neutral-100); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--neutral-50); }
.actions { display: flex; gap: .4rem; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--neutral-300); transition: var(--transition); cursor: pointer; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: var(--transition); }
.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Form */
.form-group   { margin-bottom: 1.25rem; }
.form-label   { display: block; font-size: .875rem; font-weight: 600; color: var(--neutral-700); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--neutral-300); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; color: var(--neutral-800); background: #fff; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-text   { font-size: .8rem; color: var(--neutral-400); margin-top: .3rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width:600px) { .form-row { grid-template-columns: 1fr; } }

.propositions-editor { display: flex; flex-direction: column; gap: .75rem; }
.prop-row    { display: flex; gap: .75rem; align-items: flex-start; }
.prop-radio  { margin-top: .65rem; flex-shrink: 0; accent-color: var(--primary); width: 18px; height: 18px; }
.prop-inputs { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.prop-remove { background: var(--danger-light); color: var(--danger); border: none; border-radius: var(--radius-sm); padding: .55rem .7rem; flex-shrink: 0; margin-top: .1rem; }
.prop-remove:hover { background: var(--danger); color: #fff; }

/* Alert */
.alert { border-radius: var(--radius-sm); padding: .85rem 1.1rem; margin-bottom: 1rem; font-size: .9rem; display: flex; align-items: center; gap: .6rem; }
.alert-danger  { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: var(--success-light); color: #166534; border: 1px solid #86efac; }
.alert-info    { background: var(--primary-light); color: #1e3a8a; border: 1px solid #bfdbfe; }

/* Login admin */
.login-wrapper { min-height: 100vh; background: linear-gradient(135deg,#0f172a,#1e3a8a); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 2.5rem; width: 100%; max-width: 420px; }
.login-logo  { text-align: center; margin-bottom: 2rem; }
.login-logo .icon { width: 64px; height: 64px; background: linear-gradient(135deg,var(--primary),var(--secondary)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: #fff; margin: 0 auto .75rem; }
.login-logo h2 { font-size: 1.4rem; font-weight: 700; }
.login-logo p  { color: var(--neutral-600); font-size: .875rem; }

/* Footer */
.footer { background: var(--neutral-900); color: rgba(255,255,255,.55); padding: 2rem 0; margin-top: auto; text-align: center; font-size: .875rem; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .category-grid { grid-template-columns: 1fr; }
  .exam-question-body { padding: 1.5rem; }
  .exam-nav { padding: 1rem 1.5rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-body { padding: 1rem; }
  .table-card { overflow-x: auto; }
}

/* Animations */
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
.fade-in-up { animation: fadeInUp .5s ease both; }
.fade-in    { animation: fadeIn .4s ease both; }
.delay-1 { animation-delay:.1s }
.delay-2 { animation-delay:.2s }
.delay-3 { animation-delay:.3s }
