/* ============================================================
   SERASI e-Election — Stylesheet (tanpa CDN, jalan offline)
   ============================================================ */
:root {
  --biru: #1b64d0; --biru-tua: #134aa0; --toska: #02c0b1; --cyan: #12b0c5;
  --hijau: #52ba59; --oranye: #f59e0b; --pink: #d94673; --merah: #dc2626;
  --abu: #667085; --bg: #f4f8fb; --kartu: #ffffff; --garis: #dde7f1;
  --teks: #142033; --radius: 16px; --shadow: 0 18px 42px rgba(20, 32, 51, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(2,192,177,.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--teks); font-size: 15px; min-height: 100vh;
}
a { color: var(--biru); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 270px;
  background:
    linear-gradient(160deg, rgba(2,192,177,.18), transparent 28%),
    linear-gradient(180deg, var(--biru) 0%, #154fbc 52%, #0e3578 100%);
  color: #eaf5ff; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  box-shadow: 16px 0 40px rgba(27, 100, 208, .18);
}
.sidebar .brand {
  padding: 22px 18px; font-weight: 800; color: #fff; font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  letter-spacing: .2px;
}
.sidebar .brand small { display:block; font-weight:500; font-size:11px; color:rgba(255,255,255,.68); margin-top:3px; }
.sidebar nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-group { margin: 0 0 13px; }
.nav-group + .nav-group {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 8px;
}
.nav-heading {
  color: rgba(255,255,255,.50);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 10px 12px 7px;
  text-transform: uppercase;
}
.sidebar nav a {
  align-items: center; display: flex; gap: 11px;
  padding: 11px 12px; margin: 4px 0; border-radius: 13px;
  color: rgba(255,255,255,.78); font-size: 14px; font-weight: 650;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none;
  transform: translateX(2px);
}
.sidebar nav a.aktif {
  background: rgba(255,255,255,.96); color: var(--biru);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}
.nav-ico {
  width: 19px; height: 19px; flex: 0 0 19px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sidebar .userbox {
  margin: 0 12px 14px; padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  background: rgba(255,255,255,.10); font-size: 13px;
}
.sidebar .userbox b { color: #fff; display: block; }
.sidebar .userbox a { color: #fff; font-size: 12px; font-weight: 700; }

.main { flex: 1; padding: 28px 32px; max-width: 1240px; }
.page-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.2px; }
.page-sub { color: var(--abu); font-size: 13.5px; margin-bottom: 22px; }

/* ---------- Kartu & grid ---------- */
.kartu {
  background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px; }
  .schedule-table { min-width: 980px; }
  .kartu { overflow-x: auto; }
}

.stat { text-align: left; }
.stat .angka { font-size: 28px; font-weight: 850; color: var(--biru); letter-spacing: -.3px; }
.stat .label { color: var(--abu); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--biru), var(--cyan)); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 11px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 22px rgba(27,100,208,.18);
}
.btn:hover { background: linear-gradient(135deg, var(--biru-tua), var(--toska)); text-decoration: none; transform: translateY(-1px); }
.btn-hijau { background: linear-gradient(135deg, var(--hijau), var(--toska)); } .btn-hijau:hover { background: linear-gradient(135deg, #3fa847, #02a99d); }
.btn-merah { background: var(--merah); } .btn-merah:hover { background: #b91c1c; }
.btn-abu   { background: #edf2f7; color: #314156; box-shadow: none; } .btn-abu:hover { background: #dbe5ef; }
.btn-kecil { padding: 6px 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Form ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
input[type=text], input[type=password], input[type=email], input[type=datetime-local],
input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d9e2; border-radius: 11px;
  font-size: 14px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(18,176,197,.18); border-color: var(--cyan);
}
textarea { min-height: 80px; resize: vertical; }

/* ---------- Tabel ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--garis); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--abu); }
tr:hover td { background: #f4fbff; }

.aksi-cell {
  min-width: 184px;
  white-space: nowrap;
}

.aksi-grup {
  align-items: center;
  display: flex;
  gap: 7px;
}

.aksi-grup form {
  display: inline-flex;
  margin: 0;
}

.aksi-btn {
  align-items: center;
  background: #eef4fb;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  padding: 0 10px;
  text-decoration: none;
  transition: background .16s ease, box-shadow .16s ease, color .16s ease, max-width .2s ease, transform .16s ease;
  width: 38px;
}

.aksi-btn svg {
  fill: none;
  flex: 0 0 auto;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 17px;
}

.aksi-btn span {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
  width: 0;
}

.aksi-btn:hover,
.aksi-btn:focus-visible {
  box-shadow: 0 9px 18px rgba(27, 100, 208, .16);
  color: #fff;
  transform: translateY(-1px);
  width: auto;
}

.aksi-btn:hover span,
.aksi-btn:focus-visible span {
  opacity: 1;
  transform: translateX(0);
  width: auto;
}

.aksi-edit {
  background: linear-gradient(135deg, var(--biru), var(--cyan));
  color: #fff;
}

.aksi-status:hover,
.aksi-status:focus-visible {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.aksi-reset:hover,
.aksi-reset:focus-visible {
  background: linear-gradient(135deg, var(--biru), var(--cyan));
}

.aksi-hapus {
  background: #fee2e2;
  color: #dc2626;
}

.aksi-hapus:hover,
.aksi-hapus:focus-visible {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.schedule-table th:nth-child(2),
.schedule-table th:nth-child(3),
.schedule-table td:nth-child(2),
.schedule-table td:nth-child(3) {
  min-width: 250px;
}
.schedule-table td {
  vertical-align: middle;
}
.dt-pair {
  display: grid;
  grid-template-columns: minmax(136px, 1fr) 96px;
  gap: 8px;
  align-items: center;
}
.dt-pair input[type=date],
.dt-pair input[type=time] {
  min-width: 0;
  height: 42px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.b-biru   { background: #e8f1ff; color: var(--biru); }
.b-hijau  { background: #e8f8ea; color: #2f8336; }
.b-oranye { background: #ffedd5; color: #c2410c; }
.b-merah  { background: #fee2e2; color: #b91c1c; }
.b-abu    { background: #eef2f6; color: #4b5563; }

/* ---------- Avatar ---------- */
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--biru), var(--toska));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.avatar.besar { width: 72px; height: 72px; font-size: 24px; }

/* ---------- Progress / bar chart ---------- */
.bar-wrap { background: #e8eef6; border-radius: 999px; height: 12px; overflow: hidden; }
.bar-isi  { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--biru), var(--toska)); transition: width .6s ease; }

/* ---------- Flash ---------- */
.flash {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 500;
}
.flash.success { background: #e8f8ea; color: #14532d; border: 1px solid rgba(82,186,89,.35); }
.flash.error   { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.flash.info    { background: #e8f8fb; color: #0c4a6e; border: 1px solid rgba(18,176,197,.35); }

/* ---------- Timeline tahapan ---------- */
.tahapan-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tahap-item {
  flex: 1; min-width: 150px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--garis); background: #fafbfd; font-size: 13px;
}
.tahap-item.aktif { border-color: var(--cyan); background: #eefcff; box-shadow: 0 10px 24px rgba(18,176,197,.10); }
.tahap-item.selesai { border-color: rgba(82,186,89,.45); background: #f0fbf2; }
.tahap-item b { display: block; margin-bottom: 3px; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(2,192,177,.30), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(82,186,89,.25), transparent 26%),
    linear-gradient(135deg, #103a80 0%, var(--biru) 52%, var(--cyan) 100%);
  padding: 20px;
}
.login-box {
  background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.50);
  border-radius: 24px; padding: 38px; width: 100%; max-width: 430px;
  box-shadow: 0 28px 70px rgba(5, 27, 74, .34);
}
.login-box h1 { font-size: 24px; margin-bottom: 4px; color: var(--biru); }
.login-box .sub { color: var(--abu); font-size: 13px; margin-bottom: 18px; }

/* ---------- Kartu calon ---------- */
.calon-kartu { text-align: center; }
.calon-kartu .nomor {
  display: inline-block; background: linear-gradient(135deg, var(--biru), var(--toska)); color: #fff; font-weight: 800;
  border-radius: 8px; padding: 2px 12px; font-size: 13px; margin-bottom: 10px;
}
.detail-vm { text-align: left; margin-top: 14px; font-size: 13.5px; }
.detail-vm h4 { font-size: 12px; text-transform: uppercase; color: var(--abu); margin: 10px 0 3px; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.muted { color: var(--abu); font-size: 13px; }
.mt { margin-top: 14px; } .mb0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }

/* ============================================================
   Modern shape refresh
   Lapisan ini membuat UI lebih lembut, tidak terlalu kotak/kaku.
   ============================================================ */
:root {
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --soft-shadow: 0 18px 44px rgba(15, 34, 64, .075);
  --lift-shadow: 0 24px 60px rgba(27, 100, 208, .14);
}

.main {
  padding: 32px 38px;
}

.page-title {
  font-size: 28px;
  line-height: 1.15;
}

.page-sub {
  font-size: 14.5px;
  margin-bottom: 26px;
}

.kartu {
  border-color: rgba(27, 100, 208, .12);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
}

.kartu:hover {
  box-shadow: 0 22px 54px rgba(15, 34, 64, .10);
}

.grid-4 > .kartu.stat,
.grid-3 > .kartu.stat {
  min-height: 116px;
}

.stat {
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,252,255,.94)),
    radial-gradient(circle at top right, rgba(2,192,177,.16), transparent 34%);
}

.stat:before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--biru), var(--toska));
  margin-bottom: 18px;
}

