@import url('assets/fonts/fonts.css');

/* ============================================================
   COLOR SYSTEM — Inspired by Indonesian Government Ministries
   ============================================================ */
:root {
  /* Primary Palette (Joomla Sekdin Kemenkum site) */
  --merah:    #ec430f;        /* Link & badge highlight accent from Joomla */
  --merah-dk: #c83204;
  --merah-lt: #fdeee9;
  --navy:     #000633;        /* Midnight Navy - Primary from Joomla topbar/nav/custom.css */
  --navy-dk:  #00031a;
  --navy-lt:  #e0e4f2;
  --gold:     #FFD000;        /* Bright Gold - Primary highlight from Joomla topbar & active menu */
  --gold-dk:  #e6bb00;
  --gold-lt:  #fff9d6;
  --footer-bg:#053C5F;        /* Joomla footer & bottom bar navy */

  /* Neutrals */
  --white:    #ffffff;
  --bg:       #a5c0ce;        /* Page background */
  --bg-warm:  #fafaf8;
  --ink:      #111827;        /* Primary text */
  --ink-2:    #374151;        /* Secondary text */
  --muted:    #4b5563;        /* Muted text color */
  --border:   #d1d5db;        /* Default border */
  --border-lt:#e5e7eb;        /* Light border */

  /* Status */
  --success:  #15803d;
  --success-lt:#dcfce7;
  --warning:  #b45309;
  --warning-lt:#fef3c7;
  --info:     #0369a1;
  --info-lt:  #e0f2fe;
  --danger:   #b91c1c;
  --danger-lt:#fee2e2;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,6,51,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 12px rgba(0,6,51,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,6,51,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 48px rgba(0,6,51,0.15), 0 8px 16px rgba(0,0,0,0.08);

  /* Layout */
  --header-h:   96px;
  --topbar-h:   38px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Fonts */
  --font-body:  "Open Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", "Open Sans", sans-serif;

  /* Backward-compatible aliases */
  --blue:        #000633;
  --card:        #ffffff;
  --accent:      #15803d;
  --accent-light:#dcfce7;
  --shadow-soft: 0 4px 12px rgba(0,6,51,0.07);
  --shadow:      0 8px 24px rgba(0,6,51,0.12);
  --gold-deep:   #e6bb00;
  --ink-dark:    #111827;
  --primary:     #000633;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #bcc8d8; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a8bc; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* Ensure headings inside dark backgrounds stay white */
.hero h2, .hero h3, .hero h4,
.page-hero-card h2, .page-hero-card h3, .page-hero-card h4,
.site-footer h2, .site-footer h3, .site-footer h4 {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 13px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ============================================================
   GOVERNMENT TOP BAR (thin red/white ribbon)
   ============================================================ */
/* ============================================================
   GOVERNMENT TOP BAR (Dark Midnight Navy Ribbon with Gold Accent)
   ============================================================ */
.gov-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  gap: 24px;
  z-index: 50;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255, 208, 0, 0.25);
}

.gov-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='38' viewBox='0 0 40 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 38L40 0H0z' fill='rgba(255,208,0,0.04)'/%3E%3C/svg%3E") repeat-x;
  pointer-events: none;
}

.gov-topbar .topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.gov-topbar .topbar-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.gov-topbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 208, 0, 0.3);
}

.gov-topbar .topbar-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.gov-topbar .topbar-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.gov-topbar .topbar-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ============================================================
   MAIN SITE HEADER (Joomla White Navbar with Navy Links & Gold Active Pills)
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: calc(var(--header-h) - var(--topbar-h));
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0, 6, 51, 0.08);
  z-index: 49;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 5vw;
  gap: 24px;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.crest {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 6, 51, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 6, 51, 0.15);
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.brand-title {
  color: #081831;
  font-family: var(--font-body);
}

.brand-title strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--navy);
  font-family: var(--font-heading);
  line-height: 1.25;
}

.brand-title span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: 0.1px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--navy-dk);
  background: rgba(0, 6, 51, 0.06);
  border-color: rgba(0, 6, 51, 0.1);
}

.site-nav a.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-dk);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 208, 0, 0.35);
}

.site-nav a.active:hover {
  background: var(--gold-dk);
  color: var(--navy-dk);
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 5vw 80px;
  min-height: calc(100vh - var(--header-h));
}

/* ============================================================
   HERO SECTION — Beranda
   ============================================================ */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  background: linear-gradient(135deg, var(--navy-dk) 0%, #004080 55%, #005095 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,162,39,0.2);
  margin-bottom: 12px;
}

/* Batik-inspired decorative pattern */
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(201,162,39,0.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--merah) 100%);
}

.hero-content {
  padding: 52px 48px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.35);
  color: #f0d575;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: "🏛";
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: #f0d575;
}

