:root {
	--header-height: 60px;
	--sidebar-width: 300px;
}
body {
    background-color: #f4f6f9;
    scroll-behavior: smooth;
}

/* =========================
   BODY & APP SIDEBAR (SCROLLBAR TRANSITION FIX)
========================= */
html, body,
#app-sidebar {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
  transition: scrollbar-color 0.3s ease;
}

/* WebKit browsers (Chrome, Safari, Edge, Opera) */
html::-webkit-scrollbar, body::-webkit-scrollbar,
#app-sidebar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track,
#app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* 1. Kondisi Awal (Idle): Transisi WAJIB dipasang di sini */
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb,
#app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1); 
  border-radius: 10px;
  
  /* KUNCI UTAMA: Tulis spesifik properti 'background' beserta durasinya */
  transition: background 0.3s ease-in-out !important; 
}

/* 2. Kondisi Saat Hover Konten/Halaman */
html:hover::-webkit-scrollbar-thumb, body:hover::-webkit-scrollbar-thumb,
#app-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  
  /* Tegaskan kembali transisinya di sini agar tidak diputus oleh browser */
  transition: background 0.3s ease-in-out !important;
}

/* 3. Kondisi Saat Hover TEPAT di atas Thumb */
/* TRIK: Gunakan kombinasi selektor parent DAN thumb:hover agar tingkat spesifikasinya sama */
html:hover::-webkit-scrollbar-thumb:hover, body:hover::-webkit-scrollbar-thumb:hover,
#app-sidebar:hover::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover,
#app-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4) !important;
  
  /* Jaga kelancaran transisi saat kursor berpindah dari konten ke thumb */
  transition: background 0.3s ease-in-out !important;
}

/* Firefox Hover State */
html:hover, body:hover,
#app-sidebar:hover {
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}
/* =========================
   BODY & APP SIDEBAR - END
========================= */

/* BEGIN of HEADER */
header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); /* Border diperhalus */
    
    /* Tambahkan ini untuk efek shadow */
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
}
.navbar {
	height: var(--header-height);
}
@media (max-width: 991px) {
    header, .navbar {
        height: auto;
    }
}
header a.nav-link {
    color: rgb(33, 37, 41);
}
.btn-header {
    font-size: 16px;
    padding: 6px 12px;
    border-color: rgb(108, 117, 125);
    line-height: 24px;
}
.btn-header:focus,
.btn-header:active,
.btn-header:focus-visible {
	box-shadow: none;
	outline: none;
}
#btn-daftar {
    border: 1px solid #dee2e6;
    color: rgb(26, 115, 232);
    border-radius: 50px;
    padding: 0 25px;
    height: 35px;
    line-height: 35px;
    text-decoration: none;
    transition: .3s;
}
#btn-daftar:hover {
    border: 1px solid rgb(26, 115, 232);
}
#btn-login {
    background-color: rgb(26, 115, 232);
    color: rgb(255, 255, 255);
    border-radius: 50px;
    padding: 0 25px;
    height: 35px;
    line-height: 35px;
    text-decoration: none;
    transition: .3s;
}
#btn-login:hover {
    background-color: #174ea6;
}
@media (min-width: 992px) {
    header li.nav-item:first-child {
        margin-left: 15px;
    }
    header li.nav-item:not(:last-child) {
        margin-right: 15px;
    }
}
.navbar .dropdown-toggle::after {
  content: none;
}
#navbarDropdown,
#navbarDropdown:focus,
#navbarDropdown:active,
#navbarDropdown:focus-visible,
#navbarDropdown.show {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

  /* ===========================
   Tombol Menu Mobile
=========================== */
#toggle-sidebar{
    position: relative;
    background: linear-gradient(135deg,#4b5563,#1f2937);
    color:#fff;
    border:none;
    font-weight:700;
    border-radius:12px;
    padding:10px 18px;
    animation: menuPulse 2s infinite;
    transition:.25s;
}

#toggle-sidebar:hover{
    transform:translateY(-2px);
    box-shadow:
        0 0 18px rgba(75,85,99,.55),
        0 12px 24px rgba(75,85,99,.35);
}

@keyframes menuPulse{
    0%{
        box-shadow:
            0 0 0 0 rgba(75,85,99,.45),
            0 8px 18px rgba(75,85,99,.25);
    }

    70%{
        box-shadow:
            0 0 0 12px rgba(75,85,99,0),
            0 8px 22px rgba(75,85,99,.35);
    }

    100%{
        box-shadow:
            0 0 0 0 rgba(75,85,99,0),
            0 8px 18px rgba(75,85,99,.25);
    }
}
.user-menu{

    width:300px;

    padding:8px;

    border:none;

    border-radius:18px;

    background:rgba(248,250,252,.88);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    box-shadow:
        0 12px 35px rgba(15,23,42,.12),
        0 2px 10px rgba(15,23,42,.06);

    overflow:hidden;
}

.user-header{

    padding:8px !important;

}

