/* ===========================================================
   SIMPADU PERADI — Stylesheet Utama
   Redesign 2026 — Inter Font, Tema Biru Institusional
   =========================================================== */

/* ── Font lokal ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-600.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-800.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  /* Biru institusional */
  --blue-950: #060f1e;
  --blue-900: #0a1f3c;
  --blue-800: #0d2d58;
  --blue-700: #113d78;
  --blue-600: #1a52a8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #EAF0F6;

  /* Aksen kuning / emas — sesuai badge "Penelitian" */
  --gold:       #f5c518;
  --gold-dark:  #d4a017;
  --gold-light: #fef9c3;
  --gold-bg:    #fffbeb;

  /* Semantik */
  --red:    #dc2626;
  --red-bg: #fee2e2;
  --green:  #16a34a;
  --grn-bg: #dcfce7;
  --amber:  #d97706;
  --amb-bg: #fef3c7;

  /* Warna app default — pastel lembut */
  --app-green:  #EEF8F0;
  --app-blue:   #EAF0F6;
  --app-yellow: #FFF4CC;

  /* alias lama (landing page) */
  --land-green:  #EEF8F0;
  --land-blue:   #EAF0F6;
  --land-yellow: #FFF4CC;

  /* Teks & surface */
  --ink:    #0f172a;
  --sub:    #334155;
  --muted:  #64748b;
  --line:   #e2e8f0;
  --bg:     #EAF0F6;
  --bg-green:  #EEF8F0;
  --bg-blue:   #EAF0F6;
  --bg-yellow: #FFF4CC;
  --surface:#ffffff;


  /* Sidebar */
  --sidebar-w:   240px;
  --sidebar-bg:  #334155;
  --sidebar-hover: rgba(255,255,255,.07);
  --sidebar-active: rgba(238,248,240,.15);
  --sidebar-active-border: #EEF8F0;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow:    0 1px 3px rgba(15,23,42,.08), 0 4px 16px rgba(15,23,42,.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,.10);
  --shadow-lg: 0 8px 32px rgba(15,23,42,.14);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-sm    { font-size: 12px; }