.stat .angka {
  font-size: 31px;
}

.sidebar {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  margin-right: 4px;
}

.sidebar .brand {
  padding: 26px 22px;
}

.sidebar nav {
  padding: 18px 14px;
}

.nav-group {
  margin-bottom: 15px;
}

.nav-heading {
  margin-left: 14px;
}

.sidebar nav a {
  border: 1px solid transparent;
  border-radius: 18px;
  margin: 6px 0;
  padding: 13px 14px;
}

.sidebar nav a:hover {
  border-color: rgba(255,255,255,.16);
}

.sidebar nav a.aktif {
  border-color: rgba(255,255,255,.70);
  border-radius: 18px;
}

.sidebar .userbox {
  border-radius: 22px;
  margin: 0 14px 16px;
}

.btn {
  border-radius: 999px;
  padding: 10px 20px;
}

.btn-kecil {
  border-radius: 999px;
  padding: 7px 13px;
}

.btn-abu {
  background: #edf4fb;
}

.badge {
  border-radius: 999px;
  padding: 5px 12px;
}

input[type=text], input[type=password], input[type=email], input[type=datetime-local],
input[type=number], input[type=file], input[type=date], input[type=time], select, textarea {
  border-color: #cfdae8;
  border-radius: 16px;
  padding: 11px 14px;
}

