/* ============================================================
   Open Data Kabupaten Boalemo - Main Stylesheet
   Aesthetic: Modern Government - Clean, trustworthy, accessible
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

:root {
  --primary: #1a3a6b;
  --primary-light: #2a5298;
  --primary-dark: #0d1f3c;
  --accent: #e8a020;
  --accent-light: #f5c842;
  --secondary: #2d8653;
  --danger: #c0392b;
  --light-bg: #f4f6fc;
  --card-bg: #ffffff;
  --border: #e2e8f4;
  --text-dark: #1a2340;
  --text-muted: #6b7a99;
  --text-light: #a0adc4;
  --shadow-sm: 0 2px 8px rgba(26,58,107,0.08);
  --shadow-md: 0 6px 24px rgba(26,58,107,0.12);
  --shadow-lg: 0 16px 48px rgba(26,58,107,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Merriweather', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--light-bg);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: var(--accent-light); }
.topbar .separator { margin: 0 10px; opacity: 0.35; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.navbar-brand-wrap {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #fff;
}
.navbar-brand-wrap .logo-img {
  width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.brand-text .brand-name {
  font-size: 15px; font-weight: 700; line-height: 1.2;
  color: #fff; letter-spacing: 0.3px;
}
.brand-text .brand-sub {
  font-size: 10.5px; color: rgba(255,255,255,0.65);
  letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500;
}

.site-header .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.2px;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}
.site-header .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  background: #fff;
  min-width: 200px;
  margin-top: 8px;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn {
  from { opacity:0; transform:translateY(-8px); }
  to { opacity:1; transform:translateY(0); }
}
.site-header .dropdown-item {
  font-size: 13.5px; padding: 9px 18px;
  color: var(--text-dark); transition: var(--transition);
}
.site-header .dropdown-item:hover {
  background: var(--light-bg); color: var(--primary);
}

.search-form-nav { position: relative; }
.search-form-nav input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 25px;
  padding: 7px 18px 7px 38px;
  font-size: 13px; width: 220px;
  transition: var(--transition);
}
.search-form-nav input::placeholder { color: rgba(255,255,255,0.5); }
.search-form-nav input:focus {
  background: rgba(255,255,255,0.18);
  outline: none; border-color: rgba(255,255,255,0.4);
  width: 270px;
}
.search-form-nav .search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.55); font-size: 13px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -100px; left: -50px;
  width: 800px; height: 300px;
  background: var(--light-bg);
  transform: skewY(-3deg);
  transform-origin: left;
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.35);
  color: var(--accent-light);
  padding: 6px 16px; border-radius: 25px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem; font-weight: 700;
  color: #fff; line-height: 1.25; margin-bottom: 18px;
}
.hero-title span { color: var(--accent-light); }
.hero-desc {
  color: rgba(255,255,255,0.75); font-size: 16px;
  max-width: 520px; margin-bottom: 32px; line-height: 1.75;
}

.hero-search {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 10px;
  max-width: 600px;
}
.hero-search input {
  background: none; border: none;
  color: #fff; font-size: 15px;
  flex: 1; outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search-btn {
  background: var(--accent);
  color: #fff; border: none;
  padding: 12px 28px; border-radius: 12px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.hero-search-btn:hover { background: var(--accent-light); transform: translateY(-1px); }

.hero-stats {
  display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 2rem; font-weight: 800; color: #fff; line-height: 1;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; letter-spacing: 0.5px; }

.hero-visual { position: relative; z-index: 2; }
.hero-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; max-width: 360px; margin: 0 auto;
}
.hero-card-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px; text-align: center; color: #fff;
  transition: var(--transition);
  animation: floatUp 0.5s ease forwards;
  opacity: 0;
}
.hero-card-item:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.hero-card-item i { font-size: 1.8rem; margin-bottom: 8px; color: var(--accent-light); }
.hero-card-item .num { font-size: 1.4rem; font-weight: 700; }
.hero-card-item .lbl { font-size: 11px; opacity: 0.7; margin-top: 3px; }
@keyframes floatUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-card-item:nth-child(1) { animation-delay: 0.1s; }
.hero-card-item:nth-child(2) { animation-delay: 0.2s; }
.hero-card-item:nth-child(3) { animation-delay: 0.3s; }
.hero-card-item:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-header { margin-bottom: 40px; }
.section-label {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 10px;
  position: relative; padding-left: 20px;
}
.section-label::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.9rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.3;
}
.section-desc { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-cards-row { margin-top: -60px; position: relative; z-index: 10; margin-bottom: 60px; }

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid transparent;
  transition: var(--transition);
  height: 100%;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,58,107,0.15); }
.stat-card.blue { border-top-color: #2a5298; }
.stat-card.green { border-top-color: #2d8653; }
.stat-card.orange { border-top-color: #e8a020; }
.stat-card.purple { border-top-color: #7c3aed; }

.stat-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.stat-card.blue .stat-card-icon { background: rgba(42,82,152,0.1); color: #2a5298; }
.stat-card.green .stat-card-icon { background: rgba(45,134,83,0.1); color: #2d8653; }
.stat-card.orange .stat-card-icon { background: rgba(232,160,32,0.1); color: #e8a020; }
.stat-card.purple .stat-card-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }

.stat-card-num { font-size: 2.2rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.stat-card-change { font-size: 12px; margin-top: 8px; color: var(--secondary); font-weight: 500; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none; display: block;
  height: 100%;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color, var(--primary));
  transform: scaleX(0); transition: transform 0.3s ease;
}
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.cat-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
  background: var(--cat-color-bg, rgba(26,58,107,0.08));
  color: var(--cat-color, var(--primary));
}
.cat-name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.cat-count { font-size: 12.5px; color: var(--text-muted); }

/* ============================================================
   DATASET CARDS
   ============================================================ */
