/* ==========================================================================
   SISTEM MONITORING WAKAF PRODUKTIF
   Program Budidaya dan Penanaman Nilam
   File    : assets/css/style.css
   Konsep  : Modern Green Agriculture Dashboard - Elegant, Clean, Premium
   Catatan : Desain konsisten untuk login, dashboard, dan seluruh halaman.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variabel desain (palet hijau daun nilam)
   -------------------------------------------------------------------------- */
:root {
  --wnp-primary: #176B45;
  --wnp-dark: #104B35;
  --wnp-emerald: #20865A;
  --wnp-light: #E8F4EC;
  --wnp-bg: #F5F8F5;
  --wnp-white: #FFFFFF;
  --wnp-text: #23352B;
  --wnp-muted: #75847A;
  --wnp-gold: #C8A75B;

  --wnp-sidebar-w: 272px;
  --wnp-sidebar-w-collapsed: 78px;
  --wnp-topbar-h: 64px;
  --wnp-radius: 14px;
  --wnp-radius-sm: 10px;
  --wnp-shadow: 0 2px 12px rgba(16, 75, 53, .07);
  --wnp-shadow-hover: 0 6px 22px rgba(16, 75, 53, .12);
  --wnp-border: #E3ECE6;

  --wnp-font-head: 'Poppins', 'Segoe UI', sans-serif;
  --wnp-font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* --------------------------------------------------------------------------
   2. Dasar & tipografi
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body.app-body {
  font-family: var(--wnp-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--wnp-text);
  background-color: var(--wnp-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.brand-title, .hero-title, .login-title, .stat-value {
  font-family: var(--wnp-font-head);
  color: var(--wnp-text);
}

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

::selection { background: rgba(32, 134, 90, .25); }

/* Scrollbar halus */
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Tombol & form khas aplikasi
   -------------------------------------------------------------------------- */
.btn-wnp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wnp-primary);
  color: var(--wnp-white);
  font-family: var(--wnp-font-head);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--wnp-primary);
  border-radius: var(--wnp-radius-sm);
  padding: 10px 22px;
  text-decoration: none;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn-wnp:hover {
  background: var(--wnp-dark);
  border-color: var(--wnp-dark);
  color: var(--wnp-white);
  box-shadow: var(--wnp-shadow-hover);
}

.btn-wnp:active { transform: translateY(1px); }

.btn-wnp:focus-visible,
.form-control:focus,
.input-group-text:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 134, 90, .22);
}

.form-label {
  font-family: var(--wnp-font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--wnp-text);
  margin-bottom: 6px;
}

.form-control {
  border: 1px solid var(--wnp-border);
  border-radius: var(--wnp-radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--wnp-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
  border-color: var(--wnp-emerald);
}

.input-group-text {
  background: var(--wnp-light);
  border: 1px solid var(--wnp-border);
  color: var(--wnp-primary);
  border-radius: var(--wnp-radius-sm);
}

/* --------------------------------------------------------------------------
   4. Struktur layout: shell, sidebar, main
   -------------------------------------------------------------------------- */
.app-shell { min-height: 100vh; }

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--wnp-sidebar-w);
  background: linear-gradient(180deg, var(--wnp-dark) 0%, #0C3D2B 100%);
  display: flex;
  flex-direction: column;
  z-index: 1045;
  transition: width .25s ease, transform .25s ease;
  will-change: width, transform;
}

