/* =========================================================================
   BB CONVEX — Design System v2.0
   Tema: "Pita Nusantara" — oranye brand + biru kenegaraan + motif kawung
   Layer di atas AdminLTE 3 / Bootstrap 4 (me-reskin seluruh halaman)
   ========================================================================= */

:root {
  /* Brand (diambil dari logo) */
  --bbc-orange:        #F15822;
  --bbc-orange-dark:   #D3440F;
  --bbc-orange-deep:   #B23608;
  --bbc-amber:         #F99D1C;
  --bbc-orange-soft:   #FEEFE8;
  --bbc-orange-ring:   rgba(241, 88, 34, .16);

  /* Kenegaraan (navy formal) */
  --bbc-navy:          #16233A;
  --bbc-navy-2:        #1F3253;
  --bbc-navy-3:        #27406B;

  /* Netral */
  --bbc-ink:           #1D2739;
  --bbc-slate:         #66707F;
  --bbc-gray:          #A5A5A4;   /* abu logo */
  --bbc-border:        #E7EBF2;
  --bbc-surface:       #F4F6FB;
  --bbc-card:          #FFFFFF;

  /* Status (diselaraskan dgn brand) */
  --bbc-green:         #1E9E6A;
  --bbc-green-dark:    #157A51;
  --bbc-red:           #E23F44;
  --bbc-red-dark:      #C42A2F;
  --bbc-blue:          #2E77E5;
  --bbc-blue-dark:     #1D5FC4;
  --bbc-yellow:        #F2A814;

  /* Bentuk & bayangan */
  --bbc-radius:        16px;
  --bbc-radius-sm:     10px;
  --bbc-shadow:        0 1px 2px rgba(22,35,58,.05), 0 10px 28px -14px rgba(22,35,58,.16);
  --bbc-shadow-lift:   0 2px 4px rgba(22,35,58,.06), 0 18px 38px -16px rgba(22,35,58,.24);

  --bbc-grad-brand:    linear-gradient(92deg, var(--bbc-orange) 0%, var(--bbc-amber) 100%);
  --bbc-grad-navy:     linear-gradient(160deg, var(--bbc-navy) 0%, var(--bbc-navy-2) 60%, var(--bbc-navy-3) 130%);

  --bbc-font-body:     'Inter', 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bbc-font-display:  'Poppins', 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

/* =========================================================================
   1. DASAR
   ========================================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--bbc-font-body);
  color: var(--bbc-ink);
  background-color: var(--bbc-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--bbc-font-display);
  font-weight: 600;
  color: var(--bbc-ink);
  letter-spacing: -.01em;
}

a { color: var(--bbc-orange); }
a:hover { color: var(--bbc-orange-dark); text-decoration: none; }

::selection { background: var(--bbc-orange); color: #fff; }

.text-primary { color: var(--bbc-orange) !important; }
.bg-primary   { background-color: var(--bbc-orange) !important; }
.border-primary { border-color: var(--bbc-orange) !important; }
.text-muted   { color: var(--bbc-slate) !important; }

input, select, textarea { accent-color: var(--bbc-orange); }

/* Scrollbar tipis */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C6CCD8; border-radius: 8px; border: 2px solid var(--bbc-surface); }
::-webkit-scrollbar-thumb:hover { background: var(--bbc-orange); }

/* Motif kawung (identitas Nusantara, digambar murni CSS) */
.bbc-pattern { position: relative; overflow: hidden; }
.bbc-pattern::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,.045) 21%, rgba(255,255,255,.045) 34%, transparent 35%, transparent),
    radial-gradient(circle at 0 50%, transparent 20%, rgba(255,255,255,.028) 21%, rgba(255,255,255,.028) 34%, transparent 35%, transparent);
  background-size: 64px 128px;
  pointer-events: none;
}

/* Animasi masuk halaman (halus) */
@keyframes bbcFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.content-wrapper > .container-fluid,
.content-wrapper > .content { animation: bbcFadeUp .35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================================
   2. PITA KENEGARAAN (strip gradasi brand di tepi atas aplikasi)
   ========================================================================= */
.main-header::before,
.main-sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--bbc-grad-brand);
  z-index: 5;
}

/* =========================================================================
   3. NAVBAR ATAS
   ========================================================================= */
.main-header.navbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bbc-border);
  box-shadow: 0 1px 0 rgba(22,35,58,.02);
  min-height: 62px;
  padding: .4rem .9rem;
}

.main-header .nav-link {
  color: var(--bbc-slate) !important;
  border-radius: var(--bbc-radius-sm);
  transition: .18s ease;
}
.main-header .nav-link:hover {
  color: var(--bbc-orange) !important;
  background: var(--bbc-orange-soft);
}

/* Chip tanggal resmi */
.bbc-date-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500; color: var(--bbc-slate);
  background: var(--bbc-surface);
  border: 1px solid var(--bbc-border);
  border-radius: 999px;
  padding: .38rem .85rem;
  white-space: nowrap;
}
.bbc-date-chip i { color: var(--bbc-orange); }

