/* SIGALUH EMAS - GLOBAL BRIGHT THEME
   Global override untuk seluruh halaman panel, termasuk halaman modul.
   Tidak mengubah logika PHP, database, form, atau proses CRUD.
*/
:root {
  color-scheme: light;
  --bright-bg: #f5f7fb;
  --bright-surface: #ffffff;
  --bright-border: #e3e8f0;
  --bright-text: #202b3c;
  --bright-muted: #667085;
  --bright-blue: #2563eb;
  --bright-blue-soft: #eff6ff;
  --bright-shadow: 0 2px 10px rgba(15, 23, 42, .055);
}

html, body,
html body,
body.with-login,
#page-wrapper,
#main-content,
#page-content {
  background: var(--bright-bg) !important;
  color: var(--bright-text) !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
}

html body { min-height: 100%; }
#page-wrapper { min-height: 100vh !important; }
#main-content { min-height: calc(100vh - 64px) !important; }
#page-content { background: transparent !important; }

/* Header cerah, tanpa gradient gelap atau efek gelombang */
html body #topbar,
html body #topbar.navbar,
html body #topbar.navbar-dark,
html body #topbar.bg-dark {
  background: #fff !important;
  background-image: none !important;
  color: #263244 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bright-border) !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .045) !important;
}
html body #topbar::before,
html body #topbar::after,
html body .wave-water,
html body .wave-topbar { display: none !important; }
html body #topbar .navbar-brand,
html body #topbar .navbar-brand span,
html body #topbar .nav-link,
html body #topbar .nav-link i,
html body #topbar span,
html body #topbar #realtime-clock {
  color: #344054 !important;
  text-shadow: none !important;
}
html body #topbar .nav-link:hover {
  color: var(--bright-blue) !important;
  background: var(--bright-blue-soft) !important;
  border-radius: 10px !important;
}

/* Sidebar abu-biru muda */
html body #sidebar,
html body #sidebar.navbar-dark,
html body #sidebar.bg-dark {
  background: #eef3fa !important;
  background-image: none !important;
  border-right: 1px solid #e1e7f0 !important;
  box-shadow: none !important;
}
html body #sidebar ul,
html body #sidebar .nav,
html body #sidebar .navbar-nav,
html body #sidebar li { background: transparent !important; }
html body #sidebar a,
html body #sidebar .nav-link,
html body #sidebar .nav-item > a,
html body #sidebar li > a {
  color: #344054 !important;
  background: transparent !important;
  text-shadow: none !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
}
html body #sidebar a i,
html body #sidebar .nav-link i { color: #667085 !important; }
html body #sidebar a:hover,
html body #sidebar .nav-link:hover,
html body #sidebar li > a:hover {
  color: #174ea6 !important;
  background: #e1ebfb !important;
}
html body #sidebar a.active,
html body #sidebar .nav-link.active,
html body #sidebar li.active > a,
html body #sidebar .active > a {
  color: #174ea6 !important;
  background: #d8e7ff !important;
  font-weight: 650 !important;
}
html body #sidebar .section-title,
html body #sidebar .section-titlejudul,
html body #sidebar .nav-header {
  color: #667085 !important;
  background: transparent !important;
  text-shadow: none !important;
}

/* Konten, panel, kartu, dan widget */
html body #page-content .card,
html body #page-content .panel,
html body #page-content .well,
html body #page-content .jumbotron,
html body #page-content .list-group,
html body #page-content .modal-content,
html body #page-content .dropdown-menu {
  background-color: #fff !important;
  color: var(--bright-text) !important;
  border-color: var(--bright-border) !important;
  box-shadow: var(--bright-shadow) !important;
}
html body #page-content .card-header,
html body #page-content .panel-heading {
  background: #f8faff !important;
  color: var(--bright-text) !important;
  border-color: var(--bright-border) !important;
}
html body #page-content .card-body,
html body #page-content .panel-body,
html body #page-content .modal-body,
html body #page-content .list-group-item {
  color: var(--bright-text) !important;
}
html body #page-content h1,
html body #page-content h2,
html body #page-content h3,
html body #page-content h4,
html body #page-content h5,
html body #page-content h6,
html body #page-content .page-title,
html body #page-content label,
html body #page-content .control-label {
  color: #202b3c !important;
  text-shadow: none !important;
}
html body #page-content p,
html body #page-content li,
html body #page-content td,
html body #page-content th,
html body #page-content .form-text { color: #344054; }

