/* =====================================================================
   PMB Universitas Waskita Dharma — tema navy, biru utama, aksen emas
   Light/Dark mode via CSS variables + [data-bs-theme]
   ===================================================================== */
:root {
  --uwd-navy: #10275a;
  --uwd-navy-2: #0c1d44;
  --uwd-biru: #1f4fd1;
  --uwd-biru-muda: #e8eefc;
  --uwd-emas: #c9a227;
  --uwd-emas-muda: #f6edcf;
  --uwd-bg: #f4f6fb;
  --uwd-surface: #ffffff;
  --uwd-surface-2: #f8f9fd;
  --uwd-garis: #e2e7f1;
  --uwd-teks: #18233d;
  --uwd-teks-2: #5b6782;
  --uwd-radius: 14px;
  --uwd-radius-sm: 9px;
  --uwd-bayangan: 0 1px 2px rgba(16, 39, 90, .06), 0 8px 24px -12px rgba(16, 39, 90, .18);
  --sidebar-w: 268px;

  --bs-font-sans-serif: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --bs-primary: var(--uwd-biru);
  --bs-primary-rgb: 31, 79, 209;
  --bs-link-color: var(--uwd-biru);
  --bs-link-color-rgb: 31, 79, 209;
  --bs-body-bg: var(--uwd-bg);
  --bs-body-color: var(--uwd-teks);
  --bs-border-color: var(--uwd-garis);
  --bs-secondary-color: var(--uwd-teks-2);
}

[data-bs-theme="dark"] {
  --uwd-bg: #0b1222;
  --uwd-surface: #121b30;
  --uwd-surface-2: #17223b;
  --uwd-garis: #24304d;
  --uwd-teks: #e6ebf5;
  --uwd-teks-2: #9aa6c1;
  --uwd-biru-muda: #18264a;
  --uwd-emas-muda: #3a3215;
  --uwd-bayangan: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --bs-primary: #5b84f0;
  --bs-primary-rgb: 91, 132, 240;
  --bs-link-color: #86a6f5;
  --bs-link-color-rgb: 134, 166, 245;
  --bs-body-bg: var(--uwd-bg);
  --bs-body-color: var(--uwd-teks);
  --bs-border-color: var(--uwd-garis);
  --bs-secondary-color: var(--uwd-teks-2);
  --bs-tertiary-bg: var(--uwd-surface-2);
  color-scheme: dark;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}
body { font-family: var(--bs-font-sans-serif); background: var(--uwd-bg); color: var(--uwd-teks); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.015em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 2000; background: var(--uwd-surface); padding: 8px 12px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------ Tombol */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-bg: #1a43b3; --bs-btn-hover-border-color: #1a43b3; --bs-btn-active-bg: #163a9b; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #fff; --bs-btn-hover-bg: #4a74e6; --bs-btn-hover-border-color: #4a74e6; }
.btn-outline-primary { --bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary); }
.btn-gold { background: var(--uwd-emas); border-color: var(--uwd-emas); color: #1d1704; }
.btn-gold:hover, .btn-gold:focus { background: #b48f1d; border-color: #b48f1d; color: #1d1704; }
.btn-ghost { background: transparent; border: 0; color: inherit; }
.btn-ghost:hover { background: var(--uwd-surface-2); }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm.btn-icon { width: 32px; height: 32px; }
.btn-icon-text { display: inline-flex; align-items: center; gap: .35rem; }
.tema-ikon-terang { display: none; }
[data-bs-theme="dark"] .tema-ikon-terang { display: inline; }
[data-bs-theme="dark"] .tema-ikon-gelap { display: none; }

/* ------------------------------------------------ Brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--uwd-navy); }
[data-bs-theme="dark"] .brand { color: #fff; }
.brand-light { color: #fff !important; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--uwd-navy); color: var(--uwd-emas); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; box-shadow: inset 0 -3px 0 var(--uwd-emas); flex-shrink: 0; }
.brand-light .brand-mark { background: rgba(255, 255, 255, .1); }
.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-size: 1.05rem; }
.brand-text small { font-size: .72rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------ Website publik */

/* Header publik selalu menempel di bagian atas */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: color-mix(in srgb, var(--uwd-surface) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--uwd-garis);
    box-shadow: 0 4px 18px rgba(16, 39, 90, .07);
}

.site-header .navbar {
    padding: .65rem 0;
}

.site-header .nav-link {
    font-weight: 600;
    color: var(--uwd-teks);
    padding: .5rem .85rem !important;
    border-radius: 8px;
}

.site-header .nav-link:hover {
    color: var(--bs-primary);
}

.site-header .navbar-toggler {
    border: 0;
    font-size: 1.6rem;
    color: var(--uwd-teks);
}

.site-header .dropdown-menu {
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        padding: .75rem 0;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }

    .nav-actions {
        flex-wrap: wrap;
        padding-top: .5rem;
        border-top: 1px solid var(--uwd-garis);
    }
}
.site-header .nav-link { font-weight: 600; color: var(--uwd-teks); padding: .5rem .85rem !important; border-radius: 8px; }
.site-header .nav-link:hover { color: var(--bs-primary); }
.site-header .navbar-toggler { border: 0; font-size: 1.6rem; color: var(--uwd-teks); }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: .75rem 0; }
  .nav-actions { flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--uwd-garis); }
}

