/*!
 * NOVA — tema visual baru
 * Lapisan override di atas Hope UI. Hanya mengubah tampilan:
 * tidak ada selector/ID/atribut JS yang diubah, sehingga seluruh fungsi tetap sama.
 * Dimuat PALING AKHIR setelah customizer.min.css & rtl.min.css.
 * Warna tema dari customizer admin (body.theme-color-*) tetap berfungsi
 * karena selector body.theme-color-* lebih spesifik dari :root.
 */

/* ============ 1. Token desain ============ */
:root {
  --bs-primary: #5b4cf0;
  --bs-primary-rgb: 91, 76, 240;
  --bs-secondary: #0f172a;
  --bs-secondary-rgb: 15, 23, 42;
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-link-color: #5b4cf0;
  --bs-link-hover-color: #4338ca;
  --bs-font-sans-serif: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 0.9375rem;
  --bs-body-color: #475569;
  --bs-body-color-rgb: 71, 85, 105;
  --bs-body-bg: #f4f5fb;
  --bs-body-bg-rgb: 244, 245, 251;
  --bs-border-color: #e6e8f2;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.25rem;

  --nv-ink: #0b1020;
  --nv-ink-2: #131a30;
  --nv-heading: #0f172a;
  --nv-muted: #8590a6;
  --nv-surface: #ffffff;
  --nv-surface-2: #f8f9fd;
  --nv-line: #e6e8f2;
  --nv-grad: linear-gradient(135deg, #5b4cf0 0%, #8b5cf6 55%, #c084fc 100%);
  --nv-grad-soft: linear-gradient(135deg, rgba(91, 76, 240, .10), rgba(192, 132, 252, .10));
  --nv-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --nv-shadow: 0 10px 30px -12px rgba(30, 27, 75, .14), 0 2px 6px rgba(15, 23, 42, .04);
  --nv-shadow-lg: 0 24px 48px -16px rgba(30, 27, 75, .28);
  --nv-radius: 1rem;
}

body.dark {
  --bs-body-color: #a3adc2;
  --bs-body-color-rgb: 163, 173, 194;
  --bs-body-bg: #0a0e1c;
  --bs-body-bg-rgb: 10, 14, 28;
  --bs-border-color: #1e2742;
  --nv-heading: #f1f5f9;
  --nv-muted: #7c88a3;
  --nv-surface: #111830;
  --nv-surface-2: #0e1428;
  --nv-line: #1e2742;
  --nv-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

/* ============ 2. Dasar ============ */
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--bs-font-sans-serif);
  font-size: var(--bs-body-font-size);
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  letter-spacing: -0.005em;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--nv-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.text-gray, .text-muted { color: var(--nv-muted) !important; }
a { text-underline-offset: 3px; }
::selection { background: rgba(91, 76, 240, .22); }

/* scrollbar halus */
* { scrollbar-width: thin; scrollbar-color: #c9cde0 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9cde0; border-radius: 8px; }
body.dark ::-webkit-scrollbar-thumb { background: #2a3556; }

/* loader */
#loading { background: var(--bs-body-bg); }
.simple-loader .loader-body { border-color: rgba(91, 76, 240, .15); border-top-color: var(--bs-primary); }

/* ============ 3. Sidebar ============ */
.sidebar {
  --nv-side-text: #9aa4bf;
  background: linear-gradient(180deg, var(--nv-ink) 0%, var(--nv-ink-2) 100%);
  color: var(--nv-side-text);
  border-right: 1px solid rgba(255, 255, 255, .04);
  box-shadow: 8px 0 40px -20px rgba(11, 16, 32, .5);
}
.sidebar .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 1.15rem 1rem;
  margin-bottom: .75rem;
}
.sidebar .navbar-brand .logo-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  margin-left: .65rem !important;
}
.sidebar .sidebar-toggle {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: none;
}
.sidebar .sidebar-toggle:hover { background: var(--bs-primary); }

.sidebar-base .nav-item { color: var(--nv-side-text); }
.sidebar-base .nav-item.static-item .default-icon {
  color: #5f6b8a;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sidebar-base .nav-item .nav-link {
  color: var(--nv-side-text);
  font-weight: 500;
  font-size: .9rem;
  border-radius: .75rem !important;
  margin-right: .25rem;
}
.sidebar-base .nav-item .nav-link i,
.sidebar-base .nav-item .nav-link svg { opacity: .85; }
.sidebar-base .nav-item .nav-link:hover:not(.active):not(.disabled) {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.sidebar.sidebar-base .nav-item .nav-link.active,
.sidebar.sidebar-base .nav-item .nav-link[aria-expanded=true] {
  color: #fff !important;
  background: var(--nv-grad) !important;
  box-shadow: 0 8px 20px -8px rgba(91, 76, 240, .7);
}
.sidebar-base .nav-item .nav-link.active i,
.sidebar-base .nav-item .nav-link.active svg { opacity: 1; }
.sidebar .hr-horizontal,
.sidebar hr { background: none; border-top: 1px solid rgba(255, 255, 255, .06); opacity: 1; }
.sidebar .data-scrollbar .scrollbar-track-y { background: transparent; }
.sidebar .data-scrollbar .scrollbar-thumb { background: rgba(255, 255, 255, .18); }

/* Pilihan admin “Sidebar Color” lain tetap dihormati */
.sidebar.sidebar-color { background: var(--bs-primary); }
.sidebar.sidebar-transparent { background: transparent; box-shadow: none; }

/* Logo mark baru */
.nova-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .8rem;
  background: var(--nv-grad);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(91, 76, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  flex: none;
}
.nova-mark svg { width: 1.3rem; height: 1.3rem; color: #fff !important; }
.sidebar .navbar-brand .nova-mark svg,
.iq-navbar .navbar-brand .nova-mark svg { color: #fff !important; }
.sidebar .navbar-brand,
.iq-navbar .navbar-brand { gap: 0; }
.sidebar .logo-main .logo-mini .nova-mark { width: 2.2rem; height: 2.2rem; }

/* ============ 4. Navbar & banner ============ */
.iq-navbar {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--nv-line);
  box-shadow: none;
}
body.dark .iq-navbar { background: rgba(10, 14, 28, .94); }
.iq-navbar .navbar-brand .logo-title { color: var(--nv-heading); font-weight: 800; }
.iq-navbar .navbar-nav .nav-link { color: var(--nv-heading); font-weight: 600; border-radius: .7rem; }
.iq-navbar .navbar-nav .nav-link:hover { background: var(--nv-grad-soft); color: var(--bs-primary); }
.iq-navbar .navbar-list > .nav-item > .nav-link .fa-euro-sign {
  color: var(--bs-primary);
  background: var(--nv-grad-soft);
  width: 1.9rem; height: 1.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .55rem;
  margin-right: .4rem;
  font-size: .8rem;
}
.iq-navbar .dots {
  width: .55rem; height: .55rem;
  border: 2px solid #fff; border-radius: 50%;
}
.iq-navbar .avatar-50 { height: 2.6rem; width: 2.6rem; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(91, 76, 240, .25); }
.iq-navbar .caption .caption-title { font-size: .86rem; color: var(--nv-heading); }
.iq-navbar .caption .caption-sub-title { font-size: .75rem; color: var(--nv-muted); }

/* Banner: ganti foto bawaan dengan mesh gradient */
.iq-banner .iq-navbar-header { height: 190px !important; }
.iq-banner .iq-navbar-header .iq-header-img {
  height: 100%;
  border-radius: 0 0 1.75rem 1.75rem;
  background:
    radial-gradient(900px 300px at 85% -20%, rgba(192, 132, 252, .55), transparent 60%),
    radial-gradient(700px 300px at 10% 120%, rgba(14, 165, 233, .35), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #3730a3 45%, #5b4cf0 100%);
}
.iq-banner .iq-navbar-header .iq-header-img img { display: none !important; }
.iq-banner .iq-navbar-header .iq-header-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.iq-banner .iq-navbar-header .iq-container { padding-top: 1.25rem; }
.iq-banner .iq-navbar-header h1, .iq-banner .iq-navbar-header h2,
.iq-banner .iq-navbar-header h3, .iq-banner .iq-navbar-header h4,
.iq-banner .iq-navbar-header h5 { color: #fff; }
.iq-banner .iq-navbar-header p { color: rgba(255, 255, 255, .85); }
.iq-banner .iq-navbar-header marquee p { margin: 0; font-weight: 500; letter-spacing: 0; }
.iq-banner .iq-navbar-header .btn-soft-light,
.iq-banner .iq-navbar-header .btn-link.btn-soft-light {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.iq-banner .iq-navbar-header .btn-soft-light:hover { background: #fff; color: var(--bs-primary); }

/* Dropdown & notifikasi */
.dropdown-menu {
  border: 1px solid var(--nv-line);
  border-radius: 1rem;
  box-shadow: var(--nv-shadow-lg);
  padding: .5rem;
  background: var(--nv-surface);
}
.dropdown-item { border-radius: .6rem; font-weight: 500; padding: .5rem .85rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--nv-grad-soft); color: var(--bs-primary); }
.iq-navbar .dropdown .dropdown-menu.sub-drop { padding: 0; overflow: hidden; }
.iq-navbar .dropdown .dropdown-menu.sub-drop .card-header.bg-primary { background: var(--nv-grad) !important; }

/* ============ 5. Kartu ============ */
.card {
  background: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow-sm);
  margin-bottom: 1.5rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--nv-shadow); }
.card .card-header {
  background: transparent;
  padding: 1.25rem 1.5rem .25rem;
}
.card .card-header .card-title,
.card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--nv-heading); }
.card .card-body { padding: 1.25rem 1.5rem; }
.card .card-footer { background: var(--nv-surface-2); border-top: 1px solid var(--nv-line); }

/* kartu statistik slider di dashboard */
.card.card-slide {
  border: 1px solid var(--nv-line);
  background:
    linear-gradient(var(--nv-surface), var(--nv-surface)) padding-box,
    var(--nv-grad) border-box;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.card.card-slide::before {
  content: "";
  position: absolute; right: -2.5rem; top: -2.5rem;
  width: 7rem; height: 7rem; border-radius: 50%;
  background: var(--nv-grad-soft);
}
.card.card-slide:hover { transform: translateY(-3px); box-shadow: var(--nv-shadow); }
.card-slide .progress-detail p { color: var(--nv-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.card-slide .progress-detail h4,
.card-slide .counter { font-weight: 800; font-size: 1.6rem; color: var(--nv-heading); letter-spacing: -0.03em; }
.circle-progress-01 .circle-progress-value { stroke: var(--bs-primary) !important; }
.circle-progress-info .circle-progress-value { stroke: var(--bs-info) !important; }
.circle-progress-01 .circle-progress-circle { stroke: #eceefb !important; }
.circle-progress-text { fill: var(--nv-heading) !important; font-weight: 700; }
.card-slie-arrow { color: var(--bs-primary); }

/* ============ 6. Tombol ============ */
.btn {
  border-radius: .7rem;
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.15rem;
  letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .38rem .8rem; font-size: .8rem; border-radius: .6rem; }
.btn-primary {
  background: var(--nv-grad);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(91, 76, 240, .75);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--nv-grad);
  filter: brightness(1.07);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(91, 76, 240, .8);
  transform: translateY(-1px);
}
.btn-secondary { background: var(--nv-ink); border-color: var(--nv-ink); color: #fff; }
.btn-secondary:hover { background: #1c2547; border-color: #1c2547; color: #fff; }
.btn-success { box-shadow: 0 8px 18px -10px rgba(16, 185, 129, .8); }
.btn-danger { box-shadow: 0 8px 18px -10px rgba(239, 68, 68, .8); }
.btn-warning { color: #fff; }
.btn-border { border: 1px solid var(--nv-line); background: var(--nv-surface); color: var(--nv-heading); }
.btn-border:hover, .btn-border.active { border-color: var(--bs-primary); color: var(--bs-primary); background: var(--nv-grad-soft); }
.btn-outline-primary { border-color: rgba(91, 76, 240, .45); color: var(--bs-primary); }
.btn-outline-primary:hover { background: var(--bs-primary); border-color: var(--bs-primary); }
.btn-soft-light { background: var(--nv-surface-2); border: 1px solid var(--nv-line); color: var(--nv-heading); }
.btn-link { font-weight: 600; text-decoration: none; }
.btn-icon.btn-sm, .btn.btn-icon { border-radius: .65rem; }
.btn-fixed-end.btn-setting {
  background: var(--nv-grad); border: 0; color: #fff;
  box-shadow: 0 14px 28px -10px rgba(91, 76, 240, .8);
}

/* ============ 7. Form ============ */
.form-label, .control-label { color: var(--nv-heading); font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.form-control, .form-select, .input-group-text {
  background-color: var(--nv-surface);
  border: 1px solid var(--nv-line);
  border-radius: .7rem;
  color: var(--nv-heading);
  padding: .65rem .9rem;
  font-size: .92rem;
  box-shadow: none;
}
.form-control::placeholder { color: #a8b0c4; }
.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(91, 76, 240, .14);
  background-color: var(--nv-surface);
}
.input-group > .form-control:not(:last-child),
.input-group > .input-group-text:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .form-control:not(:first-child),
.input-group > .input-group-text:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-text { background: var(--nv-surface-2); color: var(--nv-muted); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }
.form-check-input { border-color: #c4cadd; }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(91, 76, 240, .14); border-color: var(--bs-primary); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }

/* filter tanggal (daterangepicker) */
[style*="cursor: pointer"][style*="padding: 5px 10px"] {
  background: var(--nv-surface) !important;
  border: 1px solid var(--nv-line) !important;
  border-radius: .7rem !important;
  padding: .55rem .9rem !important;
  color: var(--nv-heading);
  font-weight: 500;
}
.daterangepicker { border: 1px solid var(--nv-line); border-radius: 1rem; box-shadow: var(--nv-shadow-lg); font-family: var(--bs-font-sans-serif); }
.daterangepicker td.active, .daterangepicker td.active:hover { background-color: var(--bs-primary); }
.daterangepicker .ranges li.active { background-color: var(--bs-primary); }
.daterangepicker .drp-buttons .btn { padding: .35rem .8rem; }

/* ============ 8. Tabel ============ */
.table { --bs-table-bg: transparent; color: var(--bs-body-color); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .9rem 1rem; border-bottom-color: var(--nv-line); }
.table thead th {
  background: var(--nv-surface-2);
  color: var(--nv-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--nv-line);
  white-space: nowrap;
}
.table thead th:first-child { border-top-left-radius: .75rem; }
.table thead th:last-child { border-top-right-radius: .75rem; }
.table > tbody > tr > *, .table tbody td { vertical-align: middle; color: var(--nv-heading) !important; font-weight: 500; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; background: transparent; }
.table-striped > tbody > tr:nth-of-type(even) > * { background: rgba(91, 76, 240, .025); }
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover > * { background: rgba(91, 76, 240, .06) !important; }
.table-responsive { border-radius: .75rem; }

/* ============ 9. Badge, alert, pagination, tab, modal ============ */
.badge { border-radius: 999px; font-weight: 600; padding: .4em .8em; letter-spacing: .01em; }
.badge.bg-primary { background: var(--nv-grad) !important; }
.bg-soft-primary { background: rgba(91, 76, 240, .10) !important; color: var(--bs-primary) !important; }
.bg-soft-success { background: rgba(16, 185, 129, .12) !important; }
.bg-soft-danger { background: rgba(239, 68, 68, .12) !important; }
.bg-soft-warning { background: rgba(245, 158, 11, .14) !important; }
.bg-soft-info { background: rgba(14, 165, 233, .12) !important; }

.alert { border: 1px solid transparent; border-radius: .9rem; font-weight: 500; }
.alert-success { background: rgba(16, 185, 129, .12); color: #047857; border-color: rgba(16, 185, 129, .25); }
.alert-danger { background: rgba(239, 68, 68, .1); color: #b91c1c; border-color: rgba(239, 68, 68, .25); }
.alert-warning { background: rgba(245, 158, 11, .12); color: #b45309; border-color: rgba(245, 158, 11, .3); }
.alert-info { background: rgba(14, 165, 233, .1); color: #0369a1; border-color: rgba(14, 165, 233, .25); }
.alert .btn-close-white { filter: none; opacity: .5; }

.page-link { border-radius: .6rem !important; margin: 0 .15rem; border: 1px solid var(--nv-line); color: var(--nv-heading); font-weight: 600; }
.page-item.active .page-link { background: var(--nv-grad); border-color: transparent; color: #fff; }

.nav-tabs, .nav-pills { gap: .35rem; }
.nav-pills .nav-link { border-radius: .7rem; font-weight: 600; }
.nav-pills .nav-link.active { background: var(--nv-grad); }

.modal-content { border: 1px solid var(--nv-line); border-radius: 1.25rem; box-shadow: var(--nv-shadow-lg); background: var(--nv-surface); }
.modal-header { border-bottom: 1px solid var(--nv-line); padding: 1.15rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--nv-line); padding: 1rem 1.5rem; }
.modal-title { font-weight: 700; color: var(--nv-heading); }
.modal-backdrop.show { opacity: .55; background: var(--nv-ink); }

.progress { background: #eceefb; border-radius: 999px; }
.progress-bar { background: var(--nv-grad); border-radius: 999px; }

.avatar-40, .avatar-50 { object-fit: cover; }
.swal2-popup { border-radius: 1.25rem !important; font-family: var(--bs-font-sans-serif) !important; }
.swal2-styled.swal2-confirm { background: var(--nv-grad) !important; border-radius: .7rem !important; }

/* ============ 10. Footer ============ */
.footer {
  background: transparent;
  border-top: 1px solid var(--nv-line);
  color: var(--nv-muted);
  font-size: .82rem;
  margin-top: 1rem;
}
.footer .footer-body { padding: 1.25rem 2rem; }
.footer .icon-15 { color: #f43f5e; }

/* ============ 11. Halaman login / register (layout auth) ============ */
.nova-auth { min-height: 100vh; background: var(--nv-surface); }
.nova-auth .auth-card { box-shadow: none; background: transparent; border: 0; }
.nova-auth .auth-card .card-body { padding-top: 2rem; padding-bottom: 2rem; }
.nova-auth h2 { font-weight: 800; letter-spacing: -0.03em; font-size: 1.9rem; }
.nova-auth .navbar-brand { text-decoration: none; }
.nova-auth .navbar-brand .logo-title { color: var(--nv-heading); font-weight: 800; letter-spacing: -0.03em; }
.nova-auth .btn-primary { padding: .8rem 2.5rem; min-width: 100%; }
.nova-auth .sign-bg { display: none; }

.nova-auth-aside {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(800px 500px at 90% -10%, rgba(192, 132, 252, .6), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(14, 165, 233, .45), transparent 60%),
    linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #5b4cf0 100%);
  display: none !important;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .nova-auth-aside { display: flex !important; } }
.nova-auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
}
.nova-aside-inner { position: relative; max-width: 30rem; padding: 3rem; }
.nova-aside-inner h2 { color: #fff; font-size: 2.2rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.035em; }
.nova-aside-inner p { color: rgba(255, 255, 255, .78); font-size: 1.02rem; }
.nova-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.nova-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nova-chip i { color: #a5f3fc; }
.nova-orb {
  position: absolute; border-radius: 50%; filter: blur(2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .15);
}
.nova-orb.o1 { width: 14rem; height: 14rem; right: -4rem; bottom: 4rem; }
.nova-orb.o2 { width: 7rem; height: 7rem; left: 3rem; top: 3rem; }

/* ============ 12. Mode gelap — permukaan yang di-hardcode template ============ */
body.dark .card, body.dark .modal-content, body.dark .dropdown-menu { background: var(--nv-surface); border-color: var(--nv-line); }
body.dark .table thead th { background: var(--nv-surface-2); }
body.dark .form-control, body.dark .form-select, body.dark .input-group-text { background: var(--nv-surface-2); color: #e2e8f0; border-color: var(--nv-line); }
body.dark .btn-border, body.dark .btn-soft-light { background: var(--nv-surface-2); color: #e2e8f0; border-color: var(--nv-line); }
body.dark .iq-navbar .navbar-nav .nav-link { color: #e2e8f0; }
body.dark .nova-auth { background: var(--bs-body-bg); }
body.dark .circle-progress-01 .circle-progress-circle { stroke: #1e2742 !important; }
body.dark .progress { background: #1e2742; }
body.dark .daterangepicker { background: var(--nv-surface); }
body.dark [style*="cursor: pointer"][style*="padding: 5px 10px"] { background: var(--nv-surface-2) !important; color: #e2e8f0; }

/* ============ 13. Responsif ============ */
@media (max-width: 991.98px) {
  .iq-banner .iq-navbar-header { height: 170px !important; }
  .card .card-body, .card .card-header { padding-left: 1.1rem; padding-right: 1.1rem; }
  .footer .footer-body { padding: 1rem; }
}
@media (max-width: 575.98px) {
  .nova-auth h2 { font-size: 1.6rem; }
  .table > :not(caption) > * > * { padding: .7rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Perbaikan mode gelap: samakan latar bawaan dark.css dengan token Nova */
body.dark { background: var(--bs-body-bg) !important; color: var(--bs-body-color); }
body.dark .card .card-header,
body.dark .card-header { background: transparent !important; }
body.dark .main-content, body.dark .content-inner { background: transparent; }

/* =====================================================================
   14. MOBILE & TABLET  (v1.2) — struktur klasik, dirapikan
   ===================================================================== */

/* titik notifikasi (elemen <span> inline bawaan) */
.iq-navbar .dots {
  display: inline-block; width: .6rem; height: .6rem; border-radius: 50%;
  border: 2px solid #fff; vertical-align: top; margin-left: -.45rem;
}

/* filter tanggal */
#dateRangePicker, #reportrange {
  background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: .7rem;
  padding: .5rem .9rem; color: var(--nv-heading); font-weight: 500; cursor: pointer;
}

/* ---- Navbar tablet & HP (< 992px) ---- */
@media (max-width: 991.98px) {
  .iq-navbar { padding: .45rem 0; }
  .iq-navbar .navbar-inner {
    display: flex; flex-wrap: nowrap; align-items: center; gap: .65rem;
    padding-left: 1rem; padding-right: 1rem;
  }
  /* tombol buka sidebar: panah seperti semula, dibuat rapi */
  .iq-navbar .sidebar-toggle, .nav .sidebar-toggle {
    position: static !important; order: 0; flex: none;
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: .8rem;
    background: var(--nv-grad); color: #fff;
    box-shadow: 0 8px 16px -8px rgba(91, 76, 240, .8);
  }
  .iq-navbar .sidebar-toggle .icon, .iq-navbar .sidebar-toggle svg { width: 1.1rem; height: 1.1rem; }
  /* brand */
  .iq-navbar .navbar-brand { order: 1; flex: 1 1 auto; display: flex; align-items: center; margin: 0; min-width: 0; }
  .iq-navbar .navbar-brand .logo-mini { display: none !important; }
  .iq-navbar .navbar-brand .nova-mark { width: 2.2rem; height: 2.2rem; border-radius: .7rem; }
  .iq-navbar .navbar-brand .logo-title {
    margin: 0 0 0 .6rem !important; font-size: 1.05rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* hamburger menu lipat */
  .iq-navbar .navbar-toggler {
    order: 2; flex: none; width: 2.4rem; height: 2.4rem; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--nv-line); border-radius: .8rem; background: var(--nv-surface); box-shadow: none;
  }
  .iq-navbar .navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(91, 76, 240, .14); }
  /* panel menu lipat */
  .iq-navbar .navbar-collapse {
    position: absolute !important; top: calc(100% + .35rem) !important; left: .75rem !important; right: .75rem !important;
    width: auto !important; padding: .55rem .75rem; z-index: 1030;
    background: var(--nv-surface) !important;
    border: 1px solid var(--nv-line); border-radius: 1.1rem; box-shadow: var(--nv-shadow-lg);
  }
  .iq-navbar .navbar-list {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    gap: .25rem; margin: 0 !important; float: none !important;
  }
  .iq-navbar .navbar-list > .nav-item { position: static; }
  .iq-navbar .navbar-list > .nav-item > .nav-link { position: relative; padding: .4rem .55rem; }
  .iq-navbar .navbar-list .dots { position: absolute; top: .35rem; right: .3rem; margin: 0; }
  .iq-navbar .avatar-50 { height: 2.4rem; width: 2.4rem; }
  .iq-navbar .navbar-list > .nav-item:nth-child(2) > .nav-link {
    background: var(--nv-grad-soft); border-radius: 999px; padding: .35rem .8rem .35rem .4rem;
    color: var(--bs-primary); font-weight: 700; font-size: .88rem; white-space: nowrap;
  }
  .iq-navbar .navbar-list > .nav-item:nth-child(2) .dots { display: none; }
  .iq-navbar .navbar-list > .nav-item:nth-child(2) .fa-euro-sign { background: #fff; }
  /* dropdown tampil tepat di bawah panel, selebar panel */
  .iq-navbar .navbar-collapse .dropdown-menu {
    position: absolute !important; top: calc(100% + .35rem) !important; bottom: auto !important;
    left: 0 !important; right: 0 !important; width: auto !important; min-width: 0 !important;
    transform: none !important; margin: 0 !important; max-height: 65vh; overflow-y: auto;
  }

  /* banner judul halaman */
  .iq-banner .iq-navbar-header { height: auto !important; min-height: 0; padding: 1.5rem 0 3.6rem; }
  .iq-banner .iq-navbar-header .iq-header-img { height: 100% !important; border-radius: 0 0 1.5rem 1.5rem; }
  .iq-banner .iq-navbar-header .container-fluid.iq-container { padding: .25rem 1rem 0 !important; }
  .iq-banner:not(.hide) + .conatiner-fluid.content-inner,
  .iq-banner:not(.hide) + .content-inner { margin-top: -3rem !important; padding-top: 0 !important; }
  .content-inner { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ---- Sidebar off-canvas (< 1200px) ---- */
@media (max-width: 1199.98px) {
  .sidebar { z-index: 1010; width: 17.5rem; max-width: 86vw; }
  .sidebar:not(.sidebar-mini) { box-shadow: 24px 0 60px -10px rgba(0, 0, 0, .55); }
  .sidebar .sidebar-toggle {
    right: .9rem; top: 1.15rem; width: 2.2rem; height: 2.2rem; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }
  body:has(.sidebar:not(.sidebar-mini))::after {
    content: ""; position: fixed; inset: 0; z-index: 1003;
    background: rgba(8, 11, 24, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: nvFade .2s ease;
  }
  body:has(.sidebar:not(.sidebar-mini)) { overflow: hidden; }
}
@keyframes nvFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Konten HP (< 768px) ---- */
@media (max-width: 767.98px) {
  .iq-banner .iq-navbar-header h1 { font-size: 1.5rem; margin-bottom: .35rem; }
  .iq-banner .iq-navbar-header p {
    font-size: .86rem; line-height: 1.5; margin-bottom: .75rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .iq-banner .iq-navbar-header marquee p { display: block; overflow: visible; }
  .iq-banner .iq-navbar-header .d-flex.flex-wrap { gap: .6rem; }
  .iq-banner .iq-navbar-header .btn { padding: .5rem .95rem; font-size: .82rem; }
  .content-inner .row { --bs-gutter-x: 1rem; }

  /* kartu */
  .card { border-radius: 1.1rem; margin-bottom: 1rem; }
  .card .card-header { padding: 1rem 1.1rem .25rem; }
  .card .card-body { padding: 1rem 1.1rem; }
  .card .card-body.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .card .card-header.d-flex { flex-wrap: wrap; gap: .75rem; align-items: center; }
  .card .card-title { font-size: 1rem; }
  .card .card-header .input-group { width: 100%; }
  .card .card-header > div:has(> .input-group) { flex: 1 1 100%; }
  #dateRangePicker, #reportrange { width: 100%; min-height: 2.75rem; display: flex; align-items: center; gap: .4rem; }

  /* form & tombol */
  .form-control, .form-select, .input-group-text { font-size: 16px; min-height: 2.8rem; }
  textarea.form-control { min-height: 6rem; }
  .btn { min-height: 2.75rem; }
  .btn-sm { min-height: 2.2rem; }

  /* tabel: geser ke samping, ringkas */
  .table-responsive { -webkit-overflow-scrolling: touch; border-radius: 0; }
  .card .table-responsive { padding: 0 .85rem; }
  .table { font-size: .84rem; }
  .table > :not(caption) > * > * { padding: .65rem .75rem; white-space: nowrap; }
  .table thead th { font-size: .68rem; }
  .table-responsive::-webkit-scrollbar { height: 5px; }

  .pagination { flex-wrap: wrap; justify-content: center; gap: .15rem; }
  .page-link { min-width: 2.4rem; text-align: center; }
  nav[role="navigation"] > div.d-none.flex-sm-fill { display: block !important; text-align: center; }

  .modal-dialog { margin: .75rem; }
  .modal-content { border-radius: 1.1rem; }

  .footer .footer-body { padding: 1rem .5rem; flex-direction: column; gap: .35rem; text-align: center; }
}

/* tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .iq-banner .iq-navbar-header { padding: 1.25rem 0 4.75rem; }
}

/* ---- Login / register di HP: satu layar, tanpa scroll halaman ---- */
@media (max-width: 767.98px) {
  html, body { height: 100%; }
  .nova-auth {
    height: 100vh !important; height: 100dvh !important;
    display: flex !important; flex-direction: column; flex-wrap: nowrap; align-items: stretch !important;
    overflow: hidden; background: var(--nv-surface);
  }
  .nova-auth > .col-md-6:first-child {
    flex: 1 1 auto; width: 100%; padding: 0; min-height: 0;
    display: flex; flex-direction: column;
  }
  .nova-auth-hero {
    flex: none; position: relative; overflow: hidden; text-align: center; color: #fff;
    padding: calc(1.6rem + env(safe-area-inset-top, 0px)) 1.5rem 3.4rem;
    background:
      radial-gradient(520px 260px at 90% -20%, rgba(192, 132, 252, .6), transparent 60%),
      radial-gradient(420px 260px at -10% 120%, rgba(14, 165, 233, .4), transparent 60%),
      linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #5b4cf0 100%);
  }
  .nova-auth-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
  }
  .nova-auth-hero > * { position: relative; }
  .nova-auth-hero .nova-mark {
    width: 3rem; height: 3rem; border-radius: 1rem; margin-bottom: .6rem;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); box-shadow: none;
  }
  .nova-auth-hero .nova-mark svg { width: 1.6rem; height: 1.6rem; }
  .nova-auth-hero h2 { color: #fff; font-size: 1.4rem; font-weight: 800; margin: 0 0 .2rem; }
  .nova-auth-hero p {
    color: rgba(255, 255, 255, .8); margin: 0; font-size: .85rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* wrapper form mengisi sisa layar; hanya bagian ini yang boleh scroll (mis. register) */
  .nova-auth > .col-md-6:first-child > .row {
    flex: 1 1 auto; min-height: 0; margin: -1.6rem 0 0; width: 100%; overflow-y: auto;
    background: var(--nv-surface); border-radius: 1.6rem 1.6rem 0 0; position: relative;
    box-shadow: 0 -14px 40px -18px rgba(30, 27, 75, .35); align-content: flex-start;
  }
  .nova-auth .auth-card { background: transparent !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
  .nova-auth .auth-card .card-body { padding: 1.4rem 1.4rem 1.25rem; }
  .nova-auth .auth-card .navbar-brand { display: none !important; }
  .nova-auth h2.mb-2 { font-size: 1.45rem; }
  .nova-auth .row.justify-content-center > .col-md-10 { padding: 0; }
  .nova-auth .btn-primary { min-height: 2.9rem; }
}
@media (max-width: 767.98px) and (max-height: 700px) {
  .nova-auth-hero { padding-bottom: 3rem; }
  .nova-auth-hero p { display: none; }
  .nova-auth-hero .nova-mark { width: 2.4rem; height: 2.4rem; margin-bottom: .4rem; }
}
@media (min-width: 768px) { .nova-auth-hero { display: none !important; } }

/* mode gelap untuk bagian mobile */
body.dark .iq-navbar .navbar-collapse { background: var(--nv-surface) !important; }
body.dark .iq-navbar .navbar-toggler { background: var(--nv-surface); border-color: var(--nv-line); }