/* Chip user di kanan */
.bbc-user-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .28rem .6rem .28rem .3rem !important;
  border: 1px solid var(--bbc-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.bbc-user-chip:hover { border-color: var(--bbc-orange); background: #fff; }
.bbc-user-chip .bbc-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 2px solid var(--bbc-orange-soft);
}
.bbc-user-chip .bbc-user-meta { line-height: 1.15; text-align: left; }
.bbc-user-chip .bbc-user-name {
  display: block; font-size: .8rem; font-weight: 600; color: var(--bbc-ink);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bbc-user-chip .bbc-user-role {
  display: block; font-size: .68rem; font-weight: 500; color: var(--bbc-orange);
  text-transform: uppercase; letter-spacing: .04em;
}
@media (max-width: 575.98px) {
  .bbc-user-chip .bbc-user-meta { display: none; }
  .bbc-user-chip { padding: .2rem !important; border: none; }
}

/* Logo instansi di navbar */
.bbc-nav-instansi img { height: 40px; width: auto; }
@media (max-width: 575.98px) { .bbc-nav-instansi img { height: 32px; } }

/* =========================================================================
   4. SIDEBAR (navy kenegaraan + aksen oranye)
   ========================================================================= */
.main-sidebar {
  background: var(--bbc-grad-navy) !important;
  box-shadow: 4px 0 24px -12px rgba(22,35,58,.5);
}
.main-sidebar::after { /* motif kawung samar */
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
}
.main-sidebar .sidebar { position: relative; z-index: 2; padding: 0 .65rem; }

/* Brand */
.main-sidebar .brand-link {
  display: flex; align-items: center; gap: .7rem;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: .8rem 1rem;
  height: auto; min-height: 66px;
  position: relative; z-index: 2;
}
.bbc-brand-plate {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.5);
}
.bbc-brand-plate img { height: 34px; width: auto; display: block; }
.bbc-brand-text { line-height: 1.2; min-width: 0; }
.bbc-brand-text strong {
  display: block;
  font-family: var(--bbc-font-display);
  font-size: .95rem; font-weight: 700; color: #fff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bbc-brand-text small {
  display: block; font-size: .68rem; font-weight: 500;
  color: rgba(255,255,255,.55) !important;
  text-transform: uppercase; letter-spacing: .06em;
}
.sidebar-mini.sidebar-collapse .bbc-brand-text { display: none; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .brand-link { justify-content: center; padding: .8rem .4rem; }

/* Panel user */
.bbc-side-user {
  display: flex; align-items: center; gap: .7rem;
  margin: .9rem .35rem .35rem;
  padding: .6rem .7rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  transition: .18s ease;
}
.bbc-side-user:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.16); }
.bbc-side-user .circle { flex: 0 0 auto; box-shadow: 0 0 0 2px var(--bbc-orange); }
.bbc-side-user .bbc-side-user-name {
  display: block; font-size: .82rem; font-weight: 600; color: #fff !important;
  line-height: 1.25; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bbc-side-user .bbc-side-user-hint {
  font-size: .66rem; font-weight: 500; color: rgba(255,255,255,.5) !important;
  text-transform: uppercase; letter-spacing: .05em;
}
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .bbc-side-user { padding: .4rem; justify-content: center; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .bbc-side-user > div:last-child { display: none; }

/* Menu */
.nav-sidebar { padding-bottom: 140px; }
.nav-sidebar .nav-item { margin-bottom: 2px; }
.nav-sidebar .nav-link {
  display: flex; align-items: center;
  color: rgba(255,255,255,.72) !important;
  border-radius: 11px;
  padding: .58rem .8rem;
  font-size: .875rem; font-weight: 500;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-sidebar .nav-link p { color: inherit !important; margin: 0; }
.nav-sidebar .nav-icon {
  color: rgba(255,255,255,.55) !important;
  font-size: .95rem;
  margin-right: .55rem !important;
  transition: color .16s ease;
}
.nav-sidebar .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  transform: translateX(2px);
}
.nav-sidebar .nav-link:hover .nav-icon { color: var(--bbc-amber) !important; }

/* State aktif = pil oranye */
.nav-sidebar .nav-link.active {
  background: var(--bbc-grad-brand) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(241,88,34,.65);
}
.nav-sidebar .nav-link.active .nav-icon,
.nav-sidebar .nav-link.active p { color: #fff !important; }

/* Submenu */
.nav-sidebar .nav-treeview {
  margin: 2px 0 4px .9rem;
  padding-left: .55rem;
  border-left: 1px solid rgba(255,255,255,.12);
}
.nav-sidebar .nav-treeview .nav-item { margin-left: 0 !important; }
.nav-sidebar .nav-treeview .nav-link { font-size: .83rem; padding: .45rem .7rem; }
.nav-sidebar .nav-link > .right { transition: transform .2s ease; }

/* Info tahun kegiatan */
.bbc-side-year {
  display: flex; align-items: center; gap: .55rem;
  margin: .35rem .35rem .8rem;
  padding: .5rem .75rem;
  font-size: .74rem; font-weight: 600;
  color: var(--bbc-amber) !important;
  background: rgba(249,157,28,.1);
  border: 1px dashed rgba(249,157,28,.35);
  border-radius: 11px;
  text-transform: uppercase; letter-spacing: .05em;
}
.bbc-side-year i { color: var(--bbc-amber) !important; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .bbc-side-year span { display: none; }
.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .bbc-side-year { justify-content: center; }

/* Scrollbar sidebar (overlayScrollbars) */
.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle { background: rgba(255,255,255,.25); }
.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle:hover { background: var(--bbc-orange); }

/* =========================================================================
   5. AREA KONTEN, CARD, BREADCRUMB
   ========================================================================= */
.content-wrapper { background: var(--bbc-surface) !important; }

.card {
  border: 1px solid var(--bbc-border);
  border-radius: var(--bbc-radius);
  box-shadow: var(--bbc-shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--bbc-border);
  padding: .85rem 1.15rem;
}
.card-header h5, .card-header .card-title {
  font-size: .98rem; font-weight: 600; color: var(--bbc-ink);
  display: flex; align-items: center; flex-wrap: wrap;
}
/* Ikon judul card otomatis jadi chip oranye di semua halaman */
.card-header h5 > i:first-child {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  margin-right: .6rem;
  font-size: .85rem;
  color: var(--bbc-orange);
  background: var(--bbc-orange-soft);
  border-radius: 10px;
}
.card-body { padding: 1.15rem; }
.card-footer { background: #FBFCFE; border-top: 1px solid var(--bbc-border); }

.card-primary.card-outline { border-top: 3px solid var(--bbc-orange); }
.card-primary:not(.card-outline) > .card-header { background: var(--bbc-grad-brand); color: #fff; }
.card-primary:not(.card-outline) > .card-header h5 { color: #fff; }

.breadcrumb {
  background: var(--bbc-surface) !important;
  border: 1px solid var(--bbc-border);
  border-radius: 999px !important;
  padding: .3rem .9rem !important;
  font-size: .78rem; font-weight: 500;
}
.breadcrumb-item, .breadcrumb-item a { color: var(--bbc-slate); }
.breadcrumb-item.active, .breadcrumb-item.active a { color: var(--bbc-orange); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--bbc-gray); }

/* =========================================================================
   6. KARTU STATISTIK (dashboard) + override small-box lama
   ========================================================================= */
.stat-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--bbc-card);
  border: 1px solid var(--bbc-border);
  border-radius: var(--bbc-radius);
  box-shadow: var(--bbc-shadow);
  padding: 1.05rem 1.1rem .95rem;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--bbc-shadow-lift); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--bbc-grad-brand);
  opacity: 0; transition: opacity .18s ease;
}
.stat-card:hover::after { opacity: 1; }

.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.stat-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  font-size: 1.05rem;
  color: var(--bbc-orange);
  background: var(--bbc-orange-soft);
}
.stat-icon.amber { color: var(--bbc-amber); background: rgba(249,157,28,.14); }
.stat-icon.navy  { color: var(--bbc-navy-3); background: rgba(31,50,83,.09); }
.stat-icon.green { color: var(--bbc-green); background: rgba(30,158,106,.11); }

.stat-label {
  font-size: .74rem; font-weight: 600; color: var(--bbc-slate);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .15rem;
}
.stat-value {
  font-family: var(--bbc-font-display);
  font-size: 1.9rem; font-weight: 700; color: var(--bbc-ink);
  line-height: 1.15; letter-spacing: -.02em;
}
.stat-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .7rem; padding-top: .6rem;
  border-top: 1px dashed var(--bbc-border);
  font-size: .78rem; font-weight: 600; color: var(--bbc-orange);
}
.stat-link i { transition: transform .18s ease; }
.stat-link:hover i { transform: translateX(3px); }