.app-main {
  margin-left: var(--wnp-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  transition: margin-left .25s ease;
}

/* --- Sidebar: brand --- */
.sidebar-brand {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .10);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img { width: 34px; height: 34px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-title {
  font-family: var(--wnp-font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--wnp-white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Sidebar: menu --- */
.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
}

.menu-root { list-style: none; margin: 0; padding: 0; }

.menu-item { margin: 2px 0; }

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.menu-link > i:first-child { font-size: 18px; width: 22px; text-align: center; }

.menu-link:hover { background: rgba(255, 255, 255, .08); color: var(--wnp-white); }

.menu-item.active > .menu-link,
.menu-item.active > .menu-link:hover {
  background: var(--wnp-primary);
  color: var(--wnp-white);
}

.menu-link .chevron {
  margin-left: auto;
  font-size: 12px;
  transition: transform .2s ease;
  opacity: .7;
}

.menu-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.menu-sub {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0 0 0 18px;
}

.menu-sub-item { margin: 1px 0; }

.menu-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .66);
  font-size: 13.5px;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.menu-sub-link:hover { background: rgba(255, 255, 255, .07); color: var(--wnp-white); }

.menu-sub-item.active .menu-sub-link {
  background: rgba(255, 255, 255, .12);
  color: var(--wnp-white);
}

.sub-dot {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background-color .18s ease;
}

.menu-sub-item.active .sub-dot { background: var(--wnp-gold); }

/* --- Sidebar: user box --- */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .12);
}

.user-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wnp-emerald);
  color: var(--wnp-white);
  font-family: var(--wnp-font-head);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-avatar.sm { flex-basis: 32px; width: 32px; height: 32px; font-size: 12.5px; }

.user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wnp-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logout {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
  transition: background-color .18s ease, color .18s ease;
}

.user-logout:hover { background: rgba(255, 87, 87, .25); color: #fff; }

/* --- Sidebar collapsed (desktop) --- */
body.sidebar-collapsed .app-sidebar { width: var(--wnp-sidebar-w-collapsed); }
body.sidebar-collapsed .app-main { margin-left: var(--wnp-sidebar-w-collapsed); }

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .menu-label,
body.sidebar-collapsed .chevron,
body.sidebar-collapsed .user-meta { display: none; }

body.sidebar-collapsed .sidebar-brand { padding: 18px 16px 14px; }
body.sidebar-collapsed .brand-link { justify-content: center; }
body.sidebar-collapsed .menu-link { justify-content: center; padding: 10px; }
body.sidebar-collapsed .menu-sub { display: none; }
body.sidebar-collapsed .sidebar-user { justify-content: center; }
body.sidebar-collapsed .user-logout { display: none; }

/* --- Backdrop mobile --- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 43, 32, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1040;
}

body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   5. Topbar
   -------------------------------------------------------------------------- */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--wnp-topbar-h);
  background: var(--wnp-white);
  border-bottom: 1px solid var(--wnp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
}

.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.btn-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--wnp-border);
  background: var(--wnp-white);
  color: var(--wnp-primary);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background-color .18s ease, color .18s ease;
}

.btn-icon:hover { background: var(--wnp-light); color: var(--wnp-dark); }

.topbar-title { min-width: 0; }

.topbar-title h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-sub {
  font-size: 12px;
  color: var(--wnp-muted);
  display: none;
}

@media (min-width: 768px) {
  .topbar-sub { display: block; }
}

.topbar-right { display: flex; align-items: center; gap: 14px; }

.topbar-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wnp-muted);
}

.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--wnp-white);
  border: 1px solid var(--wnp-border);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wnp-text);
  transition: background-color .18s ease, border-color .18s ease;
}

.topbar-user-btn:hover { background: var(--wnp-light); }
.topbar-user-btn .chev { font-size: 11px; color: var(--wnp-muted); }

.dropdown-menu {
  border: 1px solid var(--wnp-border);
  border-radius: 12px;
  font-size: 14px;
}

.dropdown-item { color: var(--wnp-text); }
.dropdown-item:hover { background: var(--wnp-light); color: var(--wnp-dark); }

/* --------------------------------------------------------------------------
   6. Konten & footer
   -------------------------------------------------------------------------- */
.app-content {
  flex: 1 1 auto;
  padding: 22px;
  max-width: 1560px;
  width: 100%;
}

@media (min-width: 992px) {
  .app-content { padding: 26px 30px; }
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 26px;
  border-top: 1px solid var(--wnp-border);
  background: var(--wnp-white);
  font-size: 12.5px;
  color: var(--wnp-muted);
}

.footer-version { opacity: .85; }

/* --------------------------------------------------------------------------
   7. Kartu umum
   -------------------------------------------------------------------------- */