/* Hilangkan latar gelap bootstrap pada komponen umum, tanpa menghapus warna status */
html body #page-content .bg-dark,
html body #page-content .bg-secondary,
html body #page-content .navbar-dark,
html body #page-content .table-dark {
  background: #f1f5fb !important;
  color: #263244 !important;
}
html body #page-content .table-dark th,
html body #page-content .table-dark td { color: #263244 !important; }
html body #page-content .text-white,
html body #page-content .text-light { color: #344054 !important; }

/* Tabel seluruh modul */
html body #page-content table,
html body #page-content .table {
  background: #fff !important;
  color: #344054 !important;
  border-color: var(--bright-border) !important;
}
html body #page-content .table thead th,
html body #page-content table thead th {
  background: #f5f8fd !important;
  color: #475467 !important;
  border-color: var(--bright-border) !important;
}
html body #page-content .table tbody tr:hover,
html body #page-content table tbody tr:hover { background: #f7faff !important; }
html body #page-content .table td,
html body #page-content .table th { border-color: var(--bright-border) !important; }

/* Input dan area pencarian */
html body #page-content input:not([type="checkbox"]):not([type="radio"]),
html body #page-content select,
html body #page-content textarea,
html body #page-content .form-control,
html body #page-content .form-select {
  background-color: #fff !important;
  color: #263244 !important;
  border-color: #cbd5e1 !important;
}
html body #page-content input::placeholder,
html body #page-content textarea::placeholder { color: #98a2b3 !important; }
html body #page-content .form-control:focus,
html body #page-content .form-select:focus,
html body #page-content input:focus,
html body #page-content textarea:focus {
  border-color: #75a7f7 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

html body #page-content .dropdown-item { color: #344054 !important; }
html body #page-content .dropdown-item:hover { background: #f1f5fb !important; }
html body #page-content hr { border-color: var(--bright-border) !important; }
html body #page-content .text-muted { color: var(--bright-muted) !important; }
html body #page-content .page-header { border-color: var(--bright-border) !important; }
html body #page-content .pagination .page-link { color: var(--bright-blue) !important; }

/* Responsif */
@media (max-width: 767px) {
  html body #main-content { padding-left: 12px !important; padding-right: 12px !important; }
  html body #sidebar { background: #eef3fa !important; }
}