.text-muted { color: var(--muted); }
.fw-600     { font-weight: 600; }
.fw-700     { font-weight: 700; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.spacer { flex: 1; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .15s; text-decoration: none;
  white-space: nowrap; line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: #86efac; color: #14532d; border-color: #4ade80;
}
.btn-primary:hover { background: #6ee7a0; border-color: #22c55e; color: #14532d; }

.btn-gold {
  background: #334155; color: #fff; border-color: #334155;
}
.btn-gold:hover { background: #475569; color: #fff; }

.btn-outline {
  background: var(--surface); color: var(--blue-700); border-color: var(--blue-300);
}
.btn-outline:hover { background: var(--blue-50); color: var(--blue-700); }

.btn-ghost {
  background: transparent; color: var(--sub); border-color: transparent;
}
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); }

.btn-danger  { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-icon {
  padding: 6px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 14px; transition: .12s;
}
.btn-icon:hover { background: var(--blue-50); }
.btn-icon.primary { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.btn-icon.green   { background: var(--grn-bg); border-color: #bbf7d0; color: var(--green); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
}
.badge-blue   { background: var(--blue-100); color: var(--blue-700); }
.badge-gold   { background: var(--gold-light); color: #92400e; border: 1px solid var(--gold); }
.badge-green  { background: var(--grn-bg);  color: var(--green); }
.badge-amber  { background: var(--amb-bg);  color: var(--amber); }
.badge-red    { background: var(--red-bg);  color: var(--red); }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gray   { background: #f1f5f9; color: var(--muted); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--sub); }
.form-control {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; color: var(--ink);
  background: var(--surface); transition: border .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; border: 1px solid transparent;
}
.alert-warn   { background: var(--amb-bg); color: #78350f; border-color: #fde68a; }
.alert-danger { background: var(--red-bg); color: #7f1d1d; border-color: #fca5a5; }
.alert-info   { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.alert-success{ background: var(--grn-bg); color: #14532d; border-color: #bbf7d0; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.card-body  { padding: 20px; }
.card-pad   { padding: 24px; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Helper classes untuk inline grid yang perlu collapse */
.g-col2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.g-col3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.g-col4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.g-main-side { display: grid; gap: 20px; grid-template-columns: 1.6fr 1fr; }
.g-side-main { display: grid; gap: 20px; grid-template-columns: 1fr 1.6fr; }
.g-form-side { display: grid; gap: 20px; grid-template-columns: 1fr 300px; }
.g-label-inp { display: grid; gap: 20px; grid-template-columns: 200px 1fr; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap, .tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  background: #EEF8F0; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; background: #fff;
  word-break: break-word; overflow-wrap: anywhere;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #EAF0F6; }

/* ── Admin Shell ─────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; width: 100%; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed; top: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
}

/* Brand / Logo */
.s-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.s-brand-logo {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: contain; flex-shrink: 0;
  background: rgba(255,255,255,.12); padding: 3px;
  border: 1px solid rgba(255,255,255,.15);
}
.s-brand-text { min-width: 0; }
.s-brand-text strong {
  display: block; color: #f1f5f9; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-brand-text span {
  font-size: 10px; color: rgba(255,255,255,.45);
  display: block; margin-top: 1px;
}

/* Wilayah chip */
.s-wilayah {
  margin: 10px 12px 4px;
  padding: 9px 12px; border-radius: 8px;
  background: rgba(238,248,240,.12);
  border: 1px solid rgba(238,248,240,.2);
}
.s-wilayah .wil-label {
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #EEF8F0; margin-bottom: 2px;
}
.s-wilayah .wil-nama {
  font-size: 12px; font-weight: 700; color: #f1f5f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-wilayah .wil-sub {
  font-size: 10px; color: rgba(255,255,255,.45); margin-top: 1px;
}

/* Section label */
.s-section {
  font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.35); font-weight: 700;
  padding: 16px 16px 5px;
}

/* Nav links */
.s-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px;
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .12s; text-decoration: none; border-radius: 0;
  position: relative;
}
.s-link:hover {
  background: var(--sidebar-hover);
  color: #fff; text-decoration: none;
  border-left-color: rgba(255,255,255,.25);
}
.s-link.active {
  background: var(--sidebar-active);
  color: #EEF8F0;
  border-left-color: var(--sidebar-active-border);
  font-weight: 700;
}
.s-link .ic { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.s-divider {
  height: 1px; background: rgba(255,255,255,.08);
  margin: 8px 16px;
}

/* ── Appbar ──────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #ffffff;
}
.appbar {
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.appbar h1 {
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.appbar .spacer { flex: 1; }

/* Bar aksi di bawah appbar, atas konten */
.page-actions-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* User chip */
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; transition: .12s;
}
.user-chip:hover { background: var(--blue-50); border-color: var(--blue-200, #bfdbfe); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-chip .text-sm strong { font-size: 12px; font-weight: 700; display: block; }

/* ── Content area ────────────────────────────────────────────── */
.content {
  flex: 1; padding: 24px;
}

/* ── KPI / Stat cards ───────────────────────────────────────── */
.kpi-row { display: grid; gap: 14px; margin-bottom: 20px; }
.kpi-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue-400);
}
.kpi-card.gold::before  { background: var(--gold); }
.kpi-card.green::before { background: var(--green); }
.kpi-card.red::before   { background: var(--red); }
.kpi-val  { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.kpi-lbl  { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-icon { font-size: 24px; position: absolute; right: 16px; top: 16px; opacity: .25; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.empty-state .ic  { font-size: 40px; margin-bottom: 14px; }
.empty-state h3   { font-size: 16px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.empty-state p    { font-size: 13px; }

/* ── Progress bar ───────────────────────────────────────────── */
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--blue-500); border-radius: 99px; transition: width .4s ease; }
.progress-bar.gold  { background: var(--gold); }
.progress-bar.green { background: var(--green); }

/* ── Public nav — dua layer ──────────────────────────────────── */

/* Layer atas: info bar tipis */
.pub-topbar {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pub-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 34px; display: flex; align-items: center; justify-content: space-between;
}
.pub-topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.pub-topbar a:hover { color: var(--gold); }
.pub-topbar-right { display: flex; align-items: center; gap: 16px; }

/* Layer bawah: brand bar */
.pub-brandbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pub-brandbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 16px;
}
.pub-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pub-brand img { height: 52px; width: auto; }
.pub-brand-text strong {
  display: block; font-size: 16px; font-weight: 800;
  color: var(--blue-900); letter-spacing: -.3px;
}
.pub-brand-text span { font-size: 11px; color: var(--muted); }
.pub-brand-divider {
  width: 1px; height: 40px; background: var(--line); margin: 0 4px;
}

/* Layer navigasi: navbar biru — STICKY */
.pub-navbar {
  background: var(--blue-800);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(10,31,60,.25);
  overflow-x: auto;        /* scroll horizontal jika layar sempit */
  overflow-y: visible;
  scrollbar-width: none;   /* Firefox */
}
.pub-navbar::-webkit-scrollbar { display: none; } /* Chrome */

.pub-navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: stretch; height: 46px;
  min-width: max-content; /* jangan wrap, biarkan scroll */
}

/* Wrapper semua item — SELALU horizontal */
.pub-nav-items {
  display: flex !important; align-items: stretch; flex-direction: row !important;
  flex: 1; min-width: max-content;
}

/* Satu item nav */
.pub-nav-item {
  position: relative;
  display: flex; align-items: stretch;
}
.pub-nav-item > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px; height: 46px;
  color: rgba(255,255,255,.9); font-size: 12.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.pub-nav-item > a:hover,
.pub-nav-item:hover > a {
  color: #fff; background: rgba(255,255,255,.08);
  border-bottom-color: var(--gold);
}
.pub-nav-item > a.active {
  color: var(--gold); border-bottom-color: var(--gold); font-weight: 700;
}
.pub-nav-item > a .caret {
  font-size: 8px; opacity: .55; transition: transform .2s; margin-left: 1px;
}
.pub-nav-item:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.pub-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-600);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 36px rgba(10,31,60,.18);
  min-width: 230px; z-index: 300; padding: 8px 0;
}
.pub-nav-item:hover .pub-dropdown { display: block; }
.pub-dropdown a {
  display: block; padding: 9px 20px;
  color: var(--sub); font-size: 13px; text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.pub-dropdown a:hover {
  background: var(--blue-50); color: var(--blue-700);
  border-left-color: var(--blue-600);
}

/* Login button di ujung kanan */
.pub-nav-login {
  margin-left: auto;
  display: flex; align-items: center; padding: 0 0 0 8px;
  flex-shrink: 0;
}
.pub-nav-login a {
  background: var(--gold); color: var(--blue-900);
  padding: 6px 16px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700; text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.pub-nav-login a:hover { background: #e0b315; }

/* Mobile hamburger — hidden on desktop */
.pub-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: none;
  color: var(--blue-900); font-size: 24px; cursor: pointer;
  margin-left: auto; flex-shrink: 0;
}

/* Footer */
.pub-footer {
  background: var(--blue-900); color: rgba(255,255,255,.75);
  padding: 48px 24px 24px;
}
.pub-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.pub-footer-brand img { height: 56px; margin-bottom: 16px; }
.pub-footer-brand p { font-size: 13px; line-height: 1.7; }
.pub-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: .5px; text-transform: uppercase; }
.pub-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pub-footer ul li a { color: rgba(255,255,255,.65); font-size: 13px; text-decoration: none; transition: color .15s; }
.pub-footer ul li a:hover { color: var(--gold); }
.pub-footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.pub-footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.pub-footer-bottom a:hover { color: var(--gold); }

/* Responsive public nav */
@media (max-width: 768px) {
  .pub-topbar { display: none; }
  .pub-brandbar-inner { height: 58px; }
  .pub-brand img { height: 42px; }
  .pub-brand-text strong { font-size: 14px; }
  .pub-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .pub-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Navbar selalu horizontal scroll — hamburger TIDAK dipakai */
.pub-hamburger { display: none !important; }

/* Legacy aliases (dipakai template lama) */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--blue-900); }
.brand-text span   { font-size: 11px; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--sub); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 13px; }
.nav a:hover { background: var(--blue-50); text-decoration: none; color: var(--blue-700); }
.nav a.active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

/* ── Hero (public) ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: #fff; padding: 72px 24px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1   { font-size: 36px; line-height: 1.15; max-width: 720px; margin-bottom: 16px; font-weight: 800; }
.hero p    { font-size: 16px; opacity: .88; max-width: 580px; margin-bottom: 32px; }
.hero .btn-primary { background: var(--gold); color: var(--blue-900); border-color: var(--gold); }
.hero .btn-primary:hover { background: #e0b315; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── Container / sections ───────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.section-title { font-size: 22px; font-weight: 800; color: var(--blue-900); margin-bottom: 6px; }
.section-sub   { color: var(--muted); margin-bottom: 24px; font-size: 14px; }

/* ── News cards ─────────────────────────────────────────────── */
.news-card .news-img {
  height: 160px; background: linear-gradient(135deg, var(--blue-100), #c7d9f5);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600); font-size: 13px; font-weight: 600;
}
.news-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--blue-900); }
.news-card p  { color: var(--muted); font-size: 13px; }
.news-meta    { color: var(--muted); font-size: 12px; margin-top: 12px; display: flex; gap: 12px; }

/* ── Login page ─────────────────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--land-green) 0%, var(--land-blue) 60%, var(--land-yellow) 100%);
  padding: 24px;
}
.login-card {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 400px;
  padding: 36px 36px 32px;
}
.login-logo {
  text-align: center; margin-bottom: 28px;
}
.login-logo img { height: 56px; margin: 0 auto 10px; }
.login-logo h2  { font-size: 18px; font-weight: 800; color: var(--blue-900); }
.login-logo p   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Filter bar (halaman advokat dll) ───────────────────────── */
.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.filter-bar .form-group { margin-bottom: 0; min-width: 140px; flex: 1; }

/* ── Responsive — Tablet (≤1024px) ─────────────────────────── */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .g-col4  { grid-template-columns: repeat(2, 1fr); }
  .g-col3  { grid-template-columns: repeat(2, 1fr); }
  .g-main-side, .g-side-main { grid-template-columns: 1fr; }
  .g-form-side { grid-template-columns: 1fr; }
}

/* ── Responsive — Mobile (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
  /* Sidebar slide-out */
  .sidebar { transform: translateX(-100%); transition: transform .25s; position: fixed; z-index: 300; height: 100vh; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  #sidebar-toggle { display: flex !important; }

  /* Grid → 1 kolom */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .g-col2, .g-col3, .g-col4 { grid-template-columns: 1fr; }
  .g-main-side, .g-side-main, .g-form-side, .g-label-inp { grid-template-columns: 1fr; }

  /* Content */
  .content { padding: 12px; }
  .card-pad { padding: 16px; }

  /* Appbar */
  .appbar { padding: 0 12px; gap: 8px; }
  .appbar h1 { font-size: 13px; }

  /* Page-actions */
  .page-actions-bar { justify-content: stretch; }
  .page-actions-bar .btn { flex: 1; justify-content: center; }

  /* Table scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 560px; }

  /* Table header */
  .table-head { flex-wrap: wrap; gap: 8px; }

  /* Modal full-width */
  .modal-overlay { padding: 12px; }
  .modal-box { width: 100% !important; max-width: 100% !important; }

  /* Auth */
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-box  { padding: 24px 18px; }

  /* Filter bar advokat scroll */
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; }
  .filter-bar select { min-width: 140px; }
}