.hero > .hero-content > p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-sidebar {
  background: rgba(0,0,0,0.18);
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.hero-stat:hover {
  background: rgba(255,255,255,0.12);
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #f0d575;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  line-height: 1.4;
}

.status-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 1.8s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 6, 51, 0.25);
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(255, 208, 0, 0.4);
  transform: translateY(-1px);
}

.btn-merah {
  background: var(--merah);
  color: #fff;
  border-color: var(--merah-dk);
  box-shadow: 0 2px 8px rgba(204,0,0,0.25);
}

.btn-merah:hover:not(:disabled) {
  background: var(--merah-dk);
  box-shadow: 0 4px 16px rgba(204,0,0,0.35);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dk);
  border-color: var(--gold-dk);
  box-shadow: 0 2px 8px rgba(201,162,39,0.3);
  font-weight: 700;
}

.btn-gold:hover:not(:disabled) {
  background: var(--gold-dk);
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover:not(:disabled) {
  background: var(--navy-lt);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  border-color: #bcc8d8;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-lt);
}

.section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.section-header .section-pill {
  background: var(--merah);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.section-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border-radius: 99px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 22px;
  margin: 0;
  white-space: nowrap;
}

.section-title div {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201,162,39,0.08) 100%);
  border-radius: 99px;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--navy);
}

.card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Menu Layanan Cards (home) */
.menu-card {
  border-top: 3px solid var(--navy);
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--merah) 100%);
}

.menu-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--navy-lt);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.menu-card h3 {
  font-size: 16.5px;
  font-weight: 700;
}

/* ============================================================
   ANNOUNCEMENT CARDS
   ============================================================ */
.announcement-card {
  border-left: 4px solid var(--navy);
  background: var(--white);
  transition: all 0.25s;
}

.announcement-card:hover {
  border-left-color: var(--merah);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.announcement-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.4;
}

.announcement-body {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 20px;
  align-items: start;
}

.announcement-image {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-lt);
  flex-shrink: 0;
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.announcement-card:hover .announcement-image img {
  transform: scale(1.05);
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.announcement-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================
   PILL / BADGE
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pill-navy {
  background: var(--navy-lt);
  color: var(--navy);
  border: 1px solid rgba(0,51,102,0.15);
}

.pill-merah {
  background: var(--merah-lt);
  color: var(--merah);
  border: 1px solid rgba(204,0,0,0.15);
}

.pill-gold {
  background: var(--gold-lt);
  color: var(--gold-dk);
  border: 1px solid rgba(201,162,39,0.2);
}

/* Default pill (for backwards compatibility) */
.pill:not([class*="pill-"]) {
  background: var(--navy-lt);
  color: var(--navy);
  border: 1px solid rgba(0,51,102,0.12);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-bottom: 32px;
}

.page-hero-card {
  background: linear-gradient(135deg, var(--navy-dk) 0%, #004080 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,162,39,0.2);
  position: relative;
  overflow: hidden;
}

.page-hero-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.12), transparent 70%);
  pointer-events: none;
}

.page-hero-card .pill {
  background: rgba(201,162,39,0.2);
  color: #f0d575;
  border-color: rgba(201,162,39,0.3);
  margin-bottom: 16px;
}

.page-hero-card h1 {
  font-size: clamp(22px, 3vw, 32px);
  color: #ffffff !important;
  margin-bottom: 12px;
}

.page-hero-card p {
  color: rgba(255,255,255,0.88) !important;
  font-size: 14.5px;
  margin: 0;
  max-width: 60ch;
  line-height: 1.65;
}

.page-hero-meta {
  display: grid;
  gap: 16px;
}

.page-hero-stat {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.page-hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.page-hero-stat span {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   FORMS
   ============================================================ */
form {
  display: grid;
  gap: 18px;
}

label {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #374151;
  margin-bottom: 5px;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: all 0.2s;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.12);
}

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

.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================================
   NOTICE / ALERT BOXES
   ============================================================ */
.notice {
  background: var(--info-lt);
  border-left: 4px solid var(--info);
  color: #0c4a6e;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.notice-warning {
  background: var(--warning-lt);
  border-left-color: var(--warning);
  color: #7c2d12;
}

.notice-success {
  background: var(--success-lt);
  border-left-color: var(--success);
  color: #14532d;
}

.error {
  background: var(--danger-lt);
  border-left: 4px solid var(--danger);
  color: #7f1d1d;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  display: none;
}

/* ============================================================
   STATUS BAR
   ============================================================ */
.status-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.status-bar.error { color: #991b1b; }
.status-bar.error .status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.2);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-waiting { background: var(--warning-lt); color: var(--warning); }
.status-process  { background: var(--info-lt);    color: var(--info); }
.status-done     { background: var(--success-lt); color: var(--success); }

/* ============================================================
   ADMIN PANEL & GLASS
   ============================================================ */
.admin-only { display: none; }

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.glass-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,51,102,0.08);
  backdrop-filter: blur(8px);
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  backdrop-filter: blur(4px);
}