.card.section-card {
  border: 1px solid var(--wnp-border);
  border-radius: var(--wnp-radius);
  box-shadow: var(--wnp-shadow);
  background: var(--wnp-white);
  padding: 20px 22px;
}

.section-title {
  font-family: var(--wnp-font-head);
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: var(--wnp-text);
}

.section-title i { color: var(--wnp-primary); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stat-note { font-size: 12.5px; color: var(--wnp-muted); }

/* --------------------------------------------------------------------------
   8. Hero banner
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center 55%;
  margin-bottom: 22px;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      rgba(12, 53, 37, .93) 0%,
      rgba(16, 75, 53, .78) 42%,
      rgba(23, 107, 69, .38) 78%,
      rgba(23, 107, 69, .18) 100%);
  z-index: -1;
}

.hero-content { padding: 38px 40px 32px; max-width: 780px; }

.hero-title {
  color: var(--wnp-white);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.hero-subtitle {
  color: #CDE5D6;
  font-family: var(--wnp-font-head);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  margin: 0 0 14px;
}

.hero-desc {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  max-width: 560px;
  margin: 0 0 10px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wnp-gold);
  font-family: var(--wnp-font-head);
  font-weight: 500;
  font-size: 14px;
  border-left: 3px solid var(--wnp-gold);
  padding-left: 10px;
  margin: 0 0 20px;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
  border-radius: 999px;
  font-size: 12.5px;
  padding: 6px 14px;
  backdrop-filter: blur(3px);
}

.hero-chip i { color: #9FD4B7; }

.hero-logos {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.hero-logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, .95);
  font-size: 12.5px;
  font-weight: 500;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-logo-chip img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: rgba(255,255,255,.85); padding: 2px; }

.hero-logo-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, .35);
}

@media (max-width: 767.98px) {
  .hero-content { padding: 26px 20px; }
  .hero-logos {
    position: static;
    margin: 0;
    padding: 18px 20px 0;
    justify-content: flex-start;
  }
  .hero-logo-chip { max-width: 200px; }
}

/* --------------------------------------------------------------------------
   9. Status program (stepper)
   -------------------------------------------------------------------------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wnp-light);
  color: var(--wnp-primary);
  border: 1px solid #CFE6D8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--wnp-font-head);
  padding: 6px 16px;
}

.badge-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wnp-emerald);
  box-shadow: 0 0 0 3px rgba(32, 134, 90, .18);
}

.status-steps {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.status-step {
  flex: 1 0 96px;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  padding: 0 4px;
}

.status-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--wnp-border);
  border-radius: 2px;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wnp-bg);
  border: 2px solid var(--wnp-border);
  color: var(--wnp-muted);
  font-size: 15px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.step-label { font-size: 12.5px; color: var(--wnp-muted); font-weight: 500; }

.status-step.is-current .step-dot {
  background: var(--wnp-primary);
  border-color: var(--wnp-primary);
  color: var(--wnp-white);
  box-shadow: 0 0 0 4px rgba(23, 107, 69, .15);
}

.status-step.is-current .step-label {
  color: var(--wnp-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Kartu statistik
   -------------------------------------------------------------------------- */
.stat-card {
  border: 1px solid var(--wnp-border);
  border-radius: var(--wnp-radius);
  box-shadow: var(--wnp-shadow);
  background: var(--wnp-white);
  padding: 16px 18px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.stat-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--wnp-light);
  color: var(--wnp-primary);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-body { display: flex; flex-direction: column; min-width: 0; }

.stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--wnp-muted);
  margin-bottom: 2px;
}

.stat-value {
  font-family: var(--wnp-font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--wnp-text);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.stat-value.is-empty { color: var(--wnp-muted); }

.stat-empty-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: #FBF6EA;
  border: 1px solid #EFE2C2;
  color: #9C7A2E;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 10px;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  /* Di layar kecil, tampilkan hanya "Belum ada data"; keterangan lengkap via tooltip */
  .stat-empty-hint { display: none; }
  .stat-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
  .stat-card { gap: 10px; padding: 13px 14px; }
  .stat-value { font-size: 19px; }
  .stat-label { font-size: 11.5px; }
}

