:root {
  --bg: #eaf2ff; /* biru muda background */
  --navy: #0b1b3a; /* navy */
  --navy2: #102a5a; /* navy terang */
  --blue: #1f6feb; /* modern blue */
  --blue2: #49a1ff; /* biru muda accent */
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --text: #eaf2ff;
  --muted: rgba(255, 255, 255, 0.72);
}

/* ==== Global ==== */
body {
  background: radial-gradient(
    1200px 600px at 18% 0%,
    #dbeaff 0%,
    var(--bg) 45%,
    #d7e8ff 100%
  ) !important;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-size: 14px;
  color: #0b1220;
}

a {
  text-decoration: none;
}

.text-muted {
  color: var(--muted) !important;
}

/* ==== Layout container (biar desktop rapi) ==== */
.container,
.container-fluid {
  max-width: 1200px;
}

/* ==== Navbar / Topbar ==== */
.navbar,
.topbar {
  background: linear-gradient(90deg, var(--navy), var(--navy2)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .btn,
.topbar * {
  color: var(--text) !important;
}
.navbar .nav-link:hover {
  opacity: 0.9;
}

/* ==== Sidebar (kalau kamu pakai) ==== */
.sidebar {
  background: linear-gradient(180deg, var(--navy), var(--navy2));
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.sidebar a {
  color: rgba(234, 242, 255, 0.9);
}
.sidebar a:hover {
  color: #fff;
}

/* ==== Cards (modern glass) ==== */
.cardx {
  background: linear-gradient(
    180deg,
    rgba(11, 27, 58, 0.92),
    rgba(15, 35, 72, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(7, 16, 35, 0.18);
  color: var(--text);
}
.cardx-pad {
  padding: 18px;
}
.cardx-tight {
  padding: 14px;
}

/* ==== KPI ==== */
.kpi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}
.kpi-label {
  font-size: 12.5px;
  color: var(--muted);
}
.kpi-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.05;
  margin-top: 2px;
}

/* ==== Field / Form ==== */
.field-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}
.form-label {
  font-size: 13px;
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 14px !important;
}
.form-control,
.form-select {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(31, 111, 235, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(31, 111, 235, 0.18) !important;
}
.input-group-text {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* ==== Buttons ==== */
.btn {
  border-radius: 14px;
  font-weight: 650;
}
.btn-pill {
  border-radius: 999px;
}

.btn-dark {
  background: linear-gradient(90deg, var(--blue), var(--blue2)) !important;
  border: none !important;
}
.btn-dark:hover {
  filter: brightness(1.05);
}

.btn-outline-dark {
  color: #82909e !important;
  border-color: rgba(234, 242, 255, 0.35) !important;
}
.btn-outline-dark:hover {
  background: #111 !important;
}

/* ==== Tables ==== */
.table-soft {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}
.table-soft td,
.table-soft th {
  font-size: 13px;
}
.table-soft .table-light th {
  background: #f3f7ff !important;
}
.table-light th {
  color: #0b1220;
}
/* angka No di tabel supaya gelap (karena tabel background putih) */
.table-soft .no-col {
  color: #0b1220 !important;
  opacity: 0.75;
  font-weight: 700;
}

/* ==== Alerts ==== */
.alert {
  border-radius: 14px;
}

/* ==== Chart ==== */
canvas {
  max-width: 100%;
}

/* ==== Responsive ==== */
@media (max-width: 992px) {
  .container,
  .container-fluid {
    max-width: 100%;
  }
  .kpi-value {
    font-size: 26px;
  }
}
/* ===========================
   SUPER COMPACT FORM (PREDICT)
   =========================== */

/* jarak antar kolom/card (biar tidak nyambung) */
.row.g-3 {
  --bs-gutter-x: 1.05rem !important;
  --bs-gutter-y: 1.05rem !important;
}

/* card per field: lebih kecil + lebih “flat” + ada ruang */
.field-card {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

/* label + teks bantuan lebih kecil */
.form-label {
  font-size: 12px !important;
  margin-bottom: 5px !important;
}
.field-card .text-muted {
  font-size: 11.5px !important;
  margin-bottom: 7px !important;
  line-height: 1.3 !important;
}

/* input putih diperkecil: tinggi + padding + font */
.form-control,
.form-select {
  height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}

/* input-group (yang ada "tahun", "kg/m²", "indeks") biar kompak */
.input-group {
  gap: 10px !important; /* JARAK agar tidak menempel */
}
.input-group > .form-control {
  border-top-right-radius: 11px !important;
  border-bottom-right-radius: 11px !important;
}
.input-group-text {
  height: 42px !important;
  padding: 8px 12px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* card utama juga sedikit diperkecil */
.cardx-pad {
  padding: 14px !important;
}

/* badge parameter lebih kecil */
.badge {
  font-size: 11px !important;
  padding: 0.3rem 0.5rem !important;
}

/* agar dropdown tidak terlalu tinggi */
.form-select {
  background-position: right 0.85rem center !important;
}
/* ===========================
   COMPACT RESULT CARDS
   =========================== */

/* card utama (result) lebih kecil */
.cardx-pad {
  padding: 12px !important;
  border-radius: 16px !important;
}

/* KPI box lebih kecil */
.kpi-card {
  padding: 10px !important;
  border-radius: 14px !important;
}
.kpi-label {
  font-size: 12px !important;
}
.kpi-value {
  font-size: 24px !important;
}

/* judul section lebih rapat */
.cardx .fw-bold {
  line-height: 1.15 !important;
}

/* tabel: lebih compact */
.table-soft td,
.table-soft th {
  padding: 0.55rem 0.75rem !important;
  font-size: 12.8px !important;
}

/* kurangi jarak antar row */
.row.g-3 {
  --bs-gutter-x: 0.9rem !important;
  --bs-gutter-y: 0.9rem !important;
}

/* donut chart sedikit lebih kecil (opsional) */
#donut {
  max-height: 240px !important;
}
/* ===========================
   AUTH SPLIT (LOGIN/REGISTER)
   =========================== */
.auth-wrap {
  border-radius: 18px;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(7, 16, 35, 0.15);
}

/* kiri putih bersih */
.auth-left {
  background: rgba(255, 255, 255, 0.96);
  padding: 32px 30px;
}
.auth-brand {
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.3px;
  font-size: 16px;
}
.auth-title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 28px;
  color: #0b1220;
}
.auth-subtitle {
  font-size: 13px;
}

/* kanan navy -> blue gradient */
.auth-right {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 32px 26px;
  color: var(--text);
  position: relative;
}
.auth-right-inner {
  max-width: 330px;
}
.auth-right-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}
.auth-right-text {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.85);
}
.auth-right-foot {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(234, 242, 255, 0.7);
}

.btn-outline-light {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* mini card di index */
.auth-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
}

/* responsive: jadi 1 kolom di hp */
@media (max-width: 992px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-right {
    padding: 22px 20px;
  }
  .auth-left {
    padding: 22px 20px;
  }
}
/* ===========================
   AUTH PAGE CENTERING
   =========================== */
.auth-page {
  min-height: calc(100vh - 72px); /* kira-kira tinggi navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0 30px;
}

.auth-shell {
  width: 100%;
  max-width: 980px; /* biar pas di desktop */
  padding: 0 16px; /* aman di layar kecil */
}

.auth-wrap {
  border-radius: 18px;
}

/* split card */
.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(7, 16, 35, 0.15);
}

/* kiri putih */
.auth-left {
  background: rgba(255, 255, 255, 0.96);
  padding: 34px 32px;
}

/* kanan gradient */
.auth-right {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 34px 28px;
  color: var(--text);
  display: flex; /* ini yang bikin konten kanan center vertikal */
  align-items: center;
}

.auth-right-inner {
  max-width: 340px;
}

.auth-brand {
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.3px;
  font-size: 16px;
}

.auth-title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 30px;
  color: #0b1220;
  line-height: 1.05;
}