.user-avatar{

    border-radius:50%;

    object-fit:cover;

    border:2px solid rgba(255,255,255,.9);

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

.membership-badge{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:4px 10px;

    border-radius:999px;

    background:linear-gradient(135deg,#FFF8E1,#FDE68A);

    color:#92400e;

    border:1px solid #FCD34D;

    font-size:.74rem;

    font-weight:700;

}

.membership-badge img{

    border-radius:50%;

}

.user-link{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px 12px;

    border-radius:12px;

    transition:.22s ease;

}

.user-link:hover{

    background:rgba(37,99,235,.08);

    transform:translateX(2px);

}

.user-link>div>div{

    font-weight:600;

    font-size:.94rem;

}

.user-link small{

    display:block;

    color:#6b7280;

    font-size:.73rem;

    margin-top:2px;

}

.menu-icon{

    width:36px;

    height:36px;

    border-radius:10px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg,#EEF4FF,#DBEAFE);

    color:#2563EB;

    font-size:17px;

    transition:.22s ease;

    flex-shrink:0;

}

.user-link:hover .menu-icon{

    background:linear-gradient(135deg,#2563EB,#3B82F6);

    color:#fff;

    transform:scale(1.06);

}

.logout:hover{

    background:rgba(239,68,68,.08);

}

.logout:hover .menu-icon{

    background:linear-gradient(135deg,#EF4444,#DC2626);

    color:#fff;

}

.dropdown-divider{

    margin:.45rem 0;

    opacity:.12;

}
/* END of HEADER */

/* Body wrapper below header */
#app-body {
    padding: 0;
}
/* Body wrapper below header */

/* BEGIN of SIDEBAR */
#app-sidebar {
    width: var(--sidebar-width);
	position: sticky;
	top: var(--header-height);
	height: calc(100vh - var(--header-height));
	background-color: #FFFFFF;
	overflow-y: auto;
    transition: 0.3s ease;
}

@media (max-width: 991px) {
    #app-sidebar {
      position: fixed;
      top: 0;
      left: calc(-1 * var(--sidebar-width)); /* sembunyikan di kiri */
      width: var(--sidebar-width);
      max-width: 85%;
      height: 100%;
      z-index: 1002;
    }

    /* Sidebar aktif */
    #app-sidebar.active {
      left: 0;
    }
    
    /* Overlay default */
    #sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
      backdrop-filter: blur(4px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 1001;
    }
    
    /* Overlay muncul */
    #sidebar-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }
}

/* END of SIDEBAR */

/* BEGIN of SIDEBAR MENU */

/* =========================
   GROUP TITLE
========================= */
#app-sidebar .menu {
    list-style: none;
    padding: 10px 10px 20px;
    margin: 0;
}

#app-sidebar .menu-group {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    padding: 1rem 1rem 0.25rem;
}

/* =========================
   LINK
========================= */

#app-sidebar a,
#app-sidebar .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

#app-sidebar a {
    cursor: pointer;
}

#app-sidebar .menu-toggle {
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

#app-sidebar a:hover,
#app-sidebar .menu-toggle:hover {
    background: #f1f3f5;
}

#app-sidebar .menu-toggle:focus {
    outline: none;
}

/* kiri */

#app-sidebar .menu-left {
    display: flex;
    align-items: center;
    gap: .6rem;
}

#app-sidebar .menu-text {
    white-space: nowrap;
}

/* kanan */

#app-sidebar .menu-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* submenu */

#app-sidebar .submenu {
    list-style: none;
    padding-left: 1.25rem;
    height: 0;
    overflow: hidden;
    transition: height .3s ease;
}

#app-sidebar .submenu a {
    font-size: .95rem;
    border-radius: 6px;
}

/* active */

#app-sidebar .menu > li.active > a,
#app-sidebar .menu > li.active > .menu-toggle,
#app-sidebar .submenu > li.active > a {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

/* chevron */

#app-sidebar .bi-chevron-down {
    transition: transform .3s ease;
}

#app-sidebar .has-submenu.open > .menu-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

/* badge */

#app-sidebar .badge {
    font-size: .65rem;
    padding: .25em .45em;
    border-radius: 10px;
    font-weight: 700;
}

