/* ============================================================
   Public Office Rating Portal — Main Stylesheet
   ============================================================ */

:root {
  --primary: #174ea6;
  --primary-dark: #123b7c;
  --secondary: #64748b;
  --success: #007a4d;
  --warning: #e6a400;
  --danger: #c81e2c;
  --info: #0284c7;
  --light: #f7f8fb;
  --dark: #111827;
  --ghana-gold: #fcd116;
  --ghana-green: #006b3f;
  --ghana-red: #ce1126;
  --ink: #111827;
  --muted: #667085;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --line: #e6eaf0;
  --card-shadow: 0 1px 2px rgba(17,24,39,0.05), 0 12px 28px rgba(17,24,39,0.07);
  --card-shadow-hover: 0 18px 40px rgba(17,24,39,0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f6 42%, #f7f8fb 100%);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 750; color: var(--ink); line-height: 1.2; letter-spacing: 0; }

.text-ghana-gold { color: var(--ghana-gold) !important; }
.text-ghana-green { color: var(--ghana-green) !important; }
.text-ghana-red { color: var(--ghana-red) !important; }

/* ---- Navbar ---- */
.navbar {
  background: rgba(18,59,124,0.96) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 8px 28px rgba(17,24,39,0.16);
  padding: 0.6rem 0;
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}

.navbar .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: rgba(255,255,255,0.13);
}

/* ---- Hero Section ---- */
.hero-section {
  background:
    linear-gradient(90deg, rgba(10,31,68,0.96), rgba(18,59,124,0.84)),
    url("data:image/svg+xml,%3Csvg width='1200' height='720' viewBox='0 0 1200 720' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='720' fill='%23123b7c'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='2'%3E%3Cpath d='M82 560h1038M142 515h918M210 470h780'/%3E%3Cpath d='M340 420V250h78v170M498 420V230h78v190M656 420V250h78v170M814 420V230h78v190'/%3E%3Cpath d='M270 250h692l-346-128zM250 420h732v58H250z'/%3E%3C/g%3E%3Cg fill='%23fcd116' fill-opacity='.75'%3E%3Crect x='250' y='478' width='732' height='8'/%3E%3C/g%3E%3Cg fill='%23006b3f' fill-opacity='.52'%3E%3Crect x='250' y='492' width='732' height='10'/%3E%3C/g%3E%3Cg fill='%23ce1126' fill-opacity='.48'%3E%3Crect x='250' y='508' width='732' height='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  min-height: 68vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: none;
}

.hero-bg::after {
  content: none;
}

.min-vh-50 { min-height: 50vh; }

.hero-section h1,
.hero-section h2,
.hero-section h3 {
  color: #ffffff !important;
}

/* Hero stat numbers must be white — they sit on a blue gradient background */
.hero-stats-card .stat-number { color: #fff !important; }

.hero-eyebrow {
  background: rgba(252,209,22,0.94);
  color: #1f2937;
  border: 1px solid rgba(252,209,22,0.45);
}

.hero-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(14px);
}

.hero-metric {
  min-height: 92px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(18,59,124,0.96), rgba(0,107,63,0.84)),
    url("data:image/svg+xml,%3Csvg width='1200' height='280' viewBox='0 0 1200 280' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='280' fill='%23123b7c'/%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.13'%3E%3Cpath d='M0 210c160-48 310-20 462-58 176-44 315-108 538-62 82 17 144 48 200 76' stroke-width='3'/%3E%3Cpath d='M0 242c188-40 338-6 502-42 162-36 309-92 500-36 86 25 136 46 198 60' stroke-width='2'/%3E%3C/g%3E%3Crect y='256' width='1200' height='8' fill='%23ce1126'/%3E%3Crect y='264' width='1200' height='8' fill='%23fcd116'/%3E%3Crect y='272' width='1200' height='8' fill='%23006b3f'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.page-hero h1,
.page-hero h2,
.page-hero h3 {
  color: #ffffff !important;
}

.section-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: var(--ghana-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolbar-card {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(17,24,39,0.04);
}

.auth-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.auth-visual {
  padding: 2rem;
}

.auth-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--ghana-green));
  color: #fff;
  font-size: 1.75rem;
  box-shadow: var(--card-shadow);
}

.auth-panel {
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

.auth-panel .form-control {
  min-height: 46px;
}

.auth-note {
  border-left: 3px solid var(--ghana-gold);
  background: #fff8df;
  color: #5f4b12;
}

.hover-lift:hover { transform: translateY(-3px); }

/* ---- Cards ---- */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--card-shadow-hover); }

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* ---- Stat Cards ---- */
.stat-card {
  border-left: 4px solid var(--primary);
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.stat-card.green { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-card.red { border-left-color: var(--danger); }
.stat-card.gold { border-left-color: var(--ghana-gold); }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-top: 0.25rem;
}

/* ---- Ranking Items ---- */
.ranking-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  border-left: 4px solid transparent;
}

