/* ============================================================
   SUARAKU — Stylesheet Utama
   Dibuat dengan CSS3 murni (tanpa framework) agar tampilan
   sepenuhnya bisa dikustomisasi dan mudah dipelajari.
   Struktur:
   1. Variabel & Reset
   2. Utilitas & Tombol
   3. Navbar
   4. Hero & Section Umum
   5. Kartu Laporan & Badge
   6. Filter, Empty State
   7. Detail Laporan (timeline, komentar, lightbox)
   8. Form Laporan
   9. Dashboard & Tabel
   10. Admin
   11. Toast, Modal, Footer
   12. Animasi & Responsif
   ============================================================ */

/* ---------- 1. Variabel & Reset ---------- */
:root {
  /* Palet utama: indigo/biru tua + aksen oranye */
  --primary-900: #1e1b4b;
  --primary-800: #312e81;
  --primary-700: #3730a3;
  --primary-600: #4f46e5;
  --primary-500: #6366f1;
  --primary-300: #a5b4fc;
  --primary-soft: #eef2ff;
  --accent: #f97316;
  --accent-soft: #fff7ed;

  --bg: #f6f7fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --text: #1f2340;
  --text-soft: #3f4468;
  --muted: #6b7280;
  --border: #e4e7f0;
  --header-bg: rgba(255, 255, 255, 0.86);

  /* Badge status */
  --status-dikirim-bg: #e8edf5;
  --status-dikirim-text: #475569;
  --status-verifikasi-bg: #fef3c7;
  --status-verifikasi-text: #b45309;
  --status-proses-bg: #dbeafe;
  --status-proses-text: #1d4ed8;
  --status-selesai-bg: #dcfce7;
  --status-selesai-text: #15803d;
  --status-ditolak-bg: #fee2e2;
  --status-ditolak-text: #b91c1c;

  /* Badge prioritas */
  --prioritas-rendah-bg: #d1fae5;
  --prioritas-rendah-text: #047857;
  --prioritas-sedang-bg: #fef3c7;
  --prioritas-sedang-text: #b45309;
  --prioritas-tinggi-bg: #ffedd5;
  --prioritas-tinggi-text: #c2410c;
  --prioritas-kritis-bg: #fee2e2;
  --prioritas-kritis-text: #b91c1c;

  --danger: #dc2626;
  --success: #16a34a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(30, 27, 75, 0.05);
  --shadow: 0 10px 30px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(30, 27, 75, 0.35);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Poppins", var(--font-body);
  --transition: 0.25s ease;
}

/* Tema gelap — diaktifkan lewat atribut data-theme pada <html> */
html[data-theme="dark"] {
  --primary-soft: #262a4d;
  --accent-soft: #3a2a1c;
  --bg: #0e1220;
  --bg-soft: #171c30;
  --surface: #1a2035;
  --surface-2: #1e2540;
  --text: #e8eaf6;
  --text-soft: #c7cbe4;
  --muted: #98a2b8;
  --border: #2b3352;
  --header-bg: rgba(15, 19, 34, 0.86);

  --status-dikirim-bg: rgba(148, 163, 184, 0.18);
  --status-dikirim-text: #cbd5e1;
  --status-verifikasi-bg: rgba(245, 158, 11, 0.18);
  --status-verifikasi-text: #fcd34d;
  --status-proses-bg: rgba(59, 130, 246, 0.2);
  --status-proses-text: #93c5fd;
  --status-selesai-bg: rgba(34, 197, 94, 0.18);
  --status-selesai-text: #86efac;
  --status-ditolak-bg: rgba(239, 68, 68, 0.2);
  --status-ditolak-text: #fca5a5;

  --prioritas-rendah-bg: rgba(16, 185, 129, 0.18);
  --prioritas-rendah-text: #6ee7b7;
  --prioritas-sedang-bg: rgba(245, 158, 11, 0.18);
  --prioritas-sedang-text: #fcd34d;
  --prioritas-tinggi-bg: rgba(249, 115, 22, 0.2);
  --prioritas-tinggi-text: #fdba74;
  --prioritas-kritis-bg: rgba(239, 68, 68, 0.2);
  --prioritas-kritis-text: #fca5a5;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--primary-500);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
}