.hero { position: relative; background: var(--uwd-navy); color: #fff; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 7rem); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(115deg, rgba(31, 79, 209, .35) 0%, transparent 55%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px); }
.hero > .container { position: relative; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 800; max-width: 15ch; }
.hero p.lead { color: rgba(255, 255, 255, .78); max-width: 52ch; font-size: 1.1rem; }
.hero .hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }

/* Elemen khas: kartu hitung mundur gelombang aktif */
.wave-card { background: #fff; color: var(--uwd-teks); border-radius: 18px; padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border-top: 6px solid var(--uwd-emas); }
[data-bs-theme="dark"] .wave-card { background: var(--uwd-surface); }
.wave-card .wave-name { font-weight: 800; font-size: 1.25rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; }
.countdown div { background: var(--uwd-surface-2); border: 1px solid var(--uwd-garis); border-radius: 12px; text-align: center; padding: .6rem .25rem; }
.countdown b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--uwd-navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
[data-bs-theme="dark"] .countdown b { color: #fff; }
.countdown small { font-size: .72rem; color: var(--uwd-teks-2); }
.wave-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--uwd-teks-2); flex-wrap: wrap; }

.stat-strip { margin-top: -3.2rem; position: relative; z-index: 2; }
.stat-strip .inner { background: var(--uwd-surface); border-radius: var(--uwd-radius); box-shadow: var(--uwd-bayangan); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--uwd-garis); }
.stat-strip .item { padding: 1.25rem 1.5rem; border-right: 1px solid var(--uwd-garis); }
.stat-strip .item:last-child { border-right: 0; }
.stat-strip b { font-size: 1.8rem; font-weight: 800; color: var(--uwd-navy); display: block; }
[data-bs-theme="dark"] .stat-strip b { color: #fff; }
.stat-strip span { color: var(--uwd-teks-2); font-size: .9rem; }
@media (max-width: 767.98px) {
  .stat-strip .inner { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .item:nth-child(2) { border-right: 0; }
  .stat-strip .item:nth-child(-n+2) { border-bottom: 1px solid var(--uwd-garis); }
}

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--uwd-surface); border-top: 1px solid var(--uwd-garis); border-bottom: 1px solid var(--uwd-garis); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--uwd-teks-2); margin: 0; }

.feature { display: flex; gap: 1rem; }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--uwd-emas-muda); color: #8a6a0c; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
[data-bs-theme="dark"] .feature .ic { color: var(--uwd-emas); }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { color: var(--uwd-teks-2); margin: 0; font-size: .95rem; }

.fak-block { background: var(--uwd-surface); border: 1px solid var(--uwd-garis); border-radius: var(--uwd-radius); padding: 1.25rem; height: 100%; }
.fak-block h3 { font-size: 1.05rem; display: flex; gap: .6rem; align-items: center; }
.fak-block h3 i { color: var(--bs-primary); }
.prodi-row { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-top: 1px dashed var(--uwd-garis); font-size: .93rem; }
.prodi-row span:last-child { color: var(--uwd-teks-2); white-space: nowrap; }