.badge-primary { background:#0d6efd;color:#fff; }
.badge-warning { background:#ffc107;color:#212529; }
.badge-success { background:#198754;color:#fff; }
.badge-danger  { background:#dc3545;color:#fff; }
.badge-info    { background:#0dcaf0;color:#003c44; }

/* =========================
   CUSTOM TYPE: SPECIAL
========================= */

#app-sidebar .custom-special > a,
#app-sidebar .custom-special > .menu-toggle {
    background: linear-gradient(90deg,#ffe8a1,#fff3cd);
    color:#664d03;
    border:1px solid #ffe69c;
}

#app-sidebar .custom-special > a:hover,
#app-sidebar .custom-special > .menu-toggle:hover {
    background: linear-gradient(90deg,#ffdf7e,#ffe69c);
}

#app-sidebar .custom-special > a i,
#app-sidebar .custom-special > .menu-toggle i {
    color:#ff9800;
}

/* =========================
   CUSTOM TYPE: PREMIUM
========================= */

#app-sidebar .custom-premium > a,
#app-sidebar .custom-premium > .menu-toggle {
    background: linear-gradient(90deg,#e7d7ff,#f4edff);
    color:#4b2aad;
    border:1px solid #d5c2ff;
}

#app-sidebar .custom-premium > a i,
#app-sidebar .custom-premium > .menu-toggle i {
    color:#7b4dff;
}

/* =========================
   CUSTOM TYPE: DANGER
========================= */

#app-sidebar .custom-danger > a,
#app-sidebar .custom-danger > .menu-toggle {
    background:#fff1f1;
    color:#842029;
    border:1px solid #f5c2c7;
}

#app-sidebar .custom-danger > a i,
#app-sidebar .custom-danger > .menu-toggle i {
    color:#dc3545;
}
/*END of SIDEBAR MENU */

/* BEGIN of JUDUL*/
#judul {
    position: relative;
    padding: 70px 20px;
    background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjANrKg97A3GOXD-bYPiXQeBXDULrWZsikV7H9oOhQvUr487P5xibw3022frZCSUEITjRIN54XqPzgQyKzfg0W2jodrjqbseZmPe7VeYgyVHsx3xNdCJHpDdMGClRoOgpkUsf-_Oo3JtdnXY6tmosVpxA1WOi_Gu9hs7jKOFGR40qPqqfe1pt9JD497zxR5/s16000/3d5ab0498551b2cb378b0b8d8959d509.jpg");
    /*background-repeat: repeat;*/
    /*background-size: cover;*/
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; /* teks vertical center */
    align-items: center;    /* teks horizontal center */
    animation: panBackground 150s linear infinite;
}

#judul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* kombinasi blur dan gradien gelap */
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.6));
    /*backdrop-filter: blur(5px);*/
    /*-webkit-backdrop-filter: blur(5px);*/
    z-index: 0;
}

#judul * {
    position: relative;
    z-index: 1;
    text-align: center; /* supaya teks tetap di tengah */
}
#judul h1 {
    opacity: 0.9;
}
@keyframes panBackground {
    0% { background-position: center top; }
    50% { background-position: center bottom; }
    100% { background-position: center top; }
}
#sub-judul {
    font-size:20px;
    display:block;
}
/* END of JUDUL*/

/* BEGIN of APP MAIN */
#app-main {
    flex: 1;
    min-width: 0;
	background-color: #FFFFFF;
}
.kotak {
    background-color: #ffffff;                 /* putih */
    border-radius: 12px;                       /* sudut lembut */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);  /* shadow halus */
    padding: 1.5rem;                           /* ruang nyaman untuk konten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#main-content p {
    text-align: justify;
}
#main-content img {
    max-width: 100%;
    height: auto;
}
/* END of APP MAIN */

/* BEGIN of BREADCRUMB */
/* Styling Compact Hero Container */
.dashboard-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

/* Judul Murni di dalam Hero */
.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a; /* Slate 900 */
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Reset utility bawaan agar styling menyatu sempurna di dalam Hero */
.dashboard-hero .bb-breadcrumb-min {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.dashboard-hero .bb-breadcrumb-wrap a {
    color: #2563eb; /* Warna link biru bootstrap-style */
}

.dashboard-hero .bb-breadcrumb-wrap .current {
    color: #64748b; /* Slate 500 untuk posisi aktif */
}
/* END of BREADCRUMB */

/* BEGIN of KATEGORI */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag {
    background: #007bff;
    color: #fff;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
    transition: background 0.2s;
    cursor: default;
}

.tag:hover {
    background: #0056b3;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 12px 0;
}

/* END of KATEGORI */

/* BEGIN of FOOTER */
footer {
    background-color: #1D2230;
    color: #9EA7B0;
}
.footer-menu {
    list-style-type: none;
    padding: 0;
}
.footer-menu li:not(:last-child) {
  margin-bottom: 8px;
}
.footer-menu li a {
    text-decoration: none;
    color: #9EA7B0!important;
}
.footer-menu li a:hover {
    text-decoration: underline;
}
.store {
    background-color: #06070A;
    color: #FFFFFF;
    padding: 4px 15px 5px 15px;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    width: 160px;
    display: flex;
    align-items: center;
    text-align: left;
}

.store-logo {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.store-text span {
    font-size: 12.8px;
    display: block;
}

.store-text span:nth-of-type(2) {
    font-size: 17px;
    margin-top: -7px;
}

#bromax-ads {
  font-weight: 600;
  text-decoration: none;

  /* Shimmer effect */
  background: linear-gradient(
    90deg,
    #fbe482 0%,      /* emas */
    #fff5c2 25%,     /* putih soft */
    #fbe482 50%,     /* emas */
    #fff5c2 75%,     /* putih soft */
    #fbe482 100%     /* emas */
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.5s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background-color:#ff7675;
  color:#ffffff;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%; /* start di luar kiri */
  animation: marquee 50s linear infinite;
}

.marquee-text:hover {
  animation-play-state: paused; /* pause on hover */
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* END of FOOTER */

/* BEGIN of LAINNYA */
.sharethis-hidden {
    display: none;
}
/* END of LAINNYA */