/* --------------------------------------------------------------------------
   11. Daftar aktivitas
   -------------------------------------------------------------------------- */
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid #EFF4F0;
}

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

.activity-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--wnp-light);
  color: var(--wnp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.activity-body { min-width: 0; }

.activity-desc {
  margin: 0 0 3px;
  font-size: 14px;
  color: var(--wnp-text);
  overflow-wrap: anywhere;
}

.activity-meta {
  font-size: 12px;
  color: var(--wnp-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.activity-role {
  background: var(--wnp-light);
  border-radius: 6px;
  padding: 1px 8px;
  color: var(--wnp-primary);
  font-weight: 500;
}

.activity-sep { opacity: .6; }

/* --------------------------------------------------------------------------
   12. Kondisi kosong & halaman "modul dalam pengembangan"
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 38px 18px;
  color: var(--wnp-muted);
}

.empty-state > i {
  font-size: 40px;
  color: #B9CDC1;
  display: block;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--wnp-font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--wnp-text);
  margin: 0 0 4px;
}

.empty-text {
  max-width: 520px;
  margin: 0 auto 18px;
  font-size: 14px;
}

.coming-card { border-top: 3px solid var(--wnp-primary); }

.coming-inner { text-align: center; padding: 26px 12px 12px; max-width: 640px; margin: 0 auto; }

.coming-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--wnp-light);
  color: var(--wnp-primary);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.coming-badge {
  display: inline-block;
  background: rgba(200, 167, 91, .14);
  color: #8F6F2A;
  border: 1px solid rgba(200, 167, 91, .4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--wnp-font-head);
  padding: 4px 14px;
  margin-bottom: 10px;
}

.coming-title { font-size: 20px; font-weight: 600; margin: 0 0 8px; }

.coming-text { color: var(--wnp-muted); font-size: 14.5px; margin: 0 0 16px; }

.coming-note {
  background: var(--wnp-light);
  border: 1px solid #CFE6D8;
  border-radius: 12px;
  color: var(--wnp-primary);
  font-size: 13.5px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.coming-note i { margin-top: 2px; }

/* --------------------------------------------------------------------------
   13. Halaman 403
   -------------------------------------------------------------------------- */
.forbidden-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.forbidden-card {
  background: var(--wnp-white);
  border-radius: 18px;
  box-shadow: var(--wnp-shadow-hover);
  border-top: 4px solid var(--wnp-primary);
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 40px 34px;
}

.forbidden-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--wnp-light);
  color: var(--wnp-primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forbidden-code {
  font-family: var(--wnp-font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--wnp-primary);
  margin: 0;
  line-height: 1;
}

.forbidden-title { font-size: 19px; font-weight: 600; margin: 8px 0 6px; }

.forbidden-text { color: var(--wnp-muted); font-size: 14px; margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   14. Halaman login
   -------------------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(10, 45, 31, .94) 0%,
      rgba(16, 75, 53, .82) 45%,
      rgba(16, 75, 53, .55) 100%);
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.login-side {
  flex: 1 1 50%;
  align-items: center;
  padding: 40px 56px;
}

.login-side-inner { max-width: 480px; }

.login-side-logo {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.login-side-logo img { width: 42px; height: 42px; object-fit: contain; }

.login-side-title {
  color: var(--wnp-white);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.login-side-subtitle {
  color: #CDE5D6;
  font-family: var(--wnp-font-head);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 18px;
}

.login-side-desc {
  color: rgba(255, 255, 255, .85);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.login-side-tagline {
  color: var(--wnp-gold);
  font-family: var(--wnp-font-head);
  font-weight: 500;
  font-size: 14.5px;
  border-left: 3px solid var(--wnp-gold);
  padding-left: 12px;
  margin: 0;
}

.login-main {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--wnp-white);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(8, 34, 23, .35);
  padding: 34px 32px 26px;
  border-top: 4px solid var(--wnp-primary);
}

.login-brand { text-align: center; margin-bottom: 14px; }

.login-brand-logo {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--wnp-light);
  align-items: center;
  justify-content: center;
}

.login-brand-logo img { width: 40px; height: 40px; object-fit: contain; }

.login-title {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 2px;
}

.login-subtitle {
  text-align: center;
  color: var(--wnp-muted);
  font-size: 13.5px;
  margin: 0 0 22px;
}

.btn-login { padding: 12px 22px; font-size: 15.5px; }

.password-group .form-control { border-left: 0; }
.password-group .input-group-text:first-child { border-right: 0; }

.password-toggle {
  background: var(--wnp-white);
  border: 1px solid var(--wnp-border);
  border-left: 0;
  color: var(--wnp-muted);
  cursor: pointer;
  transition: color .18s ease;
}

.password-toggle:hover { color: var(--wnp-primary); }

.login-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #EFF4F0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  font-size: 12px;
  color: var(--wnp-muted);
}

.login-foot-app { font-weight: 500; color: var(--wnp-text); }

/* --------------------------------------------------------------------------
   15. Alert
   -------------------------------------------------------------------------- */
.wnp-alert {
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
}

.alert-danger  { background: #FDF0EF; border-color: #F3D3CF; color: #8C3A30; }
.alert-success { background: #EFF7F2; border-color: #CDE6D7; color: #1F6B44; }
.alert-warning { background: #FCF7EC; border-color: #EDDDB9; color: #8A6D2B; }
.alert-info    { background: #EFF5F8; border-color: #CFE1EC; color: #2F5D77; }

/* --------------------------------------------------------------------------
   16. Animasi (ringan + hormati reduced motion)
   -------------------------------------------------------------------------- */
@keyframes wnpFadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in    { animation: wnpFadeInUp .5s ease both; }
.fade-in-1  { animation: wnpFadeInUp .5s ease .05s both; }
.fade-in-2  { animation: wnpFadeInUp .5s ease .1s both; }
.fade-in-3  { animation: wnpFadeInUp .5s ease .15s both; }
.fade-in-4  { animation: wnpFadeInUp .5s ease .2s both; }
.fade-in-5  { animation: wnpFadeInUp .5s ease .25s both; }
.fade-in-6  { animation: wnpFadeInUp .5s ease .3s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   17. Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); width: var(--wnp-sidebar-w); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; }

  /* Saat mobile, sidebar selalu tampil penuh (tidak memakai mode collapsed) */
  body.sidebar-collapsed .app-sidebar { width: var(--wnp-sidebar-w); }
  body.sidebar-collapsed .brand-text,
  body.sidebar-collapsed .menu-label,
  body.sidebar-collapsed .chevron,
  body.sidebar-collapsed .user-meta {
    display: flex;
    display: initial;
  }
  body.sidebar-collapsed .brand-link,
  body.sidebar-collapsed .menu-link { justify-content: flex-start; }
  body.sidebar-collapsed .menu-sub { display: block; }
  body.sidebar-collapsed .sidebar-user { justify-content: flex-start; }
  body.sidebar-collapsed .user-logout { display: inline-flex; }
}

@media (max-width: 575.98px) {
  .app-content { padding: 16px 14px; }
  .app-topbar { padding: 0 14px; }
  .app-footer { padding: 12px 16px; justify-content: center; text-align: center; }
  .card.section-card { padding: 16px; }
  .stat-card { padding: 14px; gap: 11px; }
  .stat-value { font-size: 21px; }
  .status-step { flex: 1 0 84px; min-width: 84px; }
  .hero-title { letter-spacing: .3px; }
  .login-card { padding: 28px 22px 22px; }
}

/* Statistik 2 kolom pada layar sangat kecil */
@media (max-width: 460px) {
  .stat-row-2col { row-gap: 12px; }
}

/* Tabel profesional (dipakai modul data pada tahap berikutnya) */
.table-wnp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wnp th {
  background: var(--wnp-light);
  color: var(--wnp-dark);
  font-family: var(--wnp-font-head);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 2px solid #CFE6D8;
  white-space: nowrap;
}

.table-wnp td {
  padding: 11px 14px;
  border-bottom: 1px solid #EFF4F0;
  vertical-align: middle;
}

.table-wnp tbody tr:hover { background: #FAFCFA; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