ul, ol {
  margin: 0;
  padding-left: 1.2rem;
}

:focus-visible {
  outline: 3px solid var(--primary-300);
  outline-offset: 2px;
}

::selection {
  background: var(--primary-600);
  color: #fff;
}

/* ---------- 2. Utilitas & Tombol ---------- */
.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.page-section {
  padding: 2.4rem 0 4rem;
}

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.section-cta {
  margin-top: 1.6rem;
}

.footer-reset {
  margin-top: 0.9rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), border-color var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(79, 70, 229, 0.95);
}

.btn-accent {
  background: linear-gradient(135deg, #fb923c, var(--accent));
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(249, 115, 22, 0.9);
}

.btn-accent:hover {
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
}

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

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  color: #fff;
  background: #b91c1c;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.83rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-vote:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-soft);
}

.btn-vote.aktif {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(249, 115, 22, 0.9);
}

.btn-vote.aktif:hover {
  background: #ea580c;
  color: #fff;
}

.btn-vote i {
  font-size: 0.9em;
}

/* ---------- 3. Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px -10px rgba(49, 46, 129, 0.9);
}

.brand-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary-600);
}

.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-600);
  font-weight: 700;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 0.35rem;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  transform: rotate(-12deg);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 4. Hero & Section Umum ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(1000px 480px at 88% -10%, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(700px 420px at -10% 20%, rgba(249, 115, 22, 0.1), transparent 60%),
    var(--bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  width: 180px;
  height: 180px;
  right: 4%;
  bottom: -70px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
}

.hero::after {
  width: 120px;
  height: 120px;
  left: 3%;
  top: 40px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, #fb923c, var(--accent) 60%, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note i {
  color: var(--success);
}

.hero-visual {
  position: relative;
  padding: 0.5rem 0.5rem 1.5rem;
}

.mock-card {
  position: relative;
  z-index: 2;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.mock-kategori {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 0.72rem;
  font-weight: 700;
}

.mock-img {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: var(--primary-soft);
}

.mock-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.mock-card h3 a {
  color: var(--text);
}

.mock-card h3 a:hover {
  color: var(--primary-600);
}

.mock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.mock-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 600;
  animation: floatChip 6s ease-in-out infinite;
}

.float-chip i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
}

.float-chip.chip-1 {
  top: 4%;
  left: -4%;
  animation-delay: 0.8s;
}

.float-chip.chip-2 {
  right: -3%;
  bottom: 6%;
  animation-delay: 1.6s;
}

.float-chip.chip-2 i {
  background: #dcfce7;
  color: #15803d;
}

html[data-theme="dark"] .float-chip.chip-2 i {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

/* Statistik ringkas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 1.15rem;
}

.stat-card:nth-child(2) .stat-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.stat-card:nth-child(3) .stat-icon {
  background: #dcfce7;
  color: #15803d;
}

html[data-theme="dark"] .stat-card:nth-child(3) .stat-icon {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.stat-card:nth-child(4) .stat-icon {
  background: #fef3c7;
  color: #b45309;
}

html[data-theme="dark"] .stat-card:nth-child(4) .stat-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Cara kerja */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  position: relative;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  top: 1.2rem;
  right: 1.3rem;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-soft);
}

html[data-theme="dark"] .step-number {
  color: var(--border);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, 0.9);
}

.step-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Top 5 */
.top-list {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.top-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.top-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow);
}

.top-rank {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
}

.top-item:nth-child(1) .top-rank {
  background: linear-gradient(135deg, #fbbf24, var(--accent));
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(249, 115, 22, 0.9);
}

.top-content {
  min-width: 0;
}

.top-content h3 {
  overflow: hidden;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-content h3 a {
  color: var(--text);
}

.top-content h3 a:hover {
  color: var(--primary-600);
}

.top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.top-score {
  text-align: right;
}

.top-score strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--primary-600);
}