.loading-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
  justify-items: center;
  min-width: 240px;
  text-align: center;
}

.loading-card p {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border-lt);
  border-top-color: var(--merah);
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.file-zone:hover {
  border-color: var(--navy);
  background: var(--navy-lt);
}

.file-zone input[type="file"] { display: none; }
.file-zone-icon { font-size: 30px; margin-bottom: 8px; display: block; }
.file-zone-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.file-zone-text strong { color: var(--navy); font-weight: 600; }

.file-name-preview {
  margin-top: 10px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  background: var(--success-lt);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid rgba(21,128,61,0.2);
}

/* ============================================================
   TICKET SUCCESS
   ============================================================ */
.ticket-success {
  background: linear-gradient(135deg, var(--success-lt), #bbf7d0);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(22,163,74,0.07);
  display: none;
}

.ticket-success .ticket-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--success);
  font-weight: 700;
  margin-bottom: 8px;
}

.ticket-success .ticket-code {
  font-size: 26px;
  font-weight: 700;
  color: #14532d;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
}

.ticket-success .ticket-desc {
  font-size: 13.5px;
  color: #166534;
  margin-top: 8px;
  line-height: 1.5;
}

.ticket-error-box {
  background: var(--danger-lt);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 16px;
  display: none;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: #7f1d1d;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.section-stack { display: grid; gap: 28px; }
.panel-stack   { display: grid; gap: 20px; }
.info-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.right-panel { display: grid; gap: 20px; }

.info-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-stat {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
}

.info-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.info-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.info-stat span {
  font-size: 12.5px;
  color: #4b5563;
  font-weight: 500;
}

.hero-panel { display: grid; gap: 24px; }

/* Form panel titles (on white background) */
.form-panel-title,
.side-panel-title {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--navy);
}

.optional-label {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  text-transform: lowercase;
}

.full-submit { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.notice-spaced { margin-top: 20px; }

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dk));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0,51,102,0.25);
}

.step-body strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 3px;
}

.step-body span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   CONTACT & PUBLICATION CARDS
   ============================================================ */
.contact-card h3,
.publication-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.contact-card p,
.publication-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.map-link:hover {
  color: var(--merah);
  border-bottom-color: var(--merah);
}

/* ============================================================
   AUTHENTICATION PAGES
   ============================================================ */
body.auth {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(135deg, #f0f4fa 0%, #e8ecf8 100%);
}

.auth main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: min(440px, 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--merah) 0%, var(--navy) 50%, var(--gold) 100%);
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 24px;
}

.auth-divider {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--border-lt);
}

.auth-footer-text {
  margin-top: 20px;
  font-size: 13.5px;
  color: #374151;
  text-align: center;
}

.auth-footer-text a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--navy);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--white);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left: 4px solid var(--navy);
  min-width: 280px;
  max-width: 380px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateX(24px) scale(0.95);
}

.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: 3px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.toast-message {
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   FOOTER (Joomla #053C5F Deep Navy Footer)
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: #ffffff;
  border-top: 4px solid var(--gold);
}

.footer-top {
  padding: 48px 5vw 36px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr repeat(2, 1fr);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-item {
  height: 52px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 208, 0, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 208, 0, 0.35);
}

.footer-logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-brand-title {
  color: var(--white);
}

.footer-brand-title strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-brand-title span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: #a1a1a1;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-col ul li a:hover {
  color: #ffffff;
  font-weight: 700;
}enter;
  gap: 6px;
}

.footer-col ul li a::before {
  content: "›";
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-col p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.fade-in { animation: slideUpFade 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in.delay { animation-delay: 0.12s; }
.fade-in.delay-2 { animation-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

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

  .hero-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 32px 36px;
  }

  .hero-content {
    padding: 40px 36px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: auto;
    --topbar-h: auto;
  }

  body {
    padding-top: 0; /* Let normal flow handle header on mobile */
  }

  .site-header {
    position: relative;
    top: 0;
    height: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 14px 5vw;
    height: auto;
    gap: 14px;
    text-align: center;
  }

  .brand {
    flex-direction: column;
    gap: 8px;
  }

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

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .site-nav a {
    font-size: 12px;
    padding: 8px 10px;
    white-space: normal;
    text-align: center;
  }

  main {
    padding: 16px 4vw 40px;
  }

  .hero-content { padding: 32px 24px; }
  .hero-sidebar { padding: 24px; }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 36px 5vw 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .gov-topbar {
    position: relative !important;
    height: auto !important;
    padding: 8px 5vw !important;
    text-align: center;
    justify-content: center;
  }

  .gov-topbar .topbar-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .info-stat-row { grid-template-columns: 1fr; }
  .announcement-body { grid-template-columns: 1fr; }
  .announcement-image {
    width: 100%;
    max-width: 280px;
    height: 120px;
  }
}

@media (max-width: 540px) {
  .auth-card { padding: 28px 24px; }
}

/* ============================================================
   Custom Alert Modal — Professional Redesign
   ============================================================ */
.custom-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 35, 0.65);
  backdrop-filter: blur(6px) saturate(1.4);
  -webkit-backdrop-filter: blur(6px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: overlayIn 0.25s ease;
}