.ranking-item:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateX(3px);
  border-left-color: var(--primary);
}

.ranking-item.top-3 { border-left-color: var(--ghana-gold); }
.ranking-item.rank-1 { background: linear-gradient(135deg, #fffbeb, white); }

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1rem;
}

.rank-badge.gold { background: var(--ghana-gold); color: #333; }
.rank-badge.silver { background: #c0c0c0; color: #333; }
.rank-badge.bronze { background: #cd7f32; color: white; }

.appointee-thumb,
.appointee-avatar,
.appointee-avatar-placeholder {
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #e0e7ff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(17,24,39,0.10);
}

.appointee-avatar {
  width: 64px;
  height: 64px;
  margin-right: 1rem;
}

.appointee-avatar-placeholder {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--ghana-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* ---- Star Rating ---- */
.star-rating {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.star-btn {
  background: none;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: all var(--transition);
  color: #ccc;
}

.star-btn:hover,
.star-btn.active {
  border-color: var(--ghana-gold);
  background: #fffbeb;
  color: var(--ghana-gold);
  transform: scale(1.1);
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star {
  color: #e0e0e0;
  font-size: 1rem;
}

.rating-star.filled { color: var(--ghana-gold); }
.rating-star.half-filled {
  background: linear-gradient(90deg, var(--ghana-gold) 50%, #e0e0e0 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Progress Bars ---- */
.rating-progress {
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
  overflow: hidden;
}

.rating-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--ghana-gold));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---- Confidence Badges ---- */
.confidence-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.confidence-low { background: #fee2e2; color: #dc2626; }
.confidence-moderate { background: #fef3c7; color: #d97706; }
.confidence-strong { background: #dcfce7; color: #16a34a; }
.confidence-very_strong { background: #dbeafe; color: #2563eb; }

/* ---- Governance Index ---- */
.governance-index {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.gi-excellent { color: #059669; }
.gi-good { color: #2563eb; }
.gi-average { color: #d97706; }
.gi-weak { color: #dc2626; }
.gi-critical { color: #7f1d1d; }

.gi-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}

.gi-label-excellent { background: #d1fae5; color: #059669; }
.gi-label-good { background: #dbeafe; color: #2563eb; }
.gi-label-average { background: #fef3c7; color: #d97706; }
.gi-label-weak { background: #fee2e2; color: #dc2626; }
.gi-label-critical { background: #fce7f3; color: #9d174d; }

/* ---- Trend Indicators ---- */
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-stable { color: var(--secondary); }

/* ---- Appointee Profile ---- */
.appointee-profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.appointee-profile-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--ghana-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.profile-header {
  background: linear-gradient(135deg, #123b7c, #006b3f);
  color: white;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: none;
}

/* ---- Radar / Detail Rating Display ---- */
.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-rating-row:last-child { border-bottom: none; }

.detail-rating-label {
  width: 180px;
  font-size: 0.85rem;
  color: #555;
  flex-shrink: 0;
}

.detail-rating-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.detail-rating-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--ghana-gold));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-rating-score {
  width: 40px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ---- Vote Buttons ---- */
.vote-rating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  color: #555;
  min-width: 70px;
}

.vote-rating-btn:hover {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  transform: translateY(-2px);
}

.vote-rating-btn.selected {
  border-color: var(--ghana-gold);
  background: #fffbeb;
  color: #92400e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.vote-rating-emoji { font-size: 1.8rem; }
.vote-rating-score { font-size: 1.2rem; font-weight: 800; }
.vote-rating-label { font-size: 0.7rem; text-align: center; opacity: 0.8; }

/* ---- Filter Bar ---- */
.filter-bar {
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

/* ---- Badge Variants ---- */
.badge-type {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-sector {
  background: #f0fdf4;
  color: #15803d;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-active {
  background: #dcfce7;
  color: #15803d;
}

.badge-ended {
  background: #f1f5f9;
  color: #64748b;
}

/* ---- Comparison ---- */
.compare-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
}

.compare-winner {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ghana-gold);
  color: #333;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Charts Container ---- */
.chart-container {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.chart-container canvas { max-width: 100%; }

/* ---- Forms ---- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: #d0d7de;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-text { font-size: 0.78rem; }

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-warning {
  background: var(--ghana-gold);
  border-color: var(--ghana-gold);
  color: #1a1a2e;
}

.btn-warning:hover {
  background: #e6a800;
  border-color: #e6a800;
  color: #1a1a2e;
}

.btn-lg {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
}

/* ---- Alerts ---- */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
}

/* ---- Tables ---- */
.table {
  font-size: 0.875rem;
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 700;
  border-bottom: 2px solid #f0f0f0;
  padding: 0.85rem 1rem;
  background: #f9fafb;
}

.table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}

.table-hover tbody tr:hover { background: #f8f9ff; }

/* ---- Pagination ---- */
.page-link {
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  border: 1px solid #e0e0e0;
  color: var(--primary);
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
}

.page-link:hover { background: #eff6ff; }
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- Footer ---- */
footer {
  background: #0f1923 !important;
}

footer a { color: #9ca3af; transition: color var(--transition); }
footer a:hover { color: white; }

/* ---- Admin Sidebar ---- */
.admin-sidebar {
  width: 260px;
  height: 100vh;
  max-height: 100vh;
  background: linear-gradient(180deg, #0f1923 0%, #1a2332 100%);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-bottom: 1rem;
}

.admin-sidebar-scroll {
  display: block;
  padding: 0.5rem 0 0.75rem;
}

.admin-sidebar-footer {
  display: block;
  background: rgba(15, 25, 35, 0.98);
}

.admin-sidebar::-webkit-scrollbar {
  width: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.45);
  border-radius: 999px;
  border: 2px solid #0f1923;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: rgba(15, 25, 35, 0.35);
}

.admin-sidebar .nav-link {
  color: #9ca3af;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1px 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(26,86,219,0.2);
  color: white;
}

.admin-sidebar .nav-section-label {
  color: #4b5563;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 1.25rem 0.35rem;
  font-weight: 700;
}

.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  padding-top: 60px;
}

.admin-topbar {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 60px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ---- Comment Cards ---- */
.comment-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border-left: 3px solid #e0e0e0;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.comment-card.positive { border-left-color: var(--success); }
.comment-card.negative { border-left-color: var(--danger); }
.comment-card.neutral { border-left-color: var(--secondary); }

.comment-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* ---- Loading Spinner ---- */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  flex-direction: column;
  gap: 1rem;
  color: #9ca3af;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

/* ---- Ghana flag accent ---- */
.ghana-flag-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--ghana-red) 33.33%, var(--ghana-gold) 33.33%, var(--ghana-gold) 66.66%, var(--ghana-green) 66.66%);
}

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-260px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-topbar { left: 0; }

  .detail-rating-label { width: 120px; font-size: 0.75rem; }

  .ranking-item { padding: 0.75rem 1rem; }
  .appointee-avatar,
  .appointee-avatar-placeholder { width: 56px; height: 56px; }

  .vote-rating-btn { min-width: 55px; padding: 10px 10px; }
  .vote-rating-emoji { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-section { min-height: 50vh; }
  h1 { font-size: 1.8rem; }
  .governance-index { font-size: 2rem; }
}

/* ---- Utilities ---- */
.rounded-xl { border-radius: var(--radius) !important; }
.rounded-2xl { border-radius: var(--radius) !important; }
.shadow-card { box-shadow: var(--card-shadow) !important; }
.shadow-hover:hover { box-shadow: var(--card-shadow-hover) !important; }
.bg-gradient-primary { background: linear-gradient(135deg, #123b7c, #006b3f) !important; }
.bg-gradient-dark { background: linear-gradient(135deg, #0f1923, #1a2332) !important; }
.cursor-pointer { cursor: pointer; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }
.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.transition { transition: all var(--transition); }

/* ---- Animated Number ---- */
.animated-number {
  display: inline-block;
  transition: all 0.3s ease;
}

/* ---- Scroll ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Footer ---- */
footer.bg-dark h1, footer.bg-dark h2, footer.bg-dark h3,
footer.bg-dark h4, footer.bg-dark h5, footer.bg-dark h6 {
  color: #ffffff !important;
}

footer.bg-dark .text-muted {
  color: rgba(255,255,255,0.55) !important;
}

footer.bg-dark a.text-muted {
  color: rgba(255,255,255,0.55) !important;
  transition: color 0.2s;
}

footer.bg-dark a.text-muted:hover {
  color: #ffffff !important;
}

footer.bg-dark hr {
  border-color: rgba(255,255,255,0.15) !important;
}

/* ---- Print ---- */
@media print {
  .navbar, .footer, .btn, .filter-bar, .admin-sidebar, .admin-topbar { display: none !important; }
  .admin-content { margin-left: 0 !important; }
  body { background: white !important; }
}
