/* ═══════════════════════════════════════════════════════════
   BASE.CSS — CSS variables, reset, typography, animations
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ───────────────────────────────── */
:root {
  --color-navy:           #0A1628;
  --color-navy-light:     #0F1E3A;
  --color-navy-hover:     #162340;
  --color-ntblue:         #1565C0;
  --color-ntblue-light:   #1976D2;
  --color-ntblue-faint:   #E3F2FD;
  --color-ntorange:       #F57F17;
  --color-ntorange-light: #FB8C00;
  --color-ntorange-faint: #FFF8E1;
  --color-general:        #15803D;
  --color-general-bg:     #F0FDF4;
  --color-body-bg:        #EFF3F8;
  --color-text-muted:     #64748B;
  --color-border:         #CBD5E1;
  --radius-card:          16px;
  --radius-card-sm:       12px;
  --shadow-card:          0 1px 3px rgba(0,0,0,.06), 0 6px 20px rgba(10,22,40,.07);
  --shadow-card-sm:       0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(10,22,40,.06);
  --font-sans:            'Inter', system-ui, sans-serif;
  --font-display:         'Sora', system-ui, sans-serif;
}

/* ─── Box model reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── Body background ─────────────────────────────────────── */
body { background: var(--color-body-bg); }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

/* ─── Progress bar animation ──────────────────────────────── */
.progress-fill { transition: width .5s cubic-bezier(.4,0,.2,1); }

/* ─── Grain texture ───────────────────────────────────────── */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  border-radius: inherit;
}

/* ─── Dashboard hero gradient ─────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 60%, #0e7490 100%);
  box-shadow: 0 4px 24px rgba(14,116,144,0.25);
}

/* ─── Stats glow animation ────────────────────────────────── */
@keyframes statsGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(245,158,11,0.45); }
  50%       { box-shadow: 0 4px 22px rgba(245,158,11,0.75), 0 0 0 5px rgba(245,158,11,0.12); }
}

/* ─── Animated underline links ────────────────────────────── */
.link-anim { position: relative; }
.link-anim::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--color-ntblue); transition: width .2s;
}
.link-anim:hover::after { width: 100%; }
