/* ============================================================
   CRS Alert — Main Stylesheet
   Theme: Dark Navy Blue #0f1e3d, Mid Blue #1a2f5e, Red #e02020
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cross River State Brand Colors */
  --crs-green:       #0f1e3d;
  --crs-green-mid:   #1a2f5e;
  --crs-green-light: #2348a0;
  --crs-gold:        #e02020;
  --crs-gold-light:  #ff4444;
  --crs-gold-pale:   #fff0f0;

  /* UI Palette */
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --blue:        #2563eb;
  --blue-light:  #dbeafe;
  --purple:      #7c3aed;
  --purple-light:#ede9fe;

  /* Neutral */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white:    #ffffff;

  /* Layout */
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow:    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,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --nav-h:     66px;
}

/* BASE */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--crs-green-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--crs-green);
  box-shadow: 0 2px 8px rgba(15,30,61,.4);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  color: white; font-weight: 800; font-size: 1.1rem;
  text-decoration: none; flex-shrink: 0; min-width: 0;
}
.nav-brand:hover { text-decoration: none; color: var(--crs-gold-light); }
.nav-brand-icon {
  width: 36px; height: 36px; min-width: 36px; border-radius: 8px;
  background: var(--crs-gold); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-icon svg  { width: 20px; height: 20px; }
.nav-brand-icon img  { width: 36px; height: 36px; object-fit: cover; display: block; }
.nav-brand-name { white-space: nowrap; }
.nav-brand-sub {
  font-size: 11px; font-weight: 400; color: rgba(255,255,255,.6);
  display: block; line-height: 1;
}
/* Hide subtitle on very small screens */
@media(max-width: 400px) { .nav-brand-sub { display: none; } }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
  transition: background .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.12); color: white;
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Call button */
.btn-nav-call {
  background: var(--red); color: white; border: none;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.btn-nav-call:hover { background: #b91c1c; text-decoration: none; color: white; }
/* On very small screens show only phone icon, hide text */
.btn-nav-call .call-text { display: inline; }
@media(max-width: 480px) { .btn-nav-call .call-text { display: none; } }

/* Report button */
.btn-nav-report {
  background: var(--crs-gold); color: white;
  border: none; padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  transition: background .15s; white-space: nowrap;
}
.btn-nav-report:hover { background: var(--crs-gold-light); text-decoration: none; color: white; }

/* User dropdown */
.nav-user {
  position: relative; display: flex; align-items: center;
  gap: 6px; cursor: pointer; flex-shrink: 0;
}
.nav-avatar {
  width: 34px; height: 34px; min-width: 34px; border-radius: 50%;
  background: var(--crs-gold); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; border: 2px solid rgba(255,255,255,.3);
}
.nav-username { color: white; font-size: 14px; font-weight: 500; }
/* Hide username text on small screens — avatar is enough */
@media(max-width: 520px) { .nav-username { display: none; } }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); min-width: 190px;
  box-shadow: var(--shadow-lg); padding: 8px 0;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  z-index: 1001;
}
.nav-user:hover .nav-dropdown,
.nav-user.open .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown a, .nav-dropdown button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 16px; font-size: 14px;
  color: var(--gray-700); background: none; border: none;
  cursor: pointer; text-decoration: none; text-align: left;
  transition: background .12s;
}
.nav-dropdown a:hover, .nav-dropdown button:hover {
  background: var(--gray-50); text-decoration: none; color: var(--gray-900);
}
.nav-dropdown hr { border: none; border-top: 1px solid var(--gray-200); margin: 4px 0; }

/* Notification badge */
.notif-badge {
  background: var(--red); color: white; border-radius: 50%;
  width: 18px; height: 18px; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: -4px; right: -4px;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: all .25s;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding: 2.5rem 0 4rem; }
.section-gap { margin-bottom: 3rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--crs-green) 0%, var(--crs-green-mid) 50%, #0d2550 100%);
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center; color: white; 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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,32,32,.15); border: 1px solid rgba(224,32,32,.35);
  border-radius: 999px; padding: 6px 16px; font-size: 13px;
  color: var(--crs-gold-light); margin-bottom: 1.5rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulseAnim 2s infinite; }