/* Small-box lama yg masih hardcoded gelap ikut ter-rebrand */
.small-box[style*="343a40"] {
  background: var(--bbc-grad-navy) !important;
  border-radius: var(--bbc-radius);
  box-shadow: var(--bbc-shadow);
}
.small-box { border-radius: var(--bbc-radius); box-shadow: var(--bbc-shadow); }
.small-box .icon { color: rgba(255,255,255,.18) !important; transition: .2s; }
.small-box:hover .icon { color: rgba(255,255,255,.28) !important; }
.small-box .small-box-footer {
    border-radius: 0 0 var(--bbc-radius) var(--bbc-radius);
    background: rgba(0,0,0,.14);
    font-weight: 600;
}

.small-box .small-box-footer:hover {
    border-radius: 0 0 var(--bbc-radius) var(--bbc-radius);
    background: var(--bbc-orange);
    color: #fff;
}
/* =========================================================================
   7. TOMBOL
   ========================================================================= */
.btn {
  border-radius: var(--bbc-radius-sm);
  font-weight: 600;
  font-size: .865rem;
  padding: .48rem 1rem;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s;
}
.btn:active { transform: scale(.98); }
.btn:focus { box-shadow: 0 0 0 .2rem var(--bbc-orange-ring) !important; }
.btn-sm { border-radius: 8px; padding: .3rem .65rem; font-size: .78rem; }

.btn-primary {
  background: var(--bbc-grad-brand) !important;
  border: none !important;
  box-shadow: 0 8px 16px -8px rgba(241,88,34,.55);
}
.btn-primary:hover { background: linear-gradient(92deg, var(--bbc-orange-dark), var(--bbc-orange)) !important; transform: translateY(-1px); }