.jalur-item { border-left: 4px solid var(--uwd-emas); padding: .25rem 0 .25rem 1rem; }
.jalur-item h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.jalur-item p { color: var(--uwd-teks-2); margin: 0; font-size: .93rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.25rem 2.25rem; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: -6px; width: 2px; background: var(--uwd-garis); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--uwd-surface); border: 3px solid var(--bs-primary); }
.timeline .tgl { font-size: .85rem; color: var(--uwd-teks-2); }

.steps-public { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.steps-public > div { counter-increment: s; background: var(--uwd-surface); border: 1px solid var(--uwd-garis); border-radius: var(--uwd-radius); padding: 1.1rem; }
.steps-public > div::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--uwd-navy); color: var(--uwd-emas); font-weight: 800; margin-bottom: .6rem; }
.steps-public h3 { font-size: 1rem; }
.steps-public p { color: var(--uwd-teks-2); font-size: .9rem; margin: 0; }

.table-fee th { color: var(--uwd-teks-2); font-weight: 600; font-size: .85rem; }
.cta-band { background: var(--uwd-navy); color: #fff; border-radius: 20px; padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 5px solid var(--uwd-emas); }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }

.accordion { --bs-accordion-bg: var(--uwd-surface); --bs-accordion-border-color: var(--uwd-garis); --bs-accordion-active-bg: var(--uwd-biru-muda); --bs-accordion-active-color: var(--uwd-teks); }
.accordion-button { font-weight: 600; }

.site-footer { background: var(--uwd-navy-2); color: #fff; padding: 3.5rem 0 1.5rem; }
.footer-title { font-size: 1rem; color: var(--uwd-emas); margin-bottom: 1rem; }
.footer-list li { margin-bottom: .55rem; color: rgba(255, 255, 255, .72); display: flex; gap: .5rem; }
.footer-list a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

.page-hero { background: var(--uwd-navy); color: #fff; padding: 2.5rem 0; border-bottom: 4px solid var(--uwd-emas); }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); margin-bottom: .5rem; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.prose { max-width: 75ch; line-height: 1.75; }
.prose img { border-radius: 12px; }
.news-item { display: block; background: var(--uwd-surface); border: 1px solid var(--uwd-garis); border-radius: var(--uwd-radius); padding: 1.1rem 1.25rem; text-decoration: none; color: inherit; height: 100%; }
.news-item:hover { border-color: var(--bs-primary); }
.news-item h3 { font-size: 1.02rem; margin: .35rem 0; }
.news-item p { color: var(--uwd-teks-2); font-size: .92rem; margin: 0; }

/* ------------------------------------------------ Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: var(--uwd-navy); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(201, 162, 39, .18); }
.auth-side h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 16ch; }
.auth-side p { color: rgba(255, 255, 255, .75); max-width: 44ch; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 2rem clamp(1rem, 5vw, 4rem); background: var(--uwd-surface); }
.auth-box { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: .5rem; }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--uwd-teks-2); font-size: .85rem; margin: 1.25rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--uwd-garis); }
.btn-google { background: var(--uwd-surface); border: 1px solid var(--uwd-garis); color: var(--uwd-teks); display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; }
.btn-google:hover { background: var(--uwd-surface-2); color: var(--uwd-teks); }
.otp-input { letter-spacing: .6em; font-size: 1.6rem; text-align: center; font-weight: 700; }
.password-meter { height: 4px; border-radius: 4px; background: var(--uwd-garis); margin-top: .4rem; overflow: hidden; }
.password-meter span { display: block; height: 100%; width: 0; transition: width .2s; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ------------------------------------------------ Form */
.form-control, .form-select { border-radius: 10px; border-color: var(--uwd-garis); background-color: var(--uwd-surface); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.form-label { font-weight: 600; font-size: .9rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--uwd-teks-2); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.4rem; }
.toggle-password { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); }
.img-preview { max-height: 140px; border-radius: 10px; border: 1px solid var(--uwd-garis); }

/* ------------------------------------------------ Dashboard shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--uwd-navy); color: #c9d3ea; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
[data-bs-theme="dark"] .sidebar { background: #0a1430; border-right: 1px solid var(--uwd-garis); }
.sidebar-brand { padding: 1.1rem 1.1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .65rem; scrollbar-width: thin; }
.sidebar-group { font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .45); margin: 1rem .75rem .35rem; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-radius: 10px; color: #c9d3ea; text-decoration: none; font-weight: 500; font-size: .93rem; text-align: left; }
.sidebar-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-link.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--uwd-emas); }
.sidebar-link.active i { color: var(--uwd-emas); }
.sidebar-foot { padding: .65rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-backdrop { display: none; }
.app-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; height: 64px; display: flex; align-items: center; gap: .5rem; padding: 0 1.25rem; background: color-mix(in srgb, var(--uwd-surface) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--uwd-garis); }
.topbar-title { font-weight: 700; min-width: 0; }
.app-content { padding: 1.5rem; flex: 1; min-width: 0; }
.app-footer { padding: 1rem 1.5rem; color: var(--uwd-teks-2); font-size: .82rem; border-top: 1px solid var(--uwd-garis); }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(5, 12, 30, .5); z-index: 1035; }
  body.sidebar-open { overflow: hidden; }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
  .topbar { padding: 0 .75rem; }
}
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--uwd-navy); color: var(--uwd-emas); display: inline-grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.notif-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #dc3545; color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.notif-menu { width: min(360px, 92vw); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--uwd-garis); text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--uwd-surface-2); }
.notif-item.unread { background: var(--uwd-biru-muda); }
.notif-item b { display: block; font-size: .88rem; }
.notif-item span { font-size: .82rem; color: var(--uwd-teks-2); display: block; }
.notif-item time { font-size: .72rem; color: var(--uwd-teks-2); }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.page-title { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.page-title i { color: var(--bs-primary); }
.page-sub { color: var(--uwd-teks-2); margin: .25rem 0 0; }
.card-panel { background: var(--uwd-surface); border: 1px solid var(--uwd-garis); border-radius: var(--uwd-radius); box-shadow: var(--uwd-bayangan); }
.card-panel > .card-header { background: transparent; border-bottom: 1px solid var(--uwd-garis); padding: 1rem 1.25rem; font-weight: 700; }
.card-panel > .card-body { padding: 1.25rem; }

.stat-card { border-radius: var(--uwd-radius); padding: 1.1rem 1.2rem; color: #fff; position: relative; overflow: hidden; min-height: 112px; }
.stat-card .lbl { font-size: .85rem; opacity: .85; }
.stat-card .val { font-size: 1.85rem; font-weight: 800; line-height: 1.2; }
.stat-card .ic { position: absolute; right: .9rem; top: .9rem; font-size: 1.6rem; opacity: .35; }
.stat-card small { opacity: .8; }
.sc-navy { background: var(--uwd-navy); }
.sc-biru { background: var(--uwd-biru); }
.sc-emas { background: linear-gradient(135deg, #b48f1d, #d6b143); color: #1d1704; }
.sc-hijau { background: #13795b; }
.sc-ungu { background: #5b3cc4; }
.sc-merah { background: #c0392b; }
.sc-teal { background: #0f7a8a; }
.sc-abu { background: #4b5671; }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.toolbar .form-select { width: auto; max-width: 100%; }
.table-modern { --bs-table-bg: transparent; margin: 0; }
.table-modern thead th { font-size: .78rem; font-weight: 700; color: var(--uwd-teks-2); background: var(--uwd-surface-2); border-bottom: 1px solid var(--uwd-garis); white-space: nowrap; }
.table-modern td { border-color: var(--uwd-garis); }
.table-modern tbody tr:hover { background: var(--uwd-surface-2); }
.link-sort { color: inherit; text-decoration: none; }
.empty-state { text-align: center; padding: 2.5rem 1rem !important; color: var(--uwd-teks-2); }
.empty-state i { font-size: 2rem; display: block; margin-bottom: .5rem; }
@media (max-width: 767.98px) {
  .table-modern.table-stack thead { display: none; }
  .table-modern.table-stack tr { display: block; border: 1px solid var(--uwd-garis); border-radius: 12px; margin-bottom: .75rem; padding: .5rem .75rem; }
  .table-modern.table-stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem 0; text-align: right; }
  .table-modern.table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--uwd-teks-2); text-align: left; }
}
.btn-toggle { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--uwd-garis); border-radius: 20px; font-size: .78rem; padding: .2rem .65rem .2rem .3rem; color: var(--uwd-teks-2); background: var(--uwd-surface); }
.btn-toggle span { width: 26px; height: 16px; border-radius: 8px; background: var(--uwd-garis); position: relative; }
.btn-toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.btn-toggle.on { color: #13795b; border-color: rgba(19, 121, 91, .35); }
.btn-toggle.on span { background: #13795b; }
.btn-toggle.on span::after { left: 12px; }
.badge-status { font-weight: 600; }
.badge { border-radius: 6px; }

/* Multi-step form */
.stepper { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button { flex: 1 0 auto; min-width: 120px; border: 0; background: transparent; text-align: left; padding: .5rem 0 0; border-top: 4px solid var(--uwd-garis); color: var(--uwd-teks-2); font-size: .85rem; font-weight: 600; }
.stepper button b { display: block; font-size: .72rem; font-weight: 600; }
.stepper button.done { border-top-color: #13795b; color: var(--uwd-teks); }
.stepper button.active { border-top-color: var(--uwd-emas); color: var(--uwd-teks); }
.step-pane { display: none; }
.step-pane.active { display: block; }
.form-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--uwd-surface) 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--uwd-garis); margin: 1.25rem -1.25rem -1.25rem; padding: .85rem 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; border-radius: 0 0 var(--uwd-radius) var(--uwd-radius); z-index: 5; }

.progress-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--uwd-emas) calc(var(--p) * 1%), var(--uwd-garis) 0); display: grid; place-items: center; flex-shrink: 0; }
.progress-ring::before { content: attr(data-label); width: 72px; height: 72px; border-radius: 50%; background: var(--uwd-surface); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.status-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.status-track li { padding: .65rem .75rem; border-radius: 10px; background: var(--uwd-surface-2); border: 1px solid var(--uwd-garis); font-size: .82rem; color: var(--uwd-teks-2); }
.status-track li i { display: block; font-size: 1.2rem; margin-bottom: .2rem; }
.status-track li.done { color: #13795b; border-color: rgba(19, 121, 91, .3); }
.status-track li.now { color: var(--uwd-teks); border-color: var(--uwd-emas); background: var(--uwd-emas-muda); font-weight: 700; }
.status-track li.fail { color: #c0392b; border-color: rgba(192, 57, 43, .35); }

.doc-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--uwd-garis); border-radius: 12px; background: var(--uwd-surface); }
.doc-item + .doc-item { margin-top: .75rem; }
.doc-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--uwd-biru-muda); color: var(--bs-primary); font-size: 1.3rem; flex-shrink: 0; }
.doc-body { flex: 1; min-width: 0; }
.doc-body .nama-file { font-size: .82rem; color: var(--uwd-teks-2); word-break: break-all; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
@media (max-width: 575.98px) { .doc-item { flex-wrap: wrap; } .doc-actions { width: 100%; } }
.upload-progress { height: 6px; display: none; margin-top: .5rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem 1.5rem; }
.info-grid dt { font-size: .78rem; color: var(--uwd-teks-2); font-weight: 600; }
.info-grid dd { margin: 0; font-weight: 500; word-break: break-word; }

/* Skeleton & loading */
.skeleton { background: linear-gradient(90deg, var(--uwd-surface-2) 0%, var(--uwd-garis) 50%, var(--uwd-surface-2) 100%); background-size: 200% 100%; animation: skel 1.2s infinite linear; border-radius: 6px; }
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-block { height: 260px; border-radius: 12px; }
.skeleton-stat { height: 112px; border-radius: var(--uwd-radius); }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.loading-overlay { position: fixed; inset: 0; background: rgba(8, 16, 38, .45); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 2000; }
.loading-overlay.show { display: flex; }
.loading-box { background: var(--uwd-surface); padding: 1.25rem 1.75rem; border-radius: 14px; text-align: center; box-shadow: var(--uwd-bayangan); min-width: 180px; }
.konfirmasi-ikon { width: 56px; height: 56px; border-radius: 50%; background: var(--uwd-biru-muda); color: var(--bs-primary); display: inline-grid; place-items: center; font-size: 1.6rem; }
.konfirmasi-ikon.bahaya { background: rgba(220, 53, 69, .12); color: #dc3545; }
.toast { border: 0; border-radius: 12px; box-shadow: var(--uwd-bayangan); background: var(--uwd-surface); color: var(--uwd-teks); }
.toast .toast-body { display: flex; gap: .65rem; align-items: flex-start; }
.toast .toast-body i { font-size: 1.2rem; }
.modal-content { border-radius: 16px; border: 1px solid var(--uwd-garis); background: var(--uwd-surface); }
.dropdown-menu { border-radius: 12px; border-color: var(--uwd-garis); box-shadow: var(--uwd-bayangan); background: var(--uwd-surface); }

/* Cetak */
@media print {
  .sidebar, .topbar, .app-footer, .no-print, .toast-container { display: none !important; }
  .app-main { margin: 0; }
  body { background: #fff; }
}

/* ------------------------------------------------ Tes seleksi online */
.min-w-0 { min-width: 0; }
.tes-bar { position: sticky; top: 64px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--uwd-surface); border: 1px solid var(--uwd-garis); border-radius: var(--uwd-radius); padding: .75rem 1rem; margin-bottom: 1rem; box-shadow: var(--uwd-bayangan); }
.tes-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.35rem; color: var(--uwd-navy); background: var(--uwd-emas-muda); border: 1px solid var(--uwd-emas); border-radius: 10px; padding: .25rem .8rem; white-space: nowrap; }
[data-bs-theme="dark"] .tes-timer { color: #fff; }
.tes-timer.hampir { background: rgba(220, 53, 69, .12); border-color: #dc3545; color: #dc3545; animation: denyut 1s infinite; }
@keyframes denyut { 50% { opacity: .55; } }
.soal-pane { display: none; }
.soal-pane.active { display: block; }
.soal-teks { line-height: 1.7; word-break: break-word; }
.pilihan-pg { display: grid; gap: .6rem; }
.opsi-label { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--uwd-garis); border-radius: 12px; cursor: pointer; background: var(--uwd-surface); transition: border-color .15s, background .15s; }
.opsi-label:hover { border-color: var(--bs-primary); }
.opsi-label input { position: absolute; opacity: 0; pointer-events: none; }
.opsi-label input:focus-visible + .opsi-huruf { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 2px; }
.opsi-huruf { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--uwd-garis); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.opsi-teks { padding-top: .2rem; }
.opsi-label:has(input:checked) { border-color: var(--bs-primary); background: var(--uwd-biru-muda); }
.opsi-label:has(input:checked) .opsi-huruf { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.nav-soal-card { position: sticky; top: 150px; }
.nav-soal { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: .4rem; }
.nav-soal button { height: 40px; border-radius: 9px; border: 1px solid var(--uwd-garis); background: var(--uwd-surface); color: var(--uwd-teks); font-weight: 600; }
.nav-soal button.terisi { background: #13795b; border-color: #13795b; color: #fff; }
.nav-soal button.ragu { background: var(--uwd-emas); border-color: var(--uwd-emas); color: #1d1704; }
.nav-soal button.aktif { outline: 3px solid var(--bs-primary); outline-offset: 1px; }
.nav-legenda { display: flex; flex-wrap: wrap; gap: .75rem; }
.nav-legenda .kotak { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--uwd-garis); vertical-align: -1px; }
.nav-legenda .kotak.terisi { background: #13795b; border-color: #13795b; }
.nav-legenda .kotak.ragu { background: var(--uwd-emas); border-color: var(--uwd-emas); }
@media (max-width: 991.98px) { .nav-soal-card { position: static; } .tes-bar { top: 64px; } }
.tes-fakta { text-align: center; border: 1px solid var(--uwd-garis); border-radius: 12px; padding: .8rem .5rem; background: var(--uwd-surface-2); }
.tes-fakta b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--uwd-navy); }
[data-bs-theme="dark"] .tes-fakta b { color: #fff; }
.tes-fakta span { font-size: .8rem; color: var(--uwd-teks-2); }
.hasil-tes { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hasil-skor { --p: 0; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--uwd-emas) calc(var(--p) * 1%), var(--uwd-garis) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.hasil-skor::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--uwd-surface); }
.hasil-angka, .hasil-label { position: relative; text-align: center; }
.hasil-angka { font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.hasil-label { font-size: .75rem; color: var(--uwd-teks-2); }
.rincian-soal { border: 1px solid var(--uwd-garis); border-radius: 12px; padding: 1rem; }
.rincian-soal + .rincian-soal { margin-top: .75rem; }
.soal-opsi { margin: 0; padding-left: 1.4rem; }
.soal-opsi li { padding: .15rem .35rem; border-radius: 6px; }
.soal-opsi li.kunci { background: rgba(19, 121, 91, .1); font-weight: 600; }
.soal-opsi li.salah { background: rgba(220, 53, 69, .1); text-decoration: line-through; }
.jawaban-esai { background: var(--uwd-surface-2); border: 1px solid var(--uwd-garis); border-radius: 10px; padding: .75rem; white-space: normal; word-break: break-word; }
.pembahasan { margin-top: .6rem; font-size: .88rem; padding: .5rem .75rem; border-left: 3px solid var(--uwd-emas); background: var(--uwd-emas-muda); border-radius: 0 8px 8px 0; }
.soal-admin { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--uwd-garis); border-radius: 12px; background: var(--uwd-surface); }
.soal-admin + .soal-admin { margin-top: .75rem; }
.soal-no { width: 32px; height: 32px; border-radius: 50%; background: var(--uwd-navy); color: var(--uwd-emas); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
@media (max-width: 575.98px) { .soal-admin { flex-wrap: wrap; } }
.tes-bar { flex-wrap: wrap; }
.tes-progres { flex-basis: 100%; height: 6px; background: var(--uwd-garis); border-radius: 4px; overflow: hidden; }
.tes-progres span { display: block; height: 100%; width: 100%; background: var(--uwd-emas); transition: width 1s linear; }
.tes-progres span.hampir { background: #dc3545; }

  /* Header publik selalu berada di bagian atas */
  .site-header {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 2px 12px rgba(16, 39, 90, 0.08);
  }

  .site-header .navbar {
    background: inherit;
  }

  /* Pastikan dropdown tampil di atas konten */
  .site-header .dropdown-menu {
    z-index: 1040;
  }

  /* Tampilan mobile */
  @media (max-width: 991.98px) {
    .site-header {
      top: 0;
    }

    .site-header .navbar-collapse {
      max-height: calc(100vh - 75px);
      overflow-y: auto;
    }
  }

  /* Logo SIMABA pada header utama */
.simaba-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.simaba-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: 250px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .simaba-logo {
        height: 54px;
        max-width: 210px;
    }
}

/* Tombol Masuk dan Daftar pada navigasi publik */
.nav-auth-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .nav-actions {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px !important;
        width: 100%;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid var(--bs-border-color);
    }

    .nav-auth-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .nav-auth-buttons .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        white-space: nowrap;
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .site-header,
    .site-header .navbar,
    .site-header .navbar > .container {
        overflow: visible !important;
    }
}

/* Perbaikan dropdown bahasa pada tampilan mobile */
@media (max-width: 991.98px) {
    .nav-actions {
        overflow: visible !important;
    }

    .nav-actions .dropdown,
    .nav-actions .dropup {
        position: relative;
    }

    .nav-actions .dropdown-menu {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 100%;
        min-width: 150px;
        max-width: calc(100vw - 40px);
        margin-top: 8px !important;
        z-index: 2000;
        transform: none !important;
    }

    .nav-actions .dropdown-menu.show {
        display: block;
    }

    .navbar-collapse,
    .navbar-collapse.show {
        overflow: visible !important;
    }
}

@media (max-width: 991.98px) {
    .site-header,
    .site-header .navbar,
    .site-header .navbar > .container {
        overflow: visible !important;
    }
}