/* =========================================================================
   File: assets/css/elink360.css
   /* Efek Wordmark JPG di Sidebar (Merespon Light/Dark Mode Otomatis) */
.dashboard.dark .brand-name-img {
  /* Di Dark Mode: Hilangkan background hitam */
  mix-blend-mode: screen;
}

.dashboard:not(.dark) .brand-name-img {
  /* Di Light Mode: Balikkan warna hitam jadi putih, sesuaikan hue warna, agar background putih menyatu sempurna */
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
  mix-blend-mode: multiply;
}
   Standar Visual UI ELINK360 (Light Mode, Dark Mode, Desktop & Mobile)
   ========================================================================= */
:root {
  --navy: #07132f;
  --blue: #0755d9;
  --cyan: #08bdf2;
  --green: #00c98b;
  --white: #ffffff;
  --muted: #b9c8e2;
}

* { box-sizing: border-box; }
html { width: 100%; }
body {
  width: 100%;
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* ---------------- WELCOME SCREEN & LOGIN SCREEN ---------------- */
.welcome-screen {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background-color: #020917; 
}

/* Pengaturan Gambar Latar Belakang */
.background-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.background-portrait { display: none; }

.welcome-content {
  display: flex;
  width: min(90%, 760px);
  flex-direction: column;
  align-items: center;
  padding: 20px 0 60px;
  text-align: center;
  z-index: 10;
}

/* Pengaturan Logo */
.logo-icon {
  display: block;
  width: clamp(100px, 15vw, 130px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 26%;
  box-shadow: 0 12px 32px rgba(8, 189, 242, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-icon:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(8, 189, 242, 0.4);
}

/* Pengaturan Wordmark (Teks ELINK360 JPG) */
.wordmark-img {
  display: block;
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  /* Menghilangkan background hitam pada JPG agar menyatu dengan latar navy */
  mix-blend-mode: screen; 
}

.tagline {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.accent-line {
  width: 60px;
  height: 3px;
  margin: 30px 0 45px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0755d9, #08bdf2, #00c98b);
}

.access-button {
  display: flex;
  width: min(100%, 380px);
  height: 60px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(185, 200, 226, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.access-button:hover {
  border-color: #08bdf2;
  background: rgba(8, 189, 242, 0.08);
  box-shadow: 0 0 20px rgba(8, 189, 242, 0.15);
  transform: translateY(-2px);
}

.arrow {
  color: #08bdf2;
  font-size: 20px;
  font-weight: 600;
}

/* Responsif Mobile untuk menukar background Desktop ke Portrait */
/* Pengaturan Footer Welcome Screen */
.welcome-footer {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  font-size: 13.5px;
  color: #b9c8e2;
  z-index: 20;
}

.footer-brand {
  font-weight: 700;
  color: #08bdf2;
}
@media (max-width: 1023px) {
  .background-landscape { display: none; }
  .background-portrait { display: block; }
  .logo-icon { width: clamp(90px, 20vw, 110px); }
  .wordmark-img { width: min(100%, 300px); }
}
/* ---------------- DASHBOARD CORE THEME (LIGHT & DARK) ---------------- */
.dashboard {
  --app-bg: #e8f3fd;
  --side-bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f3f8fd;
  --ink: #07132f;
  --sub: #506580;
  --border: #d9e5f0;
  --accent: #0755d9;
  --accent-ink: #ffffff;
  --active-bg: #e9f3ff;
  --shadow: 0 12px 36px rgba(15, 48, 87, .055);
  --footer-accent: #08bdf2;
  display: flex;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  color: var(--ink);
  background: var(--app-bg);
  overflow-x: hidden;
}

/* Efek Cahaya Atmosferik Light Mode (Sesuai Prinsip Desain 90-95% Area Tenang) */
.dashboard:not(.dark)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 3%, rgba(8, 189, 242, .16), transparent 32%),
              radial-gradient(circle at 9% 8%, rgba(178, 218, 251, .65), transparent 37%),
              radial-gradient(circle at 92% 91%, rgba(0, 201, 139, .08), transparent 31%);
}
.dashboard:not(.dark) .topbar {
  background: rgba(249, 252, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: #bce9f6;
  box-shadow: 0 5px 20px rgba(7, 85, 217, .045);
}
.dashboard:not(.dark) .side { border-right-color: #d4e7f4; }
.dashboard:not(.dark) .feature-panel {
  background: linear-gradient(135deg, #ffffff 0%, #e8f3fd 75%, #dcf4fc 100%);
}
.dashboard:not(.dark) .panel:not(.feature-panel),
.dashboard:not(.dark) .quick-card,
.dashboard:not(.dark) .stat-card {
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.dashboard:not(.dark) .panel:not(.feature-panel):hover,
.dashboard:not(.dark) .quick-card:hover,
.dashboard:not(.dark) .stat-card:hover {
  border-color: #a6e2f3;
  box-shadow: 0 15px 36px rgba(15, 78, 131, .09);
}

/* Dark Mode Palette (#07132F & #0B1F3D) */
.dashboard.dark {
  --app-bg: #07132f;
  --side-bg: #08182f;
  --surface: #102a4c;
  --surface-alt: #0b1f3d;
  --ink: #f1f6ff;
  --sub: #a9bbd5;
  --border: rgba(8, 189, 242, .28);
  --accent: #08bdf2;
  --accent-ink: #ffffff;
  --active-bg: rgba(7, 85, 217, .28);
  --shadow: 0 14px 38px rgba(2, 10, 28, .28);
  --footer-accent: #00c98b;
}
.dashboard.dark::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 92% 4%, rgba(0, 201, 139, .18), transparent 27%),
              radial-gradient(circle at 8% 5%, rgba(8, 189, 242, .15), transparent 25%),
              radial-gradient(circle at 92% 96%, rgba(8, 189, 242, .14), transparent 29%);
  pointer-events: none;
  z-index: 0;
}
.dashboard.dark .topbar { border-bottom-color: rgba(8, 189, 242, .45); }
.dashboard.dark .panel,
.dashboard.dark .stat-card { border-color: rgba(8, 189, 242, .32); }
.dashboard.dark .feature-panel {
  border-left-color: #00c98b;
  box-shadow: 0 0 26px rgba(0, 201, 139, .14), var(--shadow);
}
.dashboard.dark .quick-card { border-color: rgba(8, 189, 242, .42); }
.dashboard.dark .search-box { border-color: rgba(8, 189, 242, .28); background: #091d39; }
.dashboard.dark .search-box:focus-within { border-color: #00c98b; box-shadow: 0 0 0 2px rgba(0, 201, 139, .18); }
.dashboard.dark .side { border-right-color: rgba(8, 189, 242, .35); }
.dashboard.dark .nav-item.active { color: #08bdf2; }
.dashboard.dark .nav-item.active::before { background: #00c98b; box-shadow: 0 0 10px rgba(0, 201, 139, .35); }

.dashboard > * { position: relative; z-index: 1; }
.dashboard button, .dashboard input, .dashboard select, .dashboard textarea { font: inherit; }
.dashboard button { cursor: pointer; }
.dashboard :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------------- SIDEBAR NAVIGATION ---------------- */
.side {
  width: 264px;
  flex: 0 0 264px;
  background: var(--side-bg);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: width .25s, flex-basis .25s, transform .25s;
  z-index: 30;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 9px 10px;
  min-height: 52px;
  text-decoration: none;
}
.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 12px rgba(7, 85, 217, 0.28);
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  color: var(--ink);
}
.brand-name span { color: var(--cyan); }
.side-label {
  color: var(--sub);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 0 13px;
  margin-bottom: 6px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--sub);
  text-align: left;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s, color .18s;
  position: relative;
}
.nav-item:hover { background: var(--surface-alt); color: var(--ink); }
.nav-item.active { background: var(--active-bg); color: var(--accent); font-weight: 700; }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3.5px;
  border-radius: 4px;
  background: linear-gradient(var(--cyan), var(--green));
}
.nav-item svg { flex: none; width: 20px; height: 20px; stroke-width: 2; }
.nav-text { min-width: 0; overflow-wrap: anywhere; }
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--sub);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.collapse-btn:hover { background: var(--surface-alt); color: var(--ink); }

/* Sidebar Collapsed Mode */
.dashboard.collapsed .side { width: 78px; flex-basis: 78px; }
.dashboard.collapsed .brand-name,
.dashboard.collapsed .side-label,
.dashboard.collapsed .nav-text,
.dashboard.collapsed .collapse-text,
.dashboard.collapsed .license-Sidebar-box { display: none; }
.dashboard.collapsed .brand-row,
.dashboard.collapsed .nav-item,
.dashboard.collapsed .collapse-btn { justify-content: center; padding-left: 0; padding-right: 0; }
.dashboard.collapsed .collapse-btn svg { transform: rotate(180deg); }

/* ---------------- TOPBAR & WORKSPACE ---------------- */
.workspace {
  min-width: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.topbar {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(18px, 3vw, 40px);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.top-title small {
  display: block;
  color: var(--sub);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.top-actions { display: flex; gap: 9px; align-items: center; min-width: 0; }
.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}
.icon-btn:hover { border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.9; }
.notif-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--surface);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 42px;
  width: 215px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--sub);
}
.search-box svg { width: 16px; height: 16px; flex: none; }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}
.search-box input::placeholder { color: var(--sub); }
.search-clear {
  background: transparent;
  border: 0;
  color: var(--sub);
  font-size: 16px;
  line-height: 1;
}
.profile-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 5px 11px 5px 6px;
  min-height: 42px;
  font-size: 12.5px;
  font-weight: 700;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}
.popover-wrap { position: relative; }
.popover {
  position: absolute;
  right: 0;
  top: 50px;
  width: min(280px, calc(100vw - 24px));
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  z-index: 35;
}
.popover p { color: var(--sub); font-size: 12px; line-height: 1.55; margin: 6px 0 0; }
.popover-action {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface-alt);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}
.popover-action:hover { border-color: var(--cyan); }

/* ---------------- PAGE CONTENT & VISUAL STANDARD COMPONENTS ---------------- */
.page-content {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
  display: flex;
  flex-direction: column;
}
.heading-block { margin-bottom: 22px; }
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-heading {
  margin: 6px 0 6px;
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.page-intro { color: var(--sub); font-size: 13.5px; margin: 0; line-height: 1.6; }

/* 4 Kartu Statistik Utama (Sesuai Gambar Standar Visual Dashboard) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.blue { background: rgba(7, 85, 217, 0.12); color: #0755d9; }
.dashboard.dark .stat-icon.blue { background: rgba(8, 189, 242, 0.16); color: #08bdf2; }
.stat-icon.green { background: rgba(0, 201, 139, 0.14); color: #00c98b; }
.stat-icon.cyan { background: rgba(8, 189, 242, 0.15); color: #08bdf2; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--sub); font-weight: 600; margin-top: 3px; }

/* Panel, Grid & Agenda Sekolah */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.panel-title svg { width: 19px; height: 19px; color: var(--accent); }
.agenda-list { display: flex; flex-direction: column; gap: 14px; }
.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.agenda-item:last-child { border-bottom: 0; padding-bottom: 0; }
.agenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}
.agenda-dot.blue { background: var(--blue); box-shadow: 0 0 8px rgba(7, 85, 217, 0.4); }
.agenda-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(0, 201, 139, 0.4); }
.agenda-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(8, 189, 242, 0.4); }
.agenda-dot.amber { background: #f59e0b; }

/* Kartu Informasi Terbaru */
.info-feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.info-illust {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(7, 85, 217, 0.15), rgba(8, 189, 242, 0.25));
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.info-illust svg { width: 28px; height: 28px; }

/* Tabel, Form, Tombol & Badge Standar ELINK360 */
.table-wrap { width: 100%; overflow-x: auto; }
.elink-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.elink-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-alt);
  color: var(--sub);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.elink-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}