.custom-alert-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.48, 0.64, 1);
  position: relative;
}

/* ── Icon Wrap ── */
.custom-alert-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 20px;
}

.custom-alert-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
}

.custom-alert-svg svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
  animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

/* ── Icon Color Variants ── */
.custom-alert-icon-warning .custom-alert-svg {
  background: linear-gradient(135deg, #fff7e6, #ffedbd);
  box-shadow: 0 0 0 8px rgba(255, 193, 7, 0.12), 0 0 0 16px rgba(255, 193, 7, 0.05);
  color: #d97706;
}
.custom-alert-icon-error .custom-alert-svg {
  background: linear-gradient(135deg, #fff0f0, #ffd6d6);
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.1), 0 0 0 16px rgba(220, 38, 38, 0.05);
  color: #dc2626;
}
.custom-alert-icon-success .custom-alert-svg {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.1), 0 0 0 16px rgba(22, 163, 74, 0.05);
  color: #16a34a;
}
.custom-alert-icon-info .custom-alert-svg {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1), 0 0 0 16px rgba(37, 99, 235, 0.05);
  color: #2563eb;
}

/* ── Body ── */
.custom-alert-body {
  padding: 0 32px 8px;
  text-align: center;
}

.custom-alert-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.custom-alert-message {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* ── Actions ── */
.custom-alert-actions {
  padding: 24px 32px 28px;
}

.custom-alert-btn {
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  letter-spacing: 0.1px;
}

.custom-alert-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.custom-alert-btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.custom-alert-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.custom-alert-btn-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.custom-alert-btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.custom-alert-btn-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ── Progress Bar ── */
.custom-alert-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.custom-alert-progress-bar {
  height: 100%;
  border-radius: 0 0 0 0;
}

.custom-alert-progress-warning { background: linear-gradient(90deg, #f59e0b, #d97706); }
.custom-alert-progress-error   { background: linear-gradient(90deg, #ef4444, #dc2626); }
.custom-alert-progress-success { background: linear-gradient(90deg, #22c55e, #16a34a); }
.custom-alert-progress-info    { background: linear-gradient(90deg, #3b82f6, #2563eb); }

/* ── Keyframes ── */
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes overlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes modalIn {
  0%   { transform: scale(0.88) translateY(16px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes modalOut {
  0%   { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0.92) translateY(8px); opacity: 0; }
}
@keyframes iconPop {
  0%   { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (max-width: 480px) {
  .custom-alert-box { border-radius: 16px; }
  .custom-alert-icon-wrap { padding: 28px 20px 16px; }
  .custom-alert-body { padding: 0 24px 8px; }
  .custom-alert-actions { padding: 20px 24px 24px; }
  .custom-alert-title { font-size: 17px; }
  .custom-alert-message { font-size: 14px; }
}


/* Force responsiveness for tables, forms, and cards on mobile globally */
@media (max-width: 768px) {
  /* Tables */
  .users-table-container, 
  .table-section, 
  .dash-table-container,
  div[style*="overflow-x: auto"] {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
  }
  
  table.users-table, 
  table.dash-table {
    min-width: 600px !important;
  }

  /* Grid Layouts */
  .stats-grid, 
  .charts-grid, 
  .metrics-row, 
  .profile-layout, 
  .admin-grid, 
  .inbox-container {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* Forms & Inputs */
  .field-row, 
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Adjust dialog & boxes */
  .auth-card, 
  .custom-alert-box {
    width: 100% !important;
    padding: 20px 16px !important;
    margin: 10px 0;
  }

  /* Sidebar/Detail inbox/pengaduan */
  .inbox-sidebar, 
  .admin-grid > div:first-child {
    height: 280px !important;
    overflow-y: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .inbox-detail, 
  .admin-grid > div:nth-child(2) {
    height: auto !important;
    overflow-y: visible !important;
  }
}

/* Enhanced Active State */
.topbar-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: bold;
  border-bottom: 2px solid #fbbf24;
}