@keyframes pulseAnim { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--crs-gold); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-emergency {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,.25); border: 1px solid rgba(220,38,38,.4);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; color: #fca5a5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-primary   { background: var(--crs-green-light); color: white; border-color: var(--crs-green-light); }
.btn-primary:hover { background: var(--crs-green-mid); border-color: var(--crs-green-mid); color: white; }
.btn-gold      { background: var(--crs-gold); color: #ffffff; border-color: var(--crs-gold); }
.btn-gold:hover { background: var(--crs-gold-light); border-color: var(--crs-gold-light); color: #ffffff; }
.btn-white     { background: white; color: var(--crs-green-mid); border-color: white; }
.btn-white:hover { background: #e8ecf7; }
.btn-outline   { background: transparent; color: var(--crs-green-light); border-color: var(--crs-green-light); }
.btn-outline:hover { background: var(--crs-green-light); color: white; }
.btn-danger    { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-ghost     { background: transparent; color: var(--gray-600); border-color: var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-full      { width: 100%; justify-content: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.card-subtitle { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.form-label span { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 15px; font-family: inherit; color: var(--gray-900);
  background: white; transition: border-color .15s; outline: none;
}
.form-control:focus { border-color: var(--crs-green-light); box-shadow: 0 0 0 3px rgba(35,72,160,.15); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.form-divider span { font-size: 13px; color: var(--gray-500); white-space: nowrap; }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 1.25rem; line-height: 1.5;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--red-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--amber-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--blue-light); color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-active     { background: #dcfce7; color: #15803d; }
.badge-pending    { background: var(--amber-light); color: #92400e; }
.badge-responding { background: var(--blue-light); color: #1d4ed8; }
.badge-resolved   { background: var(--gray-100); color: var(--gray-600); }
.badge-closed     { background: var(--gray-200); color: var(--gray-500); }
.badge-critical   { background: var(--purple-light); color: var(--purple); }
.badge-high       { background: var(--red-light); color: var(--red); }
.badge-medium     { background: var(--amber-light); color: var(--amber); }
.badge-low        { background: #dcfce7; color: #15803d; }
.badge-admin      { background: var(--crs-gold-pale); color: var(--crs-green-mid); }

/* ============================================================
   STAT CARDS (dashboard)
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.stat-icon.green  { background: #dcfce7; }
.stat-icon.red    { background: var(--red-light); }
.stat-icon.amber  { background: var(--amber-light); }
.stat-icon.blue   { background: var(--blue-light); }
.stat-icon.purple { background: var(--purple-light); }
.stat-icon.gold   { background: #fff0f0; }
.stat-num  { font-size: 2rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.table th {
  background: var(--gray-50); color: var(--gray-600);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800); vertical-align: middle;
}
.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.cat-card {
  background: white; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem 1rem;
  text-align: center; cursor: pointer; text-decoration: none;
  color: var(--gray-800); transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-card:hover {
  border-color: var(--crs-green-light); color: var(--crs-green);
  box-shadow: 0 4px 12px rgba(35,72,160,.15); transform: translateY(-2px);
  text-decoration: none;
}
.cat-card-icon { font-size: 30px; line-height: 1; }
.cat-card-label { font-size: 13px; font-weight: 600; }

/* ============================================================
   INCIDENT LIST / CARD
   ============================================================ */
.incident-list { display: flex; flex-direction: column; gap: 1rem; }
.incident-item {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  transition: border-color .15s; box-shadow: var(--shadow);
}
.incident-item:hover { border-color: var(--crs-green-light); }
.incident-item-left { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 0; }
.incident-item-icon {
  width: 44px; height: 44px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.incident-item-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.incident-item-meta { font-size: 13px; color: var(--gray-500); display: flex; gap: 14px; flex-wrap: wrap; }
.incident-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ============================================================
   MAP
   ============================================================ */
#incidentMap { height: 440px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); z-index: 1; }
.map-legend { display: flex; gap: 1.5rem; margin-top: 12px; flex-wrap: wrap; }
.map-legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ============================================================
   EMERGENCY CONTACTS
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

/* Center emergency contact cards on desktop only */
@media (min-width: 700px) {
  .contacts-grid { justify-content: center; justify-items: center; }
}
.contact-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow);
}
.contact-card:hover { border-color: var(--crs-green-light); box-shadow: 0 4px 12px rgba(35,72,160,.12); }
.contact-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.contact-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.contact-role { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.contact-phone { font-size: 1.1rem; font-weight: 800; color: var(--crs-green-mid); text-decoration: none; }
.contact-phone:hover { text-decoration: underline; color: var(--crs-gold); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--crs-green) 0%, var(--crs-green-mid) 60%, #0d2550 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
}
.auth-card {
  background: white; border-radius: var(--radius-xl);
  padding: 2.5rem 2rem; width: 100%; max-width: 440px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.auth-logo {
  text-align: center; margin-bottom: 1.75rem;
}
.auth-logo-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--crs-green); margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-icon svg { width: 28px; height: 28px; }
.auth-logo h1 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); }
.auth-logo p { font-size: 13px; color: var(--gray-500); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 14px; color: var(--gray-500); }

/* ============================================================
   SIDEBAR / DASHBOARD LAYOUT
   ============================================================ */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--crs-green);
  padding: 1.5rem 0;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-section { margin-bottom: .5rem; }
.sidebar-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.45); padding: 8px 20px 4px;
}
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,.8);
  font-size: 14px; font-weight: 500; border-radius: 0;
  transition: background .12s, color .12s; text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar a:hover { background: rgba(255,255,255,.1); color: white; text-decoration: none; }
.sidebar a.active {
  background: rgba(255,255,255,.15); color: white;
  border-left-color: var(--crs-gold);
}
.sidebar-icon { font-size: 16px; width: 20px; text-align: center; }
.dash-main { flex: 1; padding: 2rem 2.5rem; overflow: hidden; }
.dash-header { margin-bottom: 2rem; }
.dash-title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.dash-subtitle { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section { padding: 4rem 0; }
.section-alt { background: white; }
.section-dark { background: var(--crs-green); color: white; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: .5rem; }
.section-header p { font-size: 1rem; color: var(--gray-500); max-width: 540px; margin: 0 auto; }
.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--crs-green); color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: .75rem; }
.footer-brand-name { font-weight: 800; font-size: 1.1rem; color: white; }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 6px; text-decoration: none; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 13px; }
.footer-emergency a { color: var(--crs-gold); font-weight: 700; font-size: 14px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--crs-green) 0%, var(--crs-green-mid) 100%);
  padding: 3rem 1.5rem 2.5rem; color: white;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { font-size: 10px; }

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Admin layout — sidebar becomes top nav bar */
  .dash-layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    padding: .4rem .5rem; gap: .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar a {
    border-left: none; border-radius: var(--radius);
    padding: 8px 10px; white-space: nowrap;
    font-size: 13px; flex-shrink: 0;
  }
  .sidebar-label, .sidebar-section { display: contents; }
  .sidebar-label { display: none; }
  .sidebar-credit { display: none; }
  .dash-main { padding: 1.25rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Stat cards — 2 per row on tablet */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.5rem; }

  /* Tables scroll horizontally */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 700px) {
  /* Nav links hidden, slides down when open */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--crs-green);
    border-top: 1px solid rgba(255,255,255,.12);
    padding: .75rem; gap: .2rem;
    z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 11px 14px; font-size: 15px; border-radius: var(--radius); }
  .hamburger { display: flex; }
  .nav-actions .btn-nav-report { display: none; }
  .hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 2rem 1.25rem; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: .875rem !important; }
  .stat-num { font-size: 1.3rem; }
  .stat-icon { width: 36px !important; height: 36px !important; font-size: 16px !important; }
  .container, .container-sm { padding: 0 1rem; }
  .dash-main { padding: 1rem .75rem; }
  .card { padding: 1rem; }
  .card-header { flex-wrap: wrap; gap: .5rem; }
  .dash-title { font-size: 1.3rem; }
  .table th, .table td { padding: 8px 10px; font-size: 12px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); font-size: 13px; }
.text-sm     { font-size: 14px; }
.text-green  { color: var(--crs-green-light); }
.text-gold   { color: var(--crs-gold); }
.text-red    { color: var(--red); }
.fw-bold     { font-weight: 700; }
.fw-800      { font-weight: 800; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--gray-400);
}
.empty-state-icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-state p { font-size: 15px; }

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--gray-200); border-top-color: var(--crs-green-light);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Friday Technologies credit in admin sidebar ── */
.sidebar-credit {
  margin-top: auto;
  padding: 1rem 16px .75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-credit p {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}
.sidebar-credit a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  border: none;
  padding: 0;
  background: none;
}
.sidebar-credit a:hover {
  color: rgba(255,255,255,.85);
  background: none;
  text-decoration: underline;
}