/* ============================================================
   LGA PORTAL — DESIGN SYSTEM
   Local Government Management System (LGMS) - Nigeria
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #1a9447;
  /* Nodes Green Mid */
  --primary-dark: #096a2f;
  /* Nodes Green Dark */
  --primary-light: #eaf5ee;
  /* Soft Green */
  --accent: #6dc044;
  /* Nodes Green Light */
  --accent-dark: #54a330;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;
  --success: #10b981;

  --bg: #f4f7f5;
  --bg-card: #ffffff;
  --bg-dark: #0d1f14;
  /* Deeper forest green for siderbars */

  --text-primary: #0f1712;
  --text-secondary: #3f5247;
  --text-muted: #849a8d;
  --border: #d1e0d7;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 2px 8px rgba(9, 106, 47, 0.04), 0 1px 2px rgba(9, 106, 47, 0.02);
  --shadow-md: 0 8px 24px rgba(9, 106, 47, 0.06);
  --shadow-lg: 0 16px 48px rgba(9, 106, 47, 0.1);

  --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
  --nav-height: 76px;
}

/* ── Utility Classes (Premium) ── */
.glass-dark {
  background: rgba(13, 31, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.pattern-topo {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 Q 50 10 50 50 T 90 90' stroke='%231a9447' stroke-opacity='0.05' fill='none'/%3E%3Cpath d='M20 10 Q 60 10 60 50 T 100 90' stroke='%231a9447' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-nodes {
  background-image: 
    radial-gradient(rgba(26, 148, 71, 0.04) 2px, transparent 2px),
    radial-gradient(rgba(26, 148, 71, 0.04) 2px, transparent 2px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: var(--font-display);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ── Header Wrapper ── */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: none !important;
}

.fixed-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ── Topbar ── */
.topbar {
  background: #000 !important; /* Solid black for institutional clarity */
  color: rgba(255, 255, 255, 0.85);
  font-size: .75rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  order: 1;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--accent);
}

.scrolled .topbar {
  display: none; /* Hide topbar on scroll to save space */
}

/* ── Navbar ── */
.navbar {
  position: relative;
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  order: 2;
}

.scrolled .navbar {
  height: calc(var(--nav-height) - 16px);
}

.scrolled .navbar {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body:not([data-page="home"]) .navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  height: 100%;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.brand-state {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%; /* Crucial for vertical centering */
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  height: 44px; /* Consistent height for links */
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a.active {
  font-weight: 600;
}

.btn-nav {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 104, 55, .3);
}

.btn-accent {
  background: var(--accent);
  color: #0d2818;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #0d2818;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: .82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background: #fdf3d8;
  color: var(--accent-dark);
}

.badge-danger {
  background: #fde8e8;
  color: var(--danger);
}

.badge-info {
  background: #e0f2fe;
  color: var(--info);
}

.badge-muted {
  background: #f1f5f2;
  color: var(--text-secondary);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: url('../images/bg.png') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 20, 0.4) 0%, rgba(13, 31, 20, 0.85) 100%);
  z-index: 1;
}

.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%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 168, 75, .15);
  border: 1px solid rgba(200, 168, 75, .3);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat .label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  margin-top: 2px;
}

/* ── Quick Links ── */
.quick-links {
  padding: 0;
  margin-top: -32px;
  position: relative;
  z-index: 10;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.quick-link-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.quick-link-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quick-link-card:hover .quick-link-icon,
.quick-link-card:hover h4,
.quick-link-card:hover p {
  color: #fff;
}

.quick-link-icon-container {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all var(--transition);
}

.quick-link-card:hover .quick-link-icon-container {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.quick-link-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.quick-link-card h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.quick-link-card p {
  font-size: .77rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

/* ── News Cards ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .3);
  position: relative;
}

.news-card-img .news-type {
  position: absolute;
  top: 12px;
  left: 12px;
}

.news-card-body {
  padding: 20px;
}

.news-card-date {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.12;
  pointer-events: none;
  filter: grayscale(1);
}

.news-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-primary);
}

.news-card-body p {
  font-size: .875rem;
  line-height: 1.55;
}

.news-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ── Stats Banner ── */
.stats-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 52px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item .lbl {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 4px;
}

/* ── Table ── */
.table-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--primary);
}

thead th {
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--primary-light);
}

tbody td {
  padding: 14px 18px;
  font-size: .875rem;
  color: var(--text-secondary);
}

tbody td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 55, .12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

/* ── Alert Banner ── */
.alert-strip {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #fff;
  padding: 10px 0;
  font-size: .85rem;
  position: relative;
  order: 3;
}

.scrolled .alert-strip {
  display: none; /* Hide alert when sticky navbar takes over */
}

.alert-strip .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-strip strong {
  font-weight: 700;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a3d20 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
}

.page-hero .breadcrumb a:hover {
  color: var(--accent);
}

.page-hero .breadcrumb .sep {
  color: rgba(255, 255, 255, .35);
}

/* ── Profile Cards ── */
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.profile-avatar {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, .4);
}

.profile-body {
  padding: 20px;
}

.profile-body h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-body .role {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-body p {
  font-size: .82rem;
}

/* ── Progress Bar ── */
.progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 1s ease;
}

.progress-bar.accent {
  background: var(--accent);
}

.progress-bar.danger {
  background: var(--danger);
}

/* ── Sidebar ── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.sidebar-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar a.active {
  font-weight: 600;
}

/* ── Map Placeholder ── */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#map {
  height: 460px;
  background: #e8f0eb;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  padding: 60px 0 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .brand-logo {
  background: rgba(255, 255, 255, .1);
}

.footer-brand p {
  color: rgba(255, 255, 255, .55);
  font-size: .875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: rgba(255, 255, 255, .55);
  font-size: .875rem;
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, .4);
  font-size: .8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .4);
  font-size: .8rem;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ── Utility ── */
.text-center {
  text-align: center;
}

.text-primary-color {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 32px;
}

.gap-2 {
  gap: 16px;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }
}

/* ── Budget Management Utilities ── */
.calculated-field { background: #f8fafc !important; font-weight: 700; color: var(--primary); }
.deficit { color: var(--danger) !important; font-weight: 800; }
.surplus { color: var(--success) !important; font-weight: 800; }

.budget-table input.form-control {
  padding: 6px 10px;
  font-size: .85rem;
  border-radius: 4px;
}

.budget-summary-card {
  background: var(--primary-light);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 148, 71, 0.1);
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.budget-step-content {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Service Management Badges ── */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pending { background: #fdf3d8; color: var(--warning); }
.status-processing { background: #e0f2fe; color: var(--info); }
.status-approved { background: #dcfce7; color: var(--success); }
.status-rejected { background: #fde8e8; color: var(--danger); }

/* ── Document Viewer Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.modal-close {
  background: var(--bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--danger);
  color: #fff;
}

.modal-body {
  height: calc(100% - 80px); /* Header height approx 80px */
  background: var(--bg);
}

.doc-frame {
  width: 100%;
  height: 100%;
  border: none;
}