.dataset-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
}
.dataset-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(26,58,107,0.15);
}
.dataset-card-body { padding: 20px; flex: 1; }
.dataset-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--light-bg);
  display: flex; justify-content: space-between;
  align-items: center;
}

.dataset-org {
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 8px;
}
.dataset-title {
  font-size: 14.5px; font-weight: 700; color: var(--text-dark);
  line-height: 1.45; margin-bottom: 10px;
  text-decoration: none; display: block;
}
.dataset-title:hover { color: var(--primary); }
.dataset-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.dataset-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dataset-tag {
  font-size: 11px; padding: 3px 10px;
  border-radius: 20px;
  background: var(--light-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.dataset-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.dataset-meta { display: flex; gap: 14px; align-items: center; }
.dataset-meta-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.dataset-meta-item i { font-size: 11px; }

.format-badge {
  font-size: 10px; padding: 3px 8px;
  border-radius: 5px; font-weight: 700; letter-spacing: 0.5px;
}

/* ============================================================
   FEATURED BADGE
   ============================================================ */
.badge-featured {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; font-size: 10px; padding: 3px 10px;
  border-radius: 20px; font-weight: 700; letter-spacing: 0.5px;
}

/* ============================================================
   SEARCH & FILTER AREA
   ============================================================ */
.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.search-input-main {
  border: 2px solid var(--border);
  border-radius: 10px; padding: 12px 18px 12px 46px;
  font-size: 14.5px; width: 100%; font-family: var(--font-main);
  transition: var(--transition); color: var(--text-dark);
  background: var(--light-bg);
}
.search-input-main:focus {
  outline: none; border-color: var(--primary);
  background: #fff; box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
}
.search-input-wrap { position: relative; }
.search-input-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light); font-size: 15px;
}

.filter-select {
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 10px 14px; font-size: 13.5px;
  color: var(--text-dark); background: var(--light-bg);
  font-family: var(--font-main); cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--primary); background: #fff; }

.btn-filter {
  background: var(--primary); color: #fff;
  border: none; padding: 10px 24px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: var(--font-main);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-filter:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; padding: 13px 30px;
  border-radius: 10px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-main);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary-custom:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(26,58,107,0.3);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary); border: 2px solid var(--primary);
  padding: 11px 28px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: var(--font-main);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, var(--secondary), #35a866);
  color: #fff; border: none; padding: 10px 20px;
  border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-main);
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(45,134,83,0.3); color: #fff; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
  height: 100%;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img { width: 100%; height: 180px; object-fit: cover; }
.news-card-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,0.3);
}
.news-card-body { padding: 20px; }
.news-date { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.news-title {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: var(--text-dark); text-decoration: none;
  display: block; margin-bottom: 10px;
  transition: var(--transition);
}
.news-title:hover { color: var(--primary); }
.news-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   OPEN DATA PORTAL INFO BOX
   ============================================================ */
.info-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg); padding: 48px 40px;
  color: #fff; position: relative; overflow: hidden;
}
.info-box::before {
  content: '';
  position: absolute; top: -80px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-custom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text-dark);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   DATASET DETAIL PAGE
   ============================================================ */
.detail-header {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  padding: 48px 0 32px; color: #fff;
}
.detail-header h1 {
  font-family: var(--font-serif); font-size: 1.85rem;
  font-weight: 700; line-height: 1.35; margin-bottom: 16px;
}