.auth-subtitle {
  font-size: 13px;
}

.auth-right-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.auth-right-text {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.85);
}

.auth-right-foot {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(234, 242, 255, 0.7);
}

/* tombol login/register biar center dan rapi */
.auth-btn {
  border-radius: 14px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
}

/* outline light */
.btn-outline-light {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* responsive: jadi 1 kolom */
@media (max-width: 992px) {
  .auth-page {
    min-height: auto;
    padding: 14px 0 22px;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-left {
    padding: 22px 20px;
  }
  .auth-right {
    padding: 22px 20px;
  }
}
.auth-switch {
  width: 100%;
  text-align: center;
}

/* ===== Predict rows like reference (label kiri, input kanan) ===== */
.predict-form .cardx {
  background: rgba(12, 26, 56, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.predict-form .form-rowline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.predict-form .form-rowline:last-child {
  border-bottom: none;
}

.predict-form .form-rowlabel {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 13px;
  padding-top: 6px;
}

.predict-form .form-rowfield {
  min-width: 0;
}

.predict-form .rowhint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.predict-form .input-group {
  gap: 8px;
  align-items: center;
}

.predict-form .iconbox,
.predict-form .unitbox,
.predict-form .badgebox {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.predict-form .badgebox {
  font-weight: 700;
  font-size: 12px;
}

.predict-form .form-control,
.predict-form .form-select {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.predict-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.predict-form .form-select option {
  color: #111;
}

/* Panjang input pendek (agar tidak kepanjangan) */
.predict-form .shortline {
  max-width: 380px;
}
.predict-form .bmiline {
  max-width: 560px;
}

.predict-form .btn-primary {
  background: #2f80ff;
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  border-radius: 14px !important;
}

@media (max-width: 992px) {
  .predict-form .form-rowline {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* ====== PERKECIL CARD UTAMA + ISI IKUT ====== */
.cardx.cardx-pad {
  max-width: 600px; /* Ubah: 820 / 880 / 960 sesuai selera */
  margin: 0 auto; /* center */
}

/* kalau card ini khusus halaman predict saja, pakai ini agar tidak ganggu card lain */
.predict-form .cardx.cardx-pad {
  max-width: 920px !important;
  margin: 0 auto !important;
}

/* isi di dalam card jangan maksa full */
.predict-form .form-rowfield {
  align-items: flex-start; /* supaya input tidak stretch */
}

/* input group default jangan full width */
.predict-form .form-rowfield .input-group {
  width: auto !important;
}

/* ====== ATUR LEBAR INPUT SESUAI KEBUTUHAN ====== */
.predict-form .shortline {
  /* usia/berat/tinggi/polusi */
  width: 340px !important;
  max-width: 100% !important;
}

.predict-form .bmiline {
  /* BMI */
  width: 430px !important;
  max-width: 100% !important;
}

/* dropdown jangan terlalu panjang */
.predict-form select.form-select {
  width: 420px !important;
  max-width: 100% !important;
}

/* responsif */
@media (max-width: 992px) {
  .predict-form .cardx.cardx-pad {
    max-width: 100% !important;
  }
  .predict-form .form-rowline {
    grid-template-columns: 1fr !important;
  }
  .predict-form .shortline,
  .predict-form .bmiline,
  .predict-form select.form-select {
    width: 100% !important;
  }
}
/* ===== Dashboard WOW Theme ===== */
.dash-hero {
  background: linear-gradient(
    135deg,
    rgba(10, 22, 48, 0.95),
    rgba(18, 55, 120, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.dash-hero-inner {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dash-hero-kicker {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.2px;
}
.dash-hero-title {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 850;
  font-size: 22px;
  margin-top: 2px;
}
.dash-hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  margin-top: 4px;
  max-width: 620px;
}
.dash-hero-actions .btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* KPI wow */
.kpi-wow {
  border-radius: 20px;
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(12, 26, 56, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}
.kpi-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}
.kpi-name {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}
.kpi-num {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
}

/* accent strip */
.kpi-accent-1 {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 999px rgba(48, 128, 255, 0.06);
}
.kpi-accent-2 {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 999px rgba(75, 220, 190, 0.06);
}
.kpi-accent-3 {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 999px rgba(255, 210, 90, 0.06);
}
.kpi-accent-4 {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 999px rgba(255, 110, 150, 0.06);
}

/* wow card */
.wow-card {
  background: rgba(12, 26, 56, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.cardx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.cardx-title {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  font-size: 14.5px;
}
.cardx-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.3px;
  margin-top: 3px;
}
.cardx-chip {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.chart-wrap {
  height: 260px; /* bikin chart memenuhi card */
  margin-top: 10px;
}
.donut-wrap {
  height: 280px;
}

/* table wow */
.table-wow thead th {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.table-wow tbody td {
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 13px;
}
.td-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}
.mini-foot {
  font-size: 12.5px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* kurangi space dashboard biar padat */
.row.g-3 {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 14px;
}
/* ====== FULL WIDTH khusus card tabel "10 Prediksi Terbaru" ====== */
.dashboard-wide-table {
  width: 100% !important;
  max-width: 100% !important;
}

/* pastikan parent row juga full */
.dashboard-wide-row {
  width: 100% !important;
}

/* tabel isi penuh */
.dashboard-wide-table .table-responsive {
  width: 100% !important;
}

.dashboard-wide-table table {
  width: 100% !important;
}
/* ===== FIX: teks tabel tidak terlihat (tema navy) ===== */
.dashboard-wide-table .table-responsive {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
}

/* table area jadi dark */
.dashboard-wide-table .table-wow {
  background: transparent !important;
}

/* header tabel */
.dashboard-wide-table .table-wow thead th {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* isi tabel */
.dashboard-wide-table .table-wow tbody td {
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* hover row biar ada efek */
.dashboard-wide-table .table-wow tbody tr:hover td {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* teks muted dalam tabel */
.dashboard-wide-table .td-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}
/* ===== APP LAYOUT (Sidebar kiri) ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  background: #d9e9ff;
}
.app-sidebar {
  width: 270px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #071a3a 0%, #0b2a5b 55%, #06142d 100%);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
}
.app-main {
  flex: 1;
  min-width: 0;
}

/* Header sidebar */
.sb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 14px 6px;
}
.sb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}
.sb-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
}
.sb-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* Menu */
.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}
.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: 0.15s ease;
}
.sb-link i {
  font-size: 18px;
}
.sb-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sb-link.active {
  background: linear-gradient(
    90deg,
    rgba(29, 115, 255, 0.35),
    rgba(29, 115, 255, 0.1)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Footer */
.sb-foot {
  margin-top: auto;
  padding: 12px 6px 0;
}
.sb-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
}

/* Responsif */
@media (max-width: 992px) {
  .app-sidebar {
    width: 86px;
  }
  .sb-brand {
    display: none;
  }
  .sb-link span {
    display: none;
  }
  .sb-link {
    justify-content: center;
  }
  .sb-foot {
    display: none;
  }
}
/* =========================================================
   SIDEBAR LOGO / AVATAR
   ========================================================= */

/* container head biar rapi */
.app-sidebar .sb-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* kalau masih ada huruf "A" (fallback) */
.app-sidebar .sb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #eaf2ff;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95),
    rgba(29, 78, 216, 0.9)
  );
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* logo gambar */
.app-sidebar .sb-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

/* kalau logo bentuknya transparan dan ingin terlihat "lebih hidup" */
.app-sidebar .sb-avatar-img {
  padding: 4px; /* bikin ada jarak kecil di dalam */
  object-fit: contain; /* aman untuk logo PNG/SVG */
}

/* teks brand */
.app-sidebar .sb-brand .sb-title {
  font-weight: 800;
  color: #eaf2ff;
  line-height: 1.1;
}

.app-sidebar .sb-brand .sb-sub {
  font-size: 12px;
  color: rgba(234, 242, 255, 0.75);
  margin-top: 2px;
}
/* dashboard: supaya canvas ikut tinggi wrapper */
.chart-wrap,
.donut-wrap {
  position: relative;
  width: 100%;
}
.chart-wrap {
  height: 280px;
}
.donut-wrap {
  height: 320px;
}

/* table scroll: biar scrollbar enak */
.table-responsive::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
  border-radius: 999px;
}
/* ===== Interpretasi Pills (warna beda per komponen) ===== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

/* RISK */
.risk-low {
  background: rgba(40, 200, 120, 0.12);
  border-color: rgba(40, 200, 120, 0.28);
}
.risk-med {
  background: rgba(255, 190, 60, 0.12);
  border-color: rgba(255, 190, 60, 0.28);
}
.risk-high {
  background: rgba(255, 80, 100, 0.12);
  border-color: rgba(255, 80, 100, 0.28);
}
.risk-vhigh {
  background: rgba(200, 70, 255, 0.12);
  border-color: rgba(200, 70, 255, 0.28);
}

/* CONFIDENCE */
.conf-low {
  background: rgba(160, 170, 190, 0.12);
  border-color: rgba(160, 170, 190, 0.25);
}
.conf-med {
  background: rgba(80, 170, 255, 0.12);
  border-color: rgba(80, 170, 255, 0.28);
}
.conf-high {
  background: rgba(60, 210, 180, 0.12);
  border-color: rgba(60, 210, 180, 0.28);
}
.conf-vhigh {
  background: rgba(120, 255, 90, 0.1);
  border-color: rgba(120, 255, 90, 0.22);
}

/* TREND */
.trend-up {
  background: rgba(255, 80, 100, 0.12);
  border-color: rgba(255, 80, 100, 0.28);
} /* memburuk */
.trend-down {
  background: rgba(40, 200, 120, 0.12);
  border-color: rgba(40, 200, 120, 0.28);
} /* membaik */
.trend-stable {
  background: rgba(80, 170, 255, 0.12);
  border-color: rgba(80, 170, 255, 0.28);
} /* stabil */
.trend-warn {
  background: rgba(255, 190, 60, 0.12);
  border-color: rgba(255, 190, 60, 0.28);
} /* tidak konsisten */
.trend-unknown {
  background: rgba(160, 170, 190, 0.12);
  border-color: rgba(160, 170, 190, 0.25);
} /* data kurang */

/* Borderline flag */
.border-flag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