.btn-dark {
    background: var(--bbc-navy) !important;
    border-color: var(--bbc-navy) !important;
    color: #fff !important;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    background: var(--bbc-navy-2) !important;
    border-color: var(--bbc-navy-2) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-dark i,
.btn-dark span,
.btn-dark svg {
    color: #fff !important;
}

.btn-secondary { background: var(--bbc-slate); border-color: var(--bbc-slate); }
.btn-success { background: var(--bbc-green) !important; border-color: var(--bbc-green) !important; }
.btn-success:hover { background: var(--bbc-green-dark) !important; }
.btn-danger { background: var(--bbc-red) !important; border-color: var(--bbc-red) !important; }
.btn-danger:hover { background: var(--bbc-red-dark) !important; }
.btn-info { background: var(--bbc-blue) !important; border-color: var(--bbc-blue) !important; color: #fff !important; }
.btn-info:hover { background: var(--bbc-blue-dark) !important; }
.btn-warning { background: var(--bbc-yellow) !important; border-color: var(--bbc-yellow) !important; color: #fff !important; }

.btn-outline-primary { color: var(--bbc-orange); border-color: var(--bbc-orange); }
.btn-outline-primary:hover { background: var(--bbc-orange); border-color: var(--bbc-orange); color: #fff; }
.btn-outline-dark { color: var(--bbc-navy); border-color: var(--bbc-navy); }
.btn-outline-dark:hover { background: var(--bbc-navy); color: #fff; }

.btn-tool { color: var(--bbc-slate); }
.btn-tool:hover { color: var(--bbc-orange); }

/* =========================================================================
   8. TABEL + DATATABLES
   ========================================================================= */
.table { color: var(--bbc-ink); }
.table thead th {
  background: var(--bbc-navy);
  color: #fff;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .03em;
  border: none !important;
  border-right: 1px solid rgba(255,255,255,.07) !important;
  padding: .7rem .75rem;
  vertical-align: middle;
}
.table thead th:last-child { border-right: none !important; }

/* thead lama yg hardcoded #343a40 ikut ter-rebrand */
thead[style*="343a40"], .thead[style*="343a40"], thead[style*="343a40"] th {
  background: var(--bbc-navy) !important;
}

.table-bordered, .table-bordered td { border-color: var(--bbc-border) !important; }
.table-bordered thead th { border-color: rgba(255,255,255,.07) !important; }
.table-striped tbody tr:nth-of-type(odd) { background-color: #F8FAFD; }
.table-hover tbody tr:hover, .table tbody tr:hover { background-color: rgba(241,88,34,.04); }
.table td { vertical-align: middle; font-size: .865rem; }

.table .badge { font-size: .72rem; }

/* Kontrol DataTables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--bbc-border);
  border-radius: var(--bbc-radius-sm);
  padding: .3rem .6rem;
  background: #fff;
}
.dataTables_wrapper .dataTables_filter input:focus {
  outline: none; border-color: var(--bbc-orange);
  box-shadow: 0 0 0 .2rem var(--bbc-orange-ring);
}
.dataTables_wrapper .dataTables_info { color: var(--bbc-slate); font-size: .8rem; }

.page-item .page-link {
  border: 1px solid var(--bbc-border);
  color: var(--bbc-slate);
  border-radius: 9px !important;
  margin: 0 2.5px;
  font-size: .82rem; font-weight: 500;
  transition: .15s;
}
.page-item .page-link:hover { color: var(--bbc-orange); background: var(--bbc-orange-soft); border-color: var(--bbc-orange-soft); }
.page-item.active .page-link {
  background: var(--bbc-grad-brand) !important;
  border-color: transparent !important;
  color: #fff;
  box-shadow: 0 6px 12px -6px rgba(241,88,34,.6);
}
.page-item.disabled .page-link { color: #C3C9D4; }

/* =========================================================================
   9. FORM
   ========================================================================= */
label { font-size: .82rem; font-weight: 600; color: var(--bbc-ink); }
label i { color: var(--bbc-orange); }

.form-control, .custom-select {
  border: 1.5px solid var(--bbc-border);
  border-radius: var(--bbc-radius-sm);
  font-size: .875rem;
  color: var(--bbc-ink);
  min-height: 42px;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--bbc-orange);
  box-shadow: 0 0 0 .2rem var(--bbc-orange-ring);
}
.form-control.is-invalid { border-color: var(--bbc-red); }
.form-control::placeholder { color: #A9B0BC; }
textarea.form-control { min-height: 100px; max-height: 250px; }

.input-group-text {
  border: 1.5px solid var(--bbc-border);
  background: var(--bbc-surface);
  color: var(--bbc-slate);
  border-radius: var(--bbc-radius-sm);
}

.custom-file-label {
  border: 1.5px dashed var(--bbc-border);
  border-radius: var(--bbc-radius-sm);
  min-height: 42px; line-height: 1.9;
  color: var(--bbc-slate);
}
.custom-file-label::after {
  background: var(--bbc-navy); color: #fff;
  border-radius: 0 8px 8px 0;
  min-height: 39px; line-height: 1.9;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--bbc-orange); border-color: var(--bbc-orange);
}

/* Select2 & bootstrap-select mengikuti tema */
.select2-container--bootstrap4 .select2-selection {
  border: 1.5px solid var(--bbc-border) !important;
  border-radius: var(--bbc-radius-sm) !important;
  min-height: 42px !important;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered { line-height: 40px !important; }
.select2-container--bootstrap4.select2-container--focus .select2-selection {
  border-color: var(--bbc-orange) !important;
  box-shadow: 0 0 0 .2rem var(--bbc-orange-ring) !important;
}
.select2-container--bootstrap4 .select2-results__option--highlighted { background: var(--bbc-orange) !important; }
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  background: var(--bbc-orange-soft); border: 1px solid rgba(241,88,34,.25);
  color: var(--bbc-orange-deep); border-radius: 7px;
}

.bootstrap-select .btn-light, .bootstrap-select > .dropdown-toggle {
  border: 1.5px solid var(--bbc-border);
  border-radius: var(--bbc-radius-sm);
  background: #fff;
  min-height: 42px;
}

.bootstrap-duallistbox-container select { border: 1.5px solid var(--bbc-border); border-radius: var(--bbc-radius-sm); }

.note-editor.note-frame { border: 1.5px solid var(--bbc-border) !important; border-radius: var(--bbc-radius-sm); overflow: hidden; }
.note-editor.note-frame .note-toolbar { background: var(--bbc-surface); }

/* =========================================================================
   10. KOMPONEN LAIN (badge, alert, modal, dropdown, tab, progress)
   ========================================================================= */
.badge { font-weight: 600; padding: .38em .65em; border-radius: 7px; }
.badge-primary { background: var(--bbc-orange); }
.badge-dark { background: var(--bbc-navy); }
.badge-success { background: var(--bbc-green); }
.badge-danger { background: var(--bbc-red); }
.badge-info { background: var(--bbc-blue); }
.badge-warning { background: var(--bbc-yellow); color: #fff; }

.alert { border: none; border-radius: var(--bbc-radius-sm); border-left: 4px solid transparent; }
.alert-primary { background: var(--bbc-orange-soft); color: var(--bbc-orange-deep); border-left-color: var(--bbc-orange); }
.alert-success { background: #E8F7F0; color: var(--bbc-green-dark); border-left-color: var(--bbc-green); }
.alert-danger  { background: #FDECEC; color: var(--bbc-red-dark); border-left-color: var(--bbc-red); }
.alert-warning { background: #FEF5E2; color: #9A6A05; border-left-color: var(--bbc-yellow); }
.alert-info    { background: #EAF2FD; color: var(--bbc-blue-dark); border-left-color: var(--bbc-blue); }

.modal-content { border: none; border-radius: var(--bbc-radius); box-shadow: var(--bbc-shadow-lift); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--bbc-border); background: #fff; }
.modal-header .modal-title { font-family: var(--bbc-font-display); font-weight: 600; font-size: 1rem; }
.modal-footer { border-top: 1px solid var(--bbc-border); background: #FBFCFE; }

.dropdown-menu {
  border: 1px solid var(--bbc-border);
  border-radius: 14px;
  box-shadow: var(--bbc-shadow-lift);
  padding: .4rem;
  overflow: hidden;
}
.dropdown-item { border-radius: 9px; font-size: .85rem; font-weight: 500; color: var(--bbc-ink); padding: .5rem .8rem; }
.dropdown-item:hover { background: var(--bbc-orange-soft); color: var(--bbc-orange-deep); }
.dropdown-item i { color: var(--bbc-slate); width: 1.35rem; }
.dropdown-item:hover i { color: var(--bbc-orange); }
.dropdown-divider { border-color: var(--bbc-border); }

.content-wrapper .nav-tabs { border-bottom: 1.5px solid var(--bbc-border); }
.content-wrapper .nav-tabs .nav-link {
  border: none; color: var(--bbc-slate); font-weight: 600; font-size: .86rem;
  border-bottom: 2.5px solid transparent; border-radius: 0;
}
.content-wrapper .nav-tabs .nav-link.active {
  color: var(--bbc-orange); background: transparent;
  border-bottom-color: var(--bbc-orange);
}
.content-wrapper .nav-pills .nav-link { color: var(--bbc-slate); border-radius: 999px; font-weight: 600; }
.content-wrapper .nav-pills .nav-link.active { background: var(--bbc-grad-brand); color: #fff; }

.progress { border-radius: 999px; background: #E9EDF4; height: 10px; }
.progress-bar { background: var(--bbc-grad-brand); border-radius: 999px; }

/* SweetAlert2 */
.swal2-popup { border-radius: var(--bbc-radius) !important; font-family: var(--bbc-font-body) !important; }
.swal2-title { font-family: var(--bbc-font-display) !important; }
.swal2-styled.swal2-confirm { background: var(--bbc-grad-brand) !important; border-radius: var(--bbc-radius-sm) !important; box-shadow: none !important; }
.swal2-styled.swal2-cancel { border-radius: var(--bbc-radius-sm) !important; }

/* Toast */
.toast { border-radius: var(--bbc-radius-sm); border: 1px solid var(--bbc-border); }

/* =========================================================================
   11. FOOTER
   ========================================================================= */
.main-footer {
  background: #fff;
  border-top: 1px solid var(--bbc-border);
  color: var(--bbc-slate);
  font-size: .8rem;
  padding: .85rem 1.15rem;
}
.main-footer strong { color: var(--bbc-ink); font-weight: 600; }
.bbc-footer-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--bbc-grad-brand);
  margin-right: .45rem; vertical-align: baseline;
}

/* =========================================================================
   12. HALAMAN AUTH / LANDING
   ========================================================================= */
body.bbc-auth {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(241,88,34,.08), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(31,50,83,.07), transparent 60%),
    var(--bbc-surface);
}
body.bbc-auth::before { /* pita atas */
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 4px;
  background: var(--bbc-grad-brand); z-index: 1050;
}

.bbc-auth-nav {
  background: transparent !important;
  box-shadow: none !important;
  padding: 1.1rem 0 .25rem;
}
.bbc-auth-nav img { height: 44px; width: auto; }
@media (max-width: 575.98px) { .bbc-auth-nav img { height: 34px; } }

.content-landing { min-height: calc(100vh - 90px); display: flex; flex-direction: column; }

.bbc-auth-main { flex: 1; display: flex; align-items: center; padding: 1.5rem 0 2.5rem; }

.bbc-auth-card {
  background: var(--bbc-card);
  border: 1px solid var(--bbc-border);
  border-radius: 22px;
  box-shadow: var(--bbc-shadow-lift);
  overflow: hidden;
  animation: bbcFadeUp .45s ease both;
}

/* Panel kiri (hero navy) */
.bbc-auth-hero {
  position: relative;
  background: var(--bbc-grad-navy);
  color: #fff;
  padding: 2.4rem 2.1rem;
  display: flex; flex-direction: column;
}
.bbc-auth-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,.045) 21%, rgba(255,255,255,.045) 34%, transparent 35%, transparent),
    radial-gradient(circle at 0 50%, transparent 20%, rgba(255,255,255,.028) 21%, rgba(255,255,255,.028) 34%, transparent 35%, transparent);
  background-size: 64px 128px;
  pointer-events: none;
}
.bbc-auth-hero::after { /* lengkung cahaya oranye */
  content: '';
  position: absolute; right: -110px; bottom: -110px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,88,34,.4), transparent 65%);
  pointer-events: none;
}
.bbc-auth-hero > * { position: relative; z-index: 2; }
.bbc-hero-plate {
  display: inline-flex; align-self: flex-start;
  background: #fff; border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.6);
  margin-bottom: 1.5rem;
}
.bbc-hero-plate img { height: 52px; width: auto; display: block; }
.bbc-auth-hero h2 {
  color: #fff; font-size: 1.45rem; font-weight: 700; line-height: 1.35;
  letter-spacing: -.01em; margin-bottom: .65rem;
}
.bbc-auth-hero p { color: rgba(255,255,255,.65); font-size: .875rem; line-height: 1.65; margin-bottom: 1.4rem; }
.bbc-hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  align-self: flex-start;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--bbc-amber);
  background: rgba(249,157,28,.12);
  border: 1px dashed rgba(249,157,28,.4);
  border-radius: 999px;
  padding: .45rem .95rem;
}
.bbc-hero-foot {
  margin-top: auto; padding-top: 2rem;
  font-size: .72rem; color: rgba(255,255,255,.45);
}

/* Panel kanan (form / pilihan peran) */
.bbc-auth-body { padding: 2.4rem 2.3rem; display: flex; flex-direction: column; }
.bbc-auth-kicker {
  font-size: .72rem; font-weight: 700; color: var(--bbc-orange);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem;
}
.bbc-auth-title { font-size: 1.35rem; font-weight: 700; margin-bottom: .3rem; }
.bbc-auth-sub { font-size: .86rem; color: var(--bbc-slate); margin-bottom: 1.5rem; }

/* Daftar peran */
.bbc-role {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem .95rem;
  margin-bottom: .6rem;
  background: #fff;
  border: 1.5px solid var(--bbc-border);
  border-radius: 14px;
  color: var(--bbc-ink);
  font-weight: 600; font-size: .9rem;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.bbc-role .bbc-role-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  font-size: .95rem;
  color: var(--bbc-navy-3);
  background: rgba(31,50,83,.08);
  transition: .16s ease;
}
.bbc-role .bbc-role-arrow { margin-left: auto; color: var(--bbc-gray); transition: .16s ease; }
.bbc-role:hover {
  border-color: var(--bbc-orange);
  box-shadow: 0 10px 22px -12px rgba(241,88,34,.45);
  transform: translateY(-2px);
  color: var(--bbc-ink);
}
.bbc-role:hover .bbc-role-icon { color: #fff; background: var(--bbc-grad-brand); }
.bbc-role:hover .bbc-role-arrow { color: var(--bbc-orange); transform: translateX(3px); }

.bbc-auth-foot {
  margin-top: auto; padding-top: 1.4rem;
  border-top: 1px solid var(--bbc-border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem;
  font-size: .74rem; color: var(--bbc-slate);
}

.bbc-back-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; color: var(--bbc-slate);
  margin-bottom: 1.1rem;
}
.bbc-back-link:hover { color: var(--bbc-orange); }

.bbc-auth-body label { margin-bottom: .35rem; }
.bbc-auth-body .form-group { margin-bottom: 1.05rem; }
.btn-block-login { width: 100%; padding: .65rem 1rem; font-size: .92rem; }

.toggle-password { cursor: pointer; user-select: none; }
.toggle-password:hover { color: var(--bbc-orange); }

@media (max-width: 991.98px) {
  .bbc-auth-hero { padding: 1.9rem 1.6rem; }
  .bbc-hero-plate img { height: 42px; }
  .bbc-auth-hero h2 { font-size: 1.2rem; }
  .bbc-hero-foot { display: none; }
  .bbc-auth-body { padding: 1.9rem 1.6rem; }
}

/* =========================================================================
   13. UTILITAS LAMA (dipertahankan agar view lain tidak rusak, di-restyle)
   ========================================================================= */

/* timer */
.timer { font-size: 24px; font-weight: 700; font-family: var(--bbc-font-display); }
.timer-digit {
  background: var(--bbc-navy); color: #fff;
  padding: 2px 8px; border-radius: 8px;
}

/* e-book button */
._df_button:hover { background-color: #f0f0f0; color: #333; cursor: pointer; filter: brightness(70%); }

/* form-check ujian */
.form-check-input-ujian {
  width: 25px; height: 25px; cursor: pointer;
  border-radius: 6px; accent-color: var(--bbc-orange);
}

/* tombol menu landing (gambar) */
.btn-landing-hover { display: inline-block; position: relative; }
.btn-landing {
  width: 198px; height: 198px;
  border-radius: var(--bbc-radius);
  box-shadow: var(--bbc-shadow);
  transition: all .25s ease;
}
.btn-landing-hover:hover .btn-landing {
  filter: none;
  transform: translateY(-4px);
  box-shadow: var(--bbc-shadow-lift);
}

/* list */
ul.no-indent { padding-left: 0; margin-left: 0; list-style-position: inside; }

/* komentar */
.img-komentar { width: 72px !important; height: 96px !important; border-radius: 10px; }

/* tabel detail */
.th { text-align: left !important; padding: 6px !important; width: 175px !important; vertical-align: top !important; color: var(--bbc-slate); font-weight: 600; }
.td { padding: 6px !important; vertical-align: top !important; }

/* brand util lama */
.brand-container { display: flex; align-items: center; justify-content: center; }
.brand-container.column { flex-direction: column; text-align: center; }
.logo { margin-right: 8px; }
.brand-container.column .logo { margin-right: 0; margin-bottom: 8px; }

/* foto profil bulat */
.circle { position: relative; width: 50px; height: 50px; overflow: hidden; border-radius: 50%; }
.circle img { width: 60.75px; height: 81px; margin-left: -18.25px; }

.profile-card {
  max-width: 600px; margin: auto;
  background: #fff; padding: 25px;
  box-shadow: var(--bbc-shadow);
  border: 1px solid var(--bbc-border);
  border-radius: var(--bbc-radius);
}
.profile-card img { width: 200px; height: auto; border-radius: 14px; }
.profile-card h3 { margin-top: 15px; margin-bottom: 10px; font-weight: 700; }
.profile-card p { color: var(--bbc-ink); font-size: 17px; margin-bottom: 10px; }
.profile-card .btn-group { width: 100%; }
.profile-card .btn-group .btn { width: 50%; }

.img-profile {
  width: 216px !important; height: 288px !important;
  border: 6px solid #fff !important;
  box-shadow: var(--bbc-shadow-lift) !important;
  border-radius: 14px !important;
}
.img-background {
  width: 400px !important;
  border: 6px solid #fff !important;
  box-shadow: var(--bbc-shadow-lift) !important;
  border-radius: 14px !important;
}

/* landing lama */
.background-landing { background-size: cover; background-repeat: no-repeat; background-position: center; }
.footer-landing {
  background: #fff; border-top: 1px solid var(--bbc-border);
  color: var(--bbc-slate); padding: 1rem;
}

/* jumlah laporan */
.jml-laporan { width: 200px; }
@media (min-width: 992px) { .jml-laporan { width: 350px; } }

/* preview */
.col-preview { max-height: 500px; overflow-y: auto; }

/* drag & drop */
.file-drop-area {
  position: relative; display: flex; align-items: center;
  width: 100%; max-width: 100%; padding: 25px;
  border: 1.5px dashed #C4CBD8;
  border-radius: var(--bbc-radius-sm);
  background: #FBFCFE;
  transition: .2s;
}
.file-drop-area:hover { border-color: var(--bbc-orange); background: var(--bbc-orange-soft); }
.choose-file-button {
  flex-shrink: 0; background: var(--bbc-navy); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 15px; margin-right: 10px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.file-message { font-size: 14px; color: var(--bbc-slate); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-input-drop { position: absolute; left: 0; top: 0; height: 100%; width: 100%; cursor: pointer; opacity: 0; }

/* sticky footer lama */
main > .container { padding: 60px 15px 0; }
.footer { background-color: #f5f5f5; }
.footer > .container { padding-right: 15px; padding-left: 15px; }

/* header responsif lama */
.header-title { text-align: center; }
.header-button { text-align: center; }
@media (min-width: 992px) {
  .header-title { text-align: left; }
  .header-button { text-align: right; }
}

/* ukuran gambar util */
.h-500 { height: 32rem !important; }
@media (max-width: 576px) { .h-500 { height: 16rem !important; } }
.img-w-200 { width: 200px !important; }
.img-w-100-hm-100 { max-height: 100px !important; width: 100px !important; }
.img-w-100-mh-60 { max-height: 60px !important; width: 100% !important; }
.img-w-100-mh-45 { max-height: 45px !important; width: 100% !important; }
.img-w-75-hm-100 { max-height: 100px !important; width: 75px !important; }
.img-w-30 { width: 30px !important; }
.img-w-40 { width: 40px !important; }
.img-w-50 { width: 50px !important; }
.img-w-55 { width: 55px !important; }
.img-w-60 { width: 60px !important; }
.img-w-75 { width: 75px !important; }
.img-w-85 { width: 85px !important; }
.img-w-100 { width: 100px !important; }
.img-h-50 { height: 50px !important; }
.img-h-100 { height: 100px !important; }
.img-w-150 { width: 150px !important; }
.img-w-250 { width: 250px !important; }
.img-w-300 { width: 300px !important; }
.img-hm-200 { max-height: 200px !important; }

/* scroll to top */
.scroll-to-top {
  position: fixed; right: 1rem; bottom: 1rem; display: none;
  width: 2.75rem; height: 2.75rem; text-align: center;
  color: #fff; background: var(--bbc-grad-brand);
  line-height: 46px; border-radius: 12px;
  box-shadow: 0 10px 20px -8px rgba(241,88,34,.6);
}
.scroll-to-top:focus, .scroll-to-top:hover { background: var(--bbc-orange-dark); color: #fff; }
.scroll-to-top i { font-weight: 800; }

/* tabel bergaya kartu (mobile) */
.cards tbody { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 25px; }
.cards tbody tr {
  display: flex; flex-direction: column;
  width: 100%; max-width: 17rem;
  border: 1px solid var(--bbc-border);
  border-radius: var(--bbc-radius);
  box-shadow: var(--bbc-shadow);
  overflow: hidden; background: #fff;
}
.cards thead { display: none; }
.cards tbody td { display: block; border: none; }
.cards td:before { content: attr(data-label); font-weight: 600; color: var(--bbc-slate); display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.provider-img { margin: 0; border-radius: 14px 14px 0 0; }
.table-responsive { overflow-x: auto; }

.cards-lab-virtual tbody { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 25px; }
.cards-lab-virtual tbody tr {
  display: flex; flex-direction: column; width: 45%;
  border: 1px solid var(--bbc-border);
  border-radius: var(--bbc-radius);
  box-shadow: var(--bbc-shadow);
  overflow: hidden; background: #fff;
}
.cards-lab-virtual tbody tr td iframe { height: 50vh; }
.cards-lab-virtual thead { display: none; }
.cards-lab-virtual tbody td { display: block; border: none; }
.cards-lab-virtual td:before { content: attr(data-label); font-weight: 600; color: var(--bbc-slate); display: block; }

/* =========================================================================
   14. RESPONSIVE HALUS
   ========================================================================= */
@media (max-width: 767.98px) {
  .card-body { padding: .9rem; }
  .card-header { padding: .75rem .9rem; }
  .stat-value { font-size: 1.55rem; }
  .breadcrumb { display: none !important; } /* hemat ruang di HP, judul sudah jelas */
  .main-footer { text-align: center; }
  .main-footer .float-right { float: none !important; display: block !important; margin-top: .25rem; }
}

/* Cetak */
@media print {
  .main-sidebar, .main-header, .main-footer, .btn, .breadcrumb { display: none !important; }
  .content-wrapper { margin: 0 !important; background: #fff !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===========================
   LOGO
=========================== */

/* Default */
.logo-lg {
    display: block;
    text-align: center;
}

.logo-mini {
    display: none;
    text-align: center;
}

/* Sidebar collapse */
.sidebar-mini.sidebar-collapse .logo-lg {
    display: none;
}

.sidebar-mini.sidebar-collapse .logo-mini {
    display: block;
}

/* Saat hover sidebar, tampilkan logo besar lagi */
.sidebar-mini.sidebar-collapse .main-sidebar:hover .logo-lg {
    display: block !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar:hover .logo-mini {
    display: none !important;
}


/* ===========================
   USER PANEL
=========================== */

/* Collapse = sembunyikan nama */
.sidebar-mini.sidebar-collapse .user-panel .col:last-child {
    display: none !important;
}

/* Foto tetap tampil */
.sidebar-mini.sidebar-collapse .user-panel .image {
    display: block !important;
}

/* Hover = tampilkan nama lagi */
.sidebar-mini.sidebar-collapse .main-sidebar:hover .user-panel .col:last-child {
    display: flex !important;
    align-items: center;
}