.metadata-table { width: 100%; }
.metadata-table tr td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.metadata-table tr:last-child td { border-bottom: none; }
.metadata-table td:first-child { color: var(--text-muted); font-weight: 500; width: 40%; }
.metadata-table td:last-child { font-weight: 600; color: var(--text-dark); }

.resource-item {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-bottom: 12px; transition: var(--transition);
}
.resource-item:hover { border-color: var(--primary); background: rgba(26,58,107,0.04); }
.resource-info { flex: 1; }
.resource-name { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.resource-meta { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  padding: 16px 20px;
  background: var(--primary);
  color: #fff; font-size: 13.5px; font-weight: 700;
}
.sidebar-card-body { padding: 18px 20px; }

.sidebar-list-item {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px;
}
.sidebar-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list-item a { color: var(--text-dark); text-decoration: none; transition: var(--transition); }
.sidebar-list-item a:hover { color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-brand { margin-bottom: 20px; }
.footer-brand .brand-name { color: #fff; font-size: 16px; font-weight: 700; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.6); margin-top: 10px; }

.footer-heading {
  color: #fff; font-size: 14px; font-weight: 700;
  margin-bottom: 18px; letter-spacing: 0.5px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(232,160,32,0.4);
  display: inline-block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 13.5px; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }

.footer-contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; font-size: 13.5px;
}
.footer-contact-item i { color: var(--accent); margin-top: 2px; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 12.5px; color: rgba(255,255,255,0.45);
  margin-top: 48px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-light); }

.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: var(--transition); font-size: 15px;
}
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-sidebar {
  background: var(--primary-dark);
  width: 260px; min-height: 100vh;
  position: fixed; left: 0; top: 0; z-index: 1000;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 13.5px;
  transition: var(--transition); border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff; border-left-color: var(--accent);
}
.admin-nav-item i { width: 20px; text-align: center; font-size: 15px; }

.admin-main { margin-left: 260px; background: var(--light-bg); min-height: 100vh; }
.admin-topbar {
  background: #fff; padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100;
}
.admin-content { padding: 28px; }

.admin-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm); height: 100%;
}
.admin-card-title { font-size: 15px; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }

.admin-stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); height: 100%;
  display: flex; align-items: center; gap: 18px;
}
.admin-stat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.admin-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }
.admin-stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-control-custom {
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 11px 16px; font-size: 14px;
  width: 100%; font-family: var(--font-main);
  color: var(--text-dark); background: var(--card-bg);
  transition: var(--transition);
}
.form-control-custom:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
}
.form-label-custom { font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: block; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-area { padding: 14px 0; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb { margin: 0; }
.breadcrumb-item { font-size: 13px; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--text-light); }

/* ============================================================
   ALERTS & NOTIFICATIONS
   ============================================================ */
.alert-custom {
  padding: 14px 18px; border-radius: 10px;
  font-size: 13.5px; display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.alert-info { background: rgba(42,82,152,0.08); border: 1px solid rgba(42,82,152,0.2); color: var(--primary); }
.alert-success { background: rgba(45,134,83,0.08); border: 1px solid rgba(45,134,83,0.2); color: var(--secondary); }
.alert-warning { background: rgba(232,160,32,0.08); border: 1px solid rgba(232,160,32,0.3); color: #a07000; }
.alert-danger { background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.2); color: var(--danger); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3.5rem; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state h5 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.fab-request {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--accent);
  color: #fff; border: none;
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(232,160,32,0.4);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.fab-request:hover { transform: scale(1.1) translateY(-3px); background: var(--accent-light); color: #fff; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,58,107,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,58,107,0.35); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
  .hero-visual { display: none; }
  .stat-cards-row { margin-top: 24px; }
}
@media (max-width: 768px) {
  .hero-section { padding: 50px 0 70px; }
  .hero-title { font-size: 1.6rem; }
  .hero-search { flex-direction: column; padding: 14px; }
  .hero-search input { width: 100%; }
  .hero-search-btn { width: 100%; justify-content: center; }
  .search-form-nav { display: none; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
  .admin-sidebar.open { transform: translateX(0); }
}
@media (max-width: 576px) {
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.5rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.fw-800 { font-weight: 800 !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }

/* Animate on scroll */
.aos-fade {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.aos-fade.visible { opacity: 1; transform: translateY(0); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f4fb 25%, #e0e8f5 50%, #f0f4fb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Chart container */
.chart-container { position: relative; height: 300px; }

/* Print */
@media print {
  .site-header, .site-footer, .fab-request, .filter-bar { display: none !important; }
  .dataset-card { box-shadow: none !important; border: 1px solid #ccc !important; }
}
