:root {
    --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-primary: #0f5e9c;
    --bs-primary-rgb: 15, 94, 156;
    --bs-link-color: #0f5e9c;
    --bs-link-color-rgb: 15, 94, 156;
    --bs-body-bg: #f4f6f9;
    --primary-dark: #0b3b61;
}

.btn-primary {
    --bs-btn-bg: #0f5e9c; --bs-btn-border-color: #0f5e9c;
    --bs-btn-hover-bg: #0c4d80; --bs-btn-hover-border-color: #0c4d80;
    --bs-btn-active-bg: #0b3b61; --bs-btn-active-border-color: #0b3b61;
}
.btn-outline-primary {
    --bs-btn-color: #0f5e9c; --bs-btn-border-color: #0f5e9c;
    --bs-btn-hover-bg: #0f5e9c; --bs-btn-hover-border-color: #0f5e9c;
    --bs-btn-active-bg: #0b3b61;
}
.text-primary { color: #0f5e9c !important; }
.bg-primary-dark { background: var(--primary-dark) !important; }
.min-w-0 { min-width: 0; }

/* ---------- Panel ---------- */
/* !important: Bootstrap .offcanvas-lg memaksa latar transparan di layar lebar */
.sidebar.offcanvas-lg { width: 260px; min-height: 100vh; background-color: var(--primary-dark) !important; flex-shrink: 0; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; } }
@media (max-width: 991.98px) { .sidebar { --bs-offcanvas-bg: var(--primary-dark); --bs-offcanvas-color: #fff; } }
.sidebar .nav-link { color: rgba(255,255,255,.78); border-radius: .5rem; padding: .5rem .75rem; display: flex; gap: .6rem; align-items: center; font-size: .925rem; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.16); font-weight: 600; }
.min-h-0 { min-height: 0; }
.sidebar .nav-link .bi { width: 1.1rem; text-align: center; flex-shrink: 0; }
.sidebar .nav-group .chevron { font-size: .75rem; transition: transform .2s; opacity: .7; }
.sidebar .nav-group.collapsed .chevron { transform: rotate(-90deg); }
.sidebar .nav-group.group-active { color: #fff; }
.sidebar .submenu { margin: .15rem 0 .35rem 1.15rem; padding-left: .55rem; border-left: 1px solid rgba(255,255,255,.14); }
.sidebar .submenu .nav-link { font-size: .875rem; padding: .4rem .65rem; }
.sidebar .submenu .nav-link.active { background: rgba(255,255,255,.14); box-shadow: inset 3px 0 0 #f5a623; }
.sidebar-user { padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.12); }
.sidebar-user .avatar { width: 34px; height: 34px; border-radius: 50%; background: #f5a623; color: #0b3b61; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.sidebar .nav-heading { text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; color: rgba(255,255,255,.45); padding: 1rem .75rem .35rem; }
.brand-logo { width: 38px; height: 38px; border-radius: .6rem; display: inline-grid; place-items: center; background: #f5a623; color: #0b3b61; font-size: 1.2rem; }
.brand-img { object-fit: contain; border-radius: .5rem; flex-shrink: 0; }
.brand-logo { flex-shrink: 0; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid #e5e8ee; }

.card { border: 1px solid #e5e8ee; border-radius: .75rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; border-bottom-color: #eef0f4; }
.stat-icon { width: 48px; height: 48px; border-radius: .75rem; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; background: #f8f9fb; white-space: nowrap; }
.table-responsive { border-radius: .75rem; }
.filter-card .form-control, .filter-card .form-select { font-size: .9rem; }

.map-box { border-radius: .75rem; border: 1px solid #dfe3ea; z-index: 0; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: .5rem; background: #e9edf2; }
.thumb-ph { width: 52px; height: 52px; border-radius: .5rem; background: #e9edf2; display: grid; place-items: center; color: #9aa4b2; }

.dl-grid { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: .45rem 1rem; margin: 0; }
.dl-grid dt { font-weight: 500; color: #6b7280; }
.dl-grid dd { margin: 0; }

/* Galeri */
.galeri-item { position: relative; border-radius: .75rem; overflow: hidden; background: #e9edf2; aspect-ratio: 1 / 1; display: block; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galeri-item:hover img { transform: scale(1.05); }
.galeri-item .cap { position: absolute; inset: auto 0 0 0; padding: .6rem .7rem; color: #fff; font-size: .82rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

.produk-card { transition: box-shadow .2s, transform .2s; }
.produk-card:hover { box-shadow: 0 8px 24px rgba(16,24,40,.12); transform: translateY(-2px); }
.produk-card .img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #e9edf2; border-radius: .75rem .75rem 0 0; }

/* Publik */
.hero { background: linear-gradient(135deg, #0b3b61 0%, #0f5e9c 60%, #1d7fc4 100%); color: #fff; }
.hero .stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: .75rem; padding: 1rem; }

.leaflet-popup-content { margin: .75rem; }
.leaflet-popup-content img { width: 100%; max-height: 120px; object-fit: cover; border-radius: .4rem; margin-bottom: .4rem; }

@media print {
    .sidebar, .topbar, .btn, form.filter, footer, .navbar, .no-print { display: none !important; }
    body { background: #fff; }
    main { padding: 0 !important; }
    .card { border: 0; box-shadow: none; }
}