textarea {
  border-radius: 18px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: #f7fbff;
}

th:first-child {
  border-top-left-radius: 16px;
}

th:last-child {
  border-top-right-radius: 16px;
}

td {
  background: #fff;
}

tr:hover td {
  background: #f5fbff;
}

.tahapan-list {
  gap: 12px;
}

.tahap-item {
  border-radius: 20px;
  min-height: 116px;
  padding: 16px;
}

.tahap-item.aktif {
  background:
    linear-gradient(145deg, rgba(232,248,255,.95), rgba(255,255,255,.95));
}

.tahap-item.selesai {
  background:
    linear-gradient(145deg, rgba(240,251,242,.95), rgba(255,255,255,.95));
}

.bar-wrap {
  height: 13px;
}

.login-box {
  border-radius: 30px;
}

.calon-kartu {
  border-radius: var(--radius-lg);
}

.calon-kartu .nomor {
  border-radius: 999px;
  padding: 5px 14px;
}

.avatar,
.avatar.besar {
  border-radius: 24px;
}

.dt-pair input[type=date],
.dt-pair input[type=time] {
  border-radius: 14px;
}

.table-pager {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 0;
  padding: 0;
  width: 100%;
}

.pager-right {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  width: auto;
}

.pager-info {
  color: #6b7890;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pager-size-group {
  background: #f4f8fc;
  border: 1px solid #dce8f4;
  border-radius: 999px;
  display: flex;
  gap: 2px;
  padding: 4px;
}