.elink-table tr:hover td { background: var(--surface-alt); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), #0968ff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(7, 85, 217, 0.25);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(8, 189, 242, 0.35); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--cyan); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-blue { background: rgba(7, 85, 217, 0.14); color: var(--accent); }
.badge-green { background: rgba(0, 201, 139, 0.16); color: #00a874; }
.dashboard.dark .badge-green { color: #00c98b; }
.badge-amber { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.badge-red { background: rgba(239, 68, 68, 0.16); color: #ef4444; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.form-control {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13px;
}
.form-control:focus { border-color: var(--cyan); outline: none; }

.flash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}
.flash-success { background: rgba(0, 201, 139, 0.15); border: 1px solid var(--green); color: var(--ink); }
.flash-warning { background: rgba(245, 158, 11, 0.16); border: 1px solid #f59e0b; color: var(--ink); }
.flash-error { background: rgba(239, 68, 68, 0.16); border: 1px solid #ef4444; color: var(--ink); }

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px solid var(--footer-accent);
  color: var(--sub);
  font-size: 11.5px;
}
.dashboard-footer-brand { color: var(--footer-accent); font-weight: 700; }
.drawer-backdrop, .mobile-menu { display: none; }

/* ---------------- RESPONSIVE TABLET & MOBILE ---------------- */
/* Pengaturan Footer Welcome Screen */
.welcome-footer {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  font-size: 13.5px;
  color: #b9c8e2;
  z-index: 20;
}

.footer-brand {
  font-weight: 700;
  color: #08bdf2;
}
@media (max-width: 1023px) {
  .side {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(280px, 84vw) !important;
    transform: translateX(-105%);
    overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .dashboard.drawer-open .side { transform: translateX(0); }
  .side-bottom { display: none; }
  .mobile-menu { display: inline-flex; }
  .dashboard.drawer-open .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 35, .52);
    border: 0;
    z-index: 25;
    width: 100%;
  }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .topbar { min-height: 64px; padding: 8px 14px; gap: 8px; }
  .top-title { font-size: 13.5px; }
  .top-title small { display: none; }
  .search-box {
    width: 42px; height: 42px; padding: 0 11px; gap: 0;
    transition: width .2s;
  }
  .search-box input { width: 0; opacity: 0; padding: 0; }
  .search-box:focus-within {
    position: absolute; top: 11px; left: 62px; right: 14px; z-index: 40;
    width: auto; gap: 8px; padding: 0 12px;
  }
  .search-box:focus-within input { width: 100%; opacity: 1; }
  .profile-name, .profile-btn > svg { display: none; }
  .profile-btn { padding: 5px; justify-content: center; width: 42px; height: 42px; }

  /* 4 Kartu Kompak Sejajar di Mobile (Sesuai Gambar Tampilan Mobile Responsif) */
  .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 12px 6px;
    gap: 7px;
    border-radius: 13px;
  }
  .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-value { font-size: 16px; }
  .stat-label { font-size: 10px; line-height: 1.2; }
  .page-content { padding: 18px 14px 36px; }
}