.top-score small {
  color: var(--muted);
  font-size: 0.7rem;
}

.top-score .badge {
  margin-top: 0.3rem;
}

/* Kategori */
.kategori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kategori-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.kategori-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow);
  color: var(--text);
}

.kategori-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 1.1rem;
}

.kategori-card:nth-child(3n + 2) .kategori-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.kategori-card:nth-child(3n) .kategori-icon {
  background: #dcfce7;
  color: #15803d;
}

html[data-theme="dark"] .kategori-card:nth-child(3n) .kategori-icon {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.kategori-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.kategori-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Page hero (halaman dalam) */
.page-hero {
  padding: 3rem 0 2.2rem;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.page-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary-600);
}

.breadcrumb i {
  font-size: 0.6rem;
}

/* ---------- 5. Kartu Laporan & Badge ---------- */
.laporan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.laporan-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.laporan-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--primary-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.laporan-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.card-prioritas {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem 1.15rem;
}

.card-kategori {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary-600);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.card-meta i {
  color: var(--primary-500);
  font-size: 0.82em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
}

.card-date {
  color: var(--muted);
  font-size: 0.76rem;
}

/* Badge umum */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.no-dot::before {
  display: none;
}

.status-dikirim {
  background: var(--status-dikirim-bg);
  color: var(--status-dikirim-text);
}

.status-verifikasi {
  background: var(--status-verifikasi-bg);
  color: var(--status-verifikasi-text);
}

.status-proses {
  background: var(--status-proses-bg);
  color: var(--status-proses-text);
}

.status-selesai {
  background: var(--status-selesai-bg);
  color: var(--status-selesai-text);
}

.status-ditolak {
  background: var(--status-ditolak-bg);
  color: var(--status-ditolak-text);
}

.prioritas-rendah {
  background: var(--prioritas-rendah-bg);
  color: var(--prioritas-rendah-text);
}

.prioritas-sedang {
  background: var(--prioritas-sedang-bg);
  color: var(--prioritas-sedang-text);
}

.prioritas-tinggi {
  background: var(--prioritas-tinggi-bg);
  color: var(--prioritas-tinggi-text);
}

.prioritas-kritis {
  background: var(--prioritas-kritis-bg);
  color: var(--prioritas-kritis-text);
}

/* ---------- 6. Filter & Empty State ---------- */
.filter-panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.search-wrap {
  position: relative;
}

.search-wrap i {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-wrap .form-control {
  padding-left: 2.5rem;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 1.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.results-bar strong {
  color: var(--text);
}

.results-bar p {
  margin: 0;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.75rem;
}

.active-filter button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.6rem;
}

.active-filter button:hover {
  background: var(--danger);
  color: #fff;
}

.empty-state {
  padding: 3.5rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-500);
  font-size: 1.8rem;
}

.empty-state h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 7. Detail Laporan ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
  gap: 1.75rem;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.detail-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.detail-card > h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 1.12rem;
}