/* GOOGLE SEARCH CONSOLE STYLE - FINAL OVERRIDE ALL MODULE VIEWS */
:root{--gsc-bg:#f8f9fa;--gsc-card:#fff;--gsc-border:#dadce0;--gsc-text:#202124;--gsc-muted:#5f6368;--gsc-blue:#1a73e8;}
html body #page-content,html body #page-content .page,html body #page-content section.page{color:var(--gsc-text)!important;background:transparent!important;text-shadow:none!important}
html body #page-content [class*="card"],html body #page-content [class*="-wrap"],html body #page-content [class*="-wrapper"],html body #page-content [class*="panel"],html body #page-content .form-card,html body #page-content .custom-card,html body #page-content .view-card,html body #page-content .user-list-page,html body #page-content .user-card,html body #page-content .kategori-list,html body #page-content .slider-card,html body #page-content .custom-header,html body #page-content .info-card,html body #page-content .detail-card,html body #page-content .content-card,html body #page-content .profile-card,html body #page-content .stat-card{background-color:var(--gsc-card)!important;background-image:none!important;color:var(--gsc-text)!important;border:1px solid var(--gsc-border)!important;border-radius:12px!important;box-shadow:0 1px 2px rgba(60,64,67,.08),0 1px 3px rgba(60,64,67,.05)!important;text-shadow:none!important}
html body #page-content [style*="#0f172a"],html body #page-content [style*="#1e293b"],html body #page-content [style*="#111827"],html body #page-content [style*="#020617"],html body #page-content [style*="rgba(15, 23, 42"],html body #page-content [style*="rgba(15,23,42"]{background-color:#fff!important;background-image:none!important;color:var(--gsc-text)!important;border-color:var(--gsc-border)!important;text-shadow:none!important}
html body #page-content .section-title,html body #page-content .section-titlejudul,html body #page-content .kategori-title,html body #page-content .user-head,html body #page-content .custom-header,html body #page-content .form-card h1,html body #page-content .form-card h2,html body #page-content .form-card h3{color:var(--gsc-text)!important;text-shadow:none!important;background-color:transparent!important}
html body #page-content label,html body #page-content .control-label,html body #page-content .form-label,html body #page-content .info-row,html body #page-content .label,html body #page-content .muted,html body #page-content small,html body #page-content .text-white,html body #page-content .text-light{color:var(--gsc-muted)!important;text-shadow:none!important}
html body #page-content p,html body #page-content span,html body #page-content strong,html body #page-content b,html body #page-content li,html body #page-content .value,html body #page-content .kategori-title{text-shadow:none!important}
html body #page-content .form-control,html body #page-content input:not([type="checkbox"]):not([type="radio"]),html body #page-content textarea,html body #page-content select,html body #page-content .custom-select,html body #page-content .selectize-input,html body #page-content .selectize-dropdown,html body #page-content .dropzone{background:#fff!important;color:var(--gsc-text)!important;border:1px solid #dadce0!important;border-radius:8px!important;box-shadow:none!important}
html body #page-content input::placeholder,html body #page-content textarea::placeholder{color:#80868b!important}
html body #page-content select option{background:#fff!important;color:var(--gsc-text)!important}
html body #page-content .table,html body #page-content table{background:#fff!important;color:var(--gsc-text)!important;border-color:var(--gsc-border)!important}
html body #page-content .table thead,html body #page-content .table thead th,html body #page-content table thead th{background:#f8f9fa!important;color:#5f6368!important;border-color:var(--gsc-border)!important}
html body #page-content .table tbody tr,html body #page-content .table tbody td,html body #page-content table tbody td{color:#3c4043!important;border-color:#e8eaed!important}
html body #page-content .table tbody tr:nth-child(odd){background:#fff!important}html body #page-content .table tbody tr:nth-child(even){background:#fafbfc!important}html body #page-content .table tbody tr:hover{background:#f1f6fe!important}
html body #page-content .btn-primary,html body #page-content .btn-submit{background:#1a73e8!important;border-color:#1a73e8!important;color:#fff!important}
html body #page-content .btn-default,html body #page-content .btn-secondary,html body #page-content .btn-cancel{background:#fff!important;border:1px solid #dadce0!important;color:#3c4043!important}
html body #page-content .btn{box-shadow:none!important;text-shadow:none!important}
html body #page-content .modal-content,html body #page-content .dropdown-menu{background:#fff!important;color:var(--gsc-text)!important;border:1px solid var(--gsc-border)!important}
html body #page-content .dropdown-item{color:#3c4043!important}html body #page-content .dropdown-item:hover{background:#f1f3f4!important}
html body #page-content .pagination .page-link{background:#fff!important;color:#1a73e8!important;border-color:#dadce0!important}html body #page-content .pagination .active .page-link{background:#1a73e8!important;color:#fff!important}
html body #page-content .alert{color:#202124!important;text-shadow:none!important}html body #page-content .badge{text-shadow:none!important}
html body #page-content .page{padding:4px 0 22px!important}html body #page-content .card,html body #page-content .panel,html body #page-content .form-card,html body #page-content .custom-card,html body #page-content .view-card{margin-bottom:18px!important}
@media(max-width:767px){html body #page-content [class*="card"],html body #page-content .form-card,html body #page-content .custom-card{border-radius:10px!important}}

/* =====================================================
   FORCE MAIN PAGE TOP POSITION = 0px
   Override legacy body padding and all content offsets
===================================================== */
html,
html body,
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html body #main-content {
    padding-top: 75px !important;
    margin-top: 0 !important;
    top: 0 !important;
}

html body #page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    top: 0 !important;
}

html body #page-content > .page,
html body #page-content section.page,
html body #page-content .page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html body #page-content .page-header,
html body #page-content .page-title {
    margin-top: 0 !important;
}