.pager-btn {
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  color: #314156;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-height: 38px;
  min-width: 42px;
  padding: 10px 16px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
}

.pager-size-btn {
  background: transparent;
  border-color: transparent;
  min-height: 34px;
  min-width: 38px;
  padding: 9px 14px;
}

.pager-nav {
  background: linear-gradient(135deg, #1b64d0 0%, #12b0c5 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(18, 176, 197, .24);
  color: #fff;
  font-size: 21px;
  min-width: 42px;
  padding: 6px 14px 10px;
}

.pager-size-btn.active,
.pager-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1b64d0 0%, #12b0c5 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(18, 176, 197, .24);
  color: #fff;
}

.pager-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pager-btn:disabled {
  background: #f3f6fa;
  border-color: #e1e8f0;
  color: #a7b1c0;
  cursor: not-allowed;
  opacity: 1;
}

@media (max-width: 900px) {
  .main {
    padding: 18px;
  }
  .kartu {
    border-radius: 20px;
  }
  .table-pager {
    justify-content: flex-end;
  }
  .pager-right {
    flex-wrap: wrap;
    max-width: 100%;
  }
}

/* Login profesional SERASI */
.login-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(2,192,177,.22), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(82,186,89,.16), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #eaf4fb 100%);
}
.login-box-pro {
  max-width: 470px;
  padding: 34px;
  border-radius: 26px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.login-brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 74px;
}
.login-brand h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}
.login-brand .sub {
  margin-top: 7px;
  line-height: 1.45;
}
.login-form-title {
  color: var(--teks);
  font-size: 17px;
  font-weight: 800;
  margin: 4px 0 14px;
}
.login-note {
  color: var(--abu);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  text-align: center;
}
@media (max-width: 520px) {
  .login-box-pro {
    padding: 26px 22px;
  }
  .login-brand {
    align-items: flex-start;
  }
  .login-brand img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
  .login-brand h1 {
    font-size: 21px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .app {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 0 0 22px 22px;
    margin-right: 0;
  }

  .sidebar .brand {
    padding: 18px 20px;
  }

  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px 14px;
  }

  .nav-group {
    display: contents;
  }

  .nav-heading {
    display: none;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
    padding: 10px 13px;
  }

  .sidebar .userbox {
    margin: 0 12px 14px;
  }

  .main {
    padding: 16px 12px;
    max-width: none;
  }

  .flex.spread {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .page-title {
    font-size: 21px;
  }

  .page-sub {
    font-size: 13px;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .kartu {
    border-radius: 18px;
    padding: 16px;
    overflow-x: auto;
  }

  table {
    min-width: 760px;
  }

  .table-actions,
  .aksi,
  td:last-child {
    white-space: nowrap;
  }

  .btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  input[type=text],
  input[type=password],
  input[type=email],
  input[type=datetime-local],
  input[type=number],
  input[type=file],
  input[type=date],
  input[type=time],
  select,
  textarea {
    font-size: 14px;
  }

  .login-wrap {
    padding: 18px;
  }

  .login-box-pro,
  .login-box {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
  }

  .login-brand {
    align-items: flex-start;
    gap: 12px;
  }

  .login-brand img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .login-brand h1 {
    font-size: 21px;
  }
}
/* Perbaikan tampilan HP */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    display: none !important;
  }

  .main {
    width: 100%;
    max-width: 100%;
    padding: 22px 18px;
    overflow-x: hidden;
  }

  .flex,
  .flex.spread {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .page-title {
    font-size: 32px;
    line-height: 1.12;
  }

  .page-sub {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .kartu {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 18px;
    overflow-x: auto;
  }

  .stat .angka {
    font-size: 44px;
  }

  .stat .label {
    font-size: 17px;
    line-height: 1.35;
  }

  table {
    min-width: 720px;
  }

  input,
  select,
  textarea,
  button,
  .btn {
    max-width: 100%;
  }
}
/* Menu bar khusus HP */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .app {
    display: block;
  }

  .sidebar {
    display: none !important;
  }

  .mobile-menu {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #1b64d0, #12b0c5);
    box-shadow: 0 10px 24px rgba(27,100,208,.18);
  }

  .mobile-menu a {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-menu a.aktif {
    background: #fff;
    color: #1b64d0;
  }

  .mobile-menu a:hover {
    text-decoration: none;
  }

 .mobile-menu .nav-ico {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  flex: 0 0 16px;
}

  .main {
    padding-top: 18px;
  }
}
/* Sidebar premium clean */
@media (min-width: 769px) {
  .sidebar {
    width: 292px;
    background: linear-gradient(180deg, #0f2f63 0%, #123f86 48%, #0c2550 100%);
    border-radius: 0;
    box-shadow: 10px 0 30px rgba(15, 47, 99, .14);
    margin-right: 0;
  }

  .sidebar .brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-size: 19px;
    letter-spacing: 0;
  }

  .sidebar .brand small {
    color: rgba(255,255,255,.68);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 6px;
  }

  .sidebar nav {
    padding: 18px 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
  }

  .sidebar nav::-webkit-scrollbar {
    width: 6px;
  }

  .sidebar nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    border-radius: 999px;
  }

  .nav-group {
    margin-bottom: 16px;
  }

  .nav-group + .nav-group {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 12px;
  }

  .nav-heading {
    color: rgba(255,255,255,.46);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    margin: 0 12px 8px;
  }

  .sidebar nav a {
    min-height: 44px;
    margin: 3px 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    box-shadow: none;
    transform: none;
  }

  .sidebar nav a:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.08);
    color: #fff;
    transform: none;
  }

  .sidebar nav a.aktif {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
    color: #fff;
    box-shadow: inset 3px 0 0 #02c0b1;
  }

  .sidebar nav a.aktif .nav-ico {
    color: #55efe4;
  }

  .nav-ico {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .sidebar .userbox {
    margin: 0 16px 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.45;
  }

  .sidebar .userbox b {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .sidebar .userbox a {
    display: inline-flex;
    margin-top: 8px;
    color: #fff;
  }
}
/* Mobile app bar SERASI */
.mobile-topbar,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }

  .app {
    display: block;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid #dce8f3;
    box-shadow: 0 10px 28px rgba(15, 47, 99, .10);
    backdrop-filter: blur(10px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 42px;
  }

  .mobile-brand b {
    display: block;
    color: #0f2f63;
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
  }

  .mobile-brand span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #1b64d0, #12b0c5);
    cursor: pointer;
    padding: 0 11px;
  }

  .mobile-menu-btn span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    z-index: 100;
    display: none;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #dce8f3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 47, 99, .22);
  }

  body.mobile-nav-open .mobile-nav-panel {
    display: block;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .mobile-nav-head b {
    color: #0f2f63;
    font-size: 15px;
  }

  .mobile-nav-head button {
    border: 0;
    border-radius: 999px;
    background: #edf4fb;
    color: #1b64d0;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 11px;
  }

  .mobile-nav-group {
    padding: 10px 0;
    border-top: 1px solid #eef3f8;
  }

  .mobile-nav-title {
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    margin: 0 0 8px 4px;
    text-transform: uppercase;
  }

  .mobile-nav-panel a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 14px;
    color: #22314a;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-nav-panel a.aktif {
    background: linear-gradient(135deg, rgba(27,100,208,.12), rgba(18,176,197,.12));
    color: #1b64d0;
  }

  .mobile-nav-panel a:hover {
    text-decoration: none;
  }

  .mobile-nav-panel .nav-ico {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
  }

  .mobile-logout {
    margin-top: 10px;
    background: #fff1f2;
    color: #dc2626 !important;
  }

  .main {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
  }
}