.detail-card > h2 i {
  color: var(--primary-500);
  font-size: 0.95em;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.detail-title {
  margin-bottom: 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-meta i {
  color: var(--primary-500);
}

.detail-desc {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.galeri {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.galeri.single {
  grid-template-columns: 1fr;
}

.galeri button {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
}

.galeri img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.galeri button:hover img {
  transform: scale(1.04);
}

.no-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.2rem 1rem;
  margin-top: 1.3rem;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.no-foto i {
  font-size: 1.5rem;
  color: var(--primary-300);
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: 92px;
}

.vote-panel {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(249, 115, 22, 0.4), transparent 70%),
    linear-gradient(140deg, var(--primary-700), var(--primary-900));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.vote-panel .vote-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vote-panel .vote-number {
  font-family: var(--font-head);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.vote-panel .btn-vote-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-700);
  font-weight: 700;
  transition: all var(--transition);
}

.vote-panel .btn-vote-large:hover {
  background: #fef3c7;
  color: #b45309;
  transform: translateY(-2px);
}

.vote-panel .btn-vote-large.aktif {
  background: var(--accent);
  color: #fff;
}

.vote-panel .vote-note {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

.skor-box {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}

.skor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.skor-head strong {
  color: #fff;
  font-size: 1rem;
}

.skor-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.skor-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, var(--accent));
  transition: width 0.5s ease;
}

.skor-bar + .skor-head {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.info-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.84rem;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.info-row dt i {
  color: var(--primary-500);
  font-size: 0.85em;
}

.info-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  margin-left: 0.55rem;
  padding: 0 0 1.5rem 1.7rem;
  border-left: 2px solid var(--border);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -9px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline li.tl-dikirim::before { background: #64748b; }
.timeline li.tl-verifikasi::before { background: #f59e0b; }
.timeline li.tl-proses::before { background: #3b82f6; }
.timeline li.tl-selesai::before { background: #22c55e; }
.timeline li.tl-ditolak::before { background: #ef4444; }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.15rem;
}

.tl-head strong {
  font-size: 0.92rem;
}

.tl-date {
  color: var(--muted);
  font-size: 0.76rem;
}

.tl-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Komentar */
.comment-form {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
}

.comment-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
}

.comment-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comment-item:nth-child(3n + 2) .avatar {
  background: linear-gradient(135deg, #fb923c, var(--accent));
}

.comment-item:nth-child(3n) .avatar {
  background: linear-gradient(135deg, #10b981, #047857);
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  margin-bottom: 0.2rem;
}

.comment-head strong {
  font-size: 0.9rem;
}

.comment-head time {
  color: var(--muted);
  font-size: 0.74rem;
}

.comment-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.comment-empty {
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.admin-comments {
  margin-top: 1.25rem;
}

.admin-comment-list {
  display: grid;
  gap: 1rem;
}

.admin-comment-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.admin-comment-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.admin-comment-context a {
  color: var(--primary-600);
  font-weight: 700;
}

.admin-comment-context span,
.admin-reply .comment-head time {
  color: var(--muted);
}

.admin-comment-message p,
.admin-reply p,
.detail-reply p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.admin-replies,
.detail-replies {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--primary-soft);
}

.admin-reply,
.detail-reply {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.admin-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.admin-reply-form textarea {
  min-height: 68px;
  resize: vertical;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 12, 24, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1000px, 94vw);
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: var(--danger);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  max-width: 90vw;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-align: center;
  transform: translateX(-50%);
}

/* ---------- 8. Form Laporan ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: start;
  gap: 1.6rem;
}

.form-card {
  padding: 1.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-label .required {
  color: var(--accent);
}

.counter {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.counter.warn {
  color: var(--danger);
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.93rem;
  transition: border-color var(--transition), box-shadow var(--transition),
    background-color var(--transition);
}

.form-control::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--primary-300);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 11px;
}

html[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398a2b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger) !important;
  background-color: rgba(220, 38, 38, 0.03);
}

.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.error-text {
  display: none;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 500;
}

.form-group.has-error .error-text {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hint-text {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.radio-card {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.45rem;
  min-width: 110px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.87rem;
  cursor: pointer;
  transition: all var(--transition);
}

.radio-card:hover {
  border-color: var(--primary-300);
}

.radio-card input {
  accent-color: var(--primary-600);
  margin: 0;
}

.radio-card:has(input:checked) {
  border-color: var(--primary-500);
  background: var(--primary-soft);
  color: var(--primary-600);
  font-weight: 700;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.8rem 1rem;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary-500);
  background: var(--primary-soft);
  color: var(--primary-600);
}

.upload-zone i {
  font-size: 1.7rem;
  color: var(--primary-500);
}

.upload-zone strong {
  color: var(--text);
  font-size: 0.9rem;
}

.upload-zone small {
  font-size: 0.76rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.preview-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  transition: background var(--transition);
}

.preview-remove:hover {
  background: var(--danger);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--primary-600);
  flex: 0 0 auto;
}

.checkbox-row label {
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.5;
}

.checkbox-row small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}

.form-actions .btn-primary {
  flex: 1;
}

.side-tips {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.side-tips h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.side-tips h2 i {
  color: var(--accent);
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips-list li {
  display: flex;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.tips-list i {
  margin-top: 0.25rem;
  color: var(--success);
  font-size: 0.8rem;
}

.side-note {
  padding: 1.1rem;
  border: 1px dashed var(--primary-300);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-600);
  font-size: 0.8rem;
  line-height: 1.6;
}

.side-note strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- 9. Dashboard & Tabel ---------- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.summary-icon.biru { background: var(--primary-soft); color: var(--primary-600); }
.summary-icon.kuning { background: #fef3c7; color: #b45309; }
.summary-icon.hijau { background: #dcfce7; color: #15803d; }
.summary-icon.merah { background: #fee2e2; color: #b91c1c; }

html[data-theme="dark"] .summary-icon.kuning { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
html[data-theme="dark"] .summary-icon.hijau { background: rgba(34, 197, 94, 0.18); color: #86efac; }
html[data-theme="dark"] .summary-icon.merah { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.summary-value {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
}

.summary-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.chart-card {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  margin-bottom: 0.9rem;
}

.chart-head h2 {
  margin: 0;
  font-size: 1rem;
}

.chart-head small {
  color: var(--muted);
  font-size: 0.76rem;
}

.chart-wrap {
  position: relative;
  height: 290px;
}

.chart-wrap.tall {
  height: 340px;
}

.chart-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}

.chart-fallback i {
  margin-bottom: 0.4rem;
  color: var(--primary-500);
  font-size: 1.4rem;
}

.dashboard-table {
  margin-top: 1.25rem;
}

.table-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.data-table th {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child { border-radius: 0 8px 8px 0; }

.data-table td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition);
}

.data-table tbody tr:hover td {
  background: var(--bg-soft);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-title {
  max-width: 330px;
}

.cell-title a {
  color: var(--text);
  font-weight: 600;
}

.cell-title a:hover {
  color: var(--primary-600);
}

.cell-sub {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
}

tr:nth-child(1) .rank {
  background: linear-gradient(135deg, #fbbf24, var(--accent));
  color: #fff;
}

.vote-cell {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.vote-cell i {
  margin-right: 0.3rem;
  color: var(--accent);
  font-size: 0.85em;
}

/* ---------- 10. Admin ---------- */
.admin-login {
  max-width: 440px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 14px 26px -14px rgba(79, 70, 229, 0.9);
}

.admin-login h2 {
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
  text-align: center;
}

.admin-login > p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.admin-login form .form-group {
  margin-bottom: 1rem;
}

.login-hint {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.login-hint code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-600);
  font-weight: 700;
}

.login-hint .btn {
  margin-left: 0.2rem;
  vertical-align: middle;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-user .avatar {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}

.admin-user strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.admin-user small {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.admin-toolbar .search-wrap {
  flex: 1 1 240px;
}

.admin-toolbar .form-select {
  width: auto;
  min-width: 160px;
}

.admin-toolbar .form-control[type="date"] {
  width: auto;
  min-width: 165px;
}

.admin-toolbar .btn {
  flex: 0 0 auto;
}

.admin-bar .admin-toolbar {
  margin-bottom: 0;
}

.admin-table select {
  min-width: 150px;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  font-size: 0.82rem;
}

.admin-table .catatan-input {
  min-width: 190px;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
}

.admin-table .btn-simpan {
  white-space: nowrap;
}

.admin-table {
  min-width: 1180px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.mini-stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mini-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.2;
}

.mini-stat small {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- 11. Toast, Modal, Footer ---------- */
.toast-container {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(370px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-500);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.87rem;
  line-height: 1.5;
  pointer-events: auto;
  animation: toastIn 0.32s ease both;
}

.toast.sukses { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: #3b82f6; }

.toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.toast.sukses .toast-icon { background: #dcfce7; color: #15803d; }
.toast.error .toast-icon { background: #fee2e2; color: #b91c1c; }
.toast.info .toast-icon { background: #dbeafe; color: #1d4ed8; }

html[data-theme="dark"] .toast.sukses .toast-icon { background: rgba(34, 197, 94, 0.18); color: #86efac; }
html[data-theme="dark"] .toast.error .toast-icon { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
html[data-theme="dark"] .toast.info .toast-icon { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-body strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.85rem;
}

.toast-body span {
  color: var(--muted);
  font-size: 0.8rem;
}

.toast-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
}

.toast.hide {
  animation: toastOut 0.25s ease forwards;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 12, 24, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(430px, 100%);
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition);
}

.modal.open .modal-box {
  transform: none;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: #fef3c7;
  color: #b45309;
  font-size: 1.15rem;
}

.modal-box h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.modal-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.site-footer {
  margin-top: 0;
  padding: 3.5rem 0 0;
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .site-footer {
  background: #0a0e19;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand {
  margin-bottom: 0.9rem;
  color: #fff;
}

.footer-brand p {
  max-width: 300px;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h3 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: inherit;
  text-align: left;
  transition: color var(--transition);
}

.footer-links button:hover {
  color: #fdba74;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  line-height: 1.6;
}

.footer-contact i {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.82em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 12. Animasi & Responsif ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.05); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
  }

  .float-chip.chip-1 { left: 0; }
  .float-chip.chip-2 { right: 0; }

  .stats-grid,
  .summary-grid,
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .kategori-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .side-col {
    position: static;
    flex-direction: column;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), visibility var(--transition),
      transform var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 0.7rem 0.9rem;
  }

  .theme-toggle {
    width: 100%;
    height: 42px;
    margin: 0.3rem 0 0;
    border-radius: 10px;
  }

  .nav-cta {
    width: 100%;
    margin: 0.2rem 0 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1160px, 100% - 2rem);
  }

  .section {
    padding: 3.2rem 0;
  }

  .page-hero {
    padding: 2.4rem 0 1.8rem;
  }

  .filter-top,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .form-card {
    padding: 1.25rem;
  }

  .top-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-score {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    text-align: left;
  }

  .top-content h3 {
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .detail-title {
    font-size: 1.45rem;
  }

  .galeri {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 15px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .hero {
    padding: 2.2rem 0 2.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 160px;
  }

  .hero-note {
    gap: 0.6rem;
    font-size: 0.76rem;
  }

  .float-chip {
    display: none;
  }

  .mock-card {
    animation: none;
  }

  .stats-grid,
  .summary-grid,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.1rem;
  }

  .kategori-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .kategori-card {
    padding: 1rem;
  }

  .kategori-icon {
    width: 40px;
    height: 40px;
  }

  .laporan-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    padding: 1rem;
  }

  .results-bar {
    font-size: 0.8rem;
  }

  .form-card {
    padding: 1.1rem;
  }

  .radio-group {
    flex-direction: column;
  }

  .radio-card {
    min-width: 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .detail-card {
    padding: 1.1rem;
  }

  .detail-meta {
    font-size: 0.78rem;
  }

  .vote-panel {
    padding: 1.2rem;
  }

  .comment-form .form-row {
    grid-template-columns: 1fr;
  }

  .admin-reply-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .chart-card,
  .table-card {
    padding: 1rem;
  }

  .chart-wrap {
    height: 250px;
  }

  .chart-wrap.tall {
    height: 290px;
  }

  .admin-login {
    padding: 1.4rem;
  }

  .toast-container {
    right: 1rem;
    bottom: 1rem;
    width: calc(100vw - 2rem);
  }
}

/* Hormati preferensi pengguna yang tidak ingin animasi */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
