:root {
    --jdih-blue: #082f63;
    --jdih-blue-2: #0d4f9e;
    --jdih-gold: #ffc107;
    --jdih-bg: #f4f7fb;
}
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.jdih-navbar { background: linear-gradient(90deg, #062247, #0d4f9e); }
.brand-logo { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.brand-logo-placeholder { width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: var(--jdih-blue); border-radius: 10px; }
.hero-section { background: linear-gradient(135deg, #062247, #0d4f9e); color: #fff; padding: 72px 0 90px; position: relative; overflow: hidden; }
.hero-section::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; top: -120px; }
.hero-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }
.hero-card { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); border-radius: 24px; padding: 24px; }
.stat-box { background: #fff; color: #122; border-radius: 18px; padding: 18px; min-height: 112px; box-shadow: 0 14px 28px rgba(0,0,0,.1); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--jdih-blue-2); }
.search-panel { background: #fff; border-radius: 18px; padding: 20px; margin-top: -45px; position: relative; z-index: 3; }
.category-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: #172033; background: #fff; border: 1px solid #eef1f6; border-radius: 18px; padding: 18px; height: 100%; transition: .2s; box-shadow: 0 8px 22px rgba(0,0,0,.05); }
.category-card:hover { transform: translateY(-3px); color: var(--jdih-blue-2); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.category-icon { width: 48px; height: 48px; border-radius: 14px; background: #edf5ff; color: var(--jdih-blue-2); display: grid; place-items: center; font-size: 1.35rem; }
.footer-public { background: #071d3c; color: #fff; }
.page-header { background: linear-gradient(135deg, #082f63, #0d4f9e); color: #fff; padding: 45px 0; }
.category-filter { top: 86px; }
.info-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 8px 22px rgba(0,0,0,.06); display: flex; gap: 14px; align-items: center; }
.info-card i { font-size: 2rem; color: var(--jdih-blue-2); }
.pdf-box iframe { border: 0; background: #f5f5f5; }
.login-body { min-height: 100vh; background: linear-gradient(135deg, #062247, #0d4f9e); display: grid; place-items: center; padding: 20px; }
.login-wrapper { width: 100%; max-width: 430px; }
.login-card { background: #fff; border-radius: 24px; padding: 32px; }
.login-logo { width: 78px; height: 78px; object-fit: contain; }
.login-logo-placeholder { width: 78px; height: 78px; margin: auto; border-radius: 22px; background: #edf5ff; color: var(--jdih-blue-2); display: grid; place-items: center; font-size: 2.4rem; }
.internal-body { background: var(--jdih-bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 278px; background: #071d3c; color: #fff; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; padding: 18px; }
.sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 8px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.sidebar-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.sidebar-logo-text { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); }
.sidebar-menu a { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.84); text-decoration: none; padding: 11px 12px; border-radius: 12px; margin-bottom: 4px; }
.sidebar-menu a:hover { background: rgba(255,255,255,.11); color: #fff; }
.sidebar-menu hr { border-color: rgba(255,255,255,.15); }
.admin-main { margin-left: 278px; padding: 24px; width: calc(100% - 278px); }
.admin-topbar { background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: 0 8px 24px rgba(18,30,50,.06); margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
.dash-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(18,30,50,.06); display: flex; gap: 14px; align-items: center; height: 100%; }
.dash-card i { width: 48px; height: 48px; display: grid; place-items: center; background: #edf5ff; color: var(--jdih-blue-2); border-radius: 14px; font-size: 1.5rem; }
.dash-number { font-size: 1.7rem; font-weight: 800; color: #10233f; }
.small-card { padding: 14px; }
.preview-logo { max-width: 120px; max-height: 80px; object-fit: contain; background: #f7f7f7; border-radius: 12px; padding: 8px; }


/* Mobile dashboard/offcanvas sidebar */
.mobile-menu-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #071d3c;
    color: #fff;
    box-shadow: 0 10px 26px rgba(7,29,60,.24);
    font-weight: 700;
}
.mobile-menu-toggle i { font-size: 1.2rem; }
.sidebar-backdrop { display: none; }
.sidebar-mobile-head { display: none; }
.sidebar-close {
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.12);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.sidebar-menu a i { min-width: 22px; text-align: center; }

@media (max-width: 991.98px) {
    body.sidebar-open { overflow: hidden; }
    .admin-shell { display: block; min-height: 100vh; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 330px);
        height: 100vh;
        z-index: 1045;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 18px 0 40px rgba(0,0,0,.22);
        padding: 16px;
    }
    body.sidebar-open .admin-sidebar { transform: translateX(0); }
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(2,12,28,.58);
        backdrop-filter: blur(2px);
    }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .sidebar-mobile-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        font-weight: 800;
        padding: 2px 6px 14px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .sidebar-brand { margin-top: 4px; }
    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 76px 14px 16px;
    }
    .admin-topbar {
        border-radius: 16px;
        padding: 16px;
        align-items: flex-start;
        gap: 12px;
    }
    .admin-topbar h1 { font-size: 1.25rem; }
    .dash-card { padding: 16px; }
    .table-responsive, .card, .search-panel { border-radius: 14px; }
}

@media (min-width: 992px) {
    .mobile-menu-toggle,
    .sidebar-backdrop,
    .sidebar-mobile-head { display: none !important; }
}


/* Logo Kemendikdasmen pada hero halaman beranda - tanpa latar putih */
.hero-institution-logo {
    display: flex;
    align-items: center;
    margin-top: -22px;
    margin-bottom: 22px !important;
}
.hero-kemendikdasmen-logo {
    width: min(360px, 78vw);
    max-height: 118px;
    object-fit: contain;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block;
}
@media (max-width: 575.98px) {
    .hero-section { padding-top: 38px; }
    .hero-institution-logo {
        justify-content: flex-start;
        margin-top: -14px;
        margin-bottom: 18px !important;
    }
    .hero-kemendikdasmen-logo {
        width: min(280px, 84vw);
        max-height: 92px;
    }
}


/* Keamanan login: kode acak anti-bot sederhana */
.security-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}
.captcha-panel {
    border: 1px solid #dbe3ef;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    border-radius: 16px;
    padding: 14px;
}
.captcha-box {
    min-height: 58px;
    border: 1px dashed #b7c9e4;
    background: repeating-linear-gradient(45deg, #ffffff, #ffffff 8px, #f0f5fc 8px, #f0f5fc 16px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    letter-spacing: 2px;
}
.captcha-box span {
    display: inline-flex;
    width: 30px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.35rem;
    color: #082f63;
    background: rgba(255,255,255,.74);
    border-radius: 8px;
    border: 1px solid rgba(8,47,99,.08);
    text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.captcha-box span:nth-child(1) { transform: rotate(-8deg) translateY(1px); }
.captcha-box span:nth-child(2) { transform: rotate(5deg) translateY(-2px); }
.captcha-box span:nth-child(3) { transform: rotate(-3deg) translateY(2px); }
.captcha-box span:nth-child(4) { transform: rotate(7deg) translateY(-1px); }
.captcha-box span:nth-child(5) { transform: rotate(-6deg) translateY(1px); }
.captcha-box span:nth-child(6) { transform: rotate(4deg) translateY(-2px); }
.captcha-help { color: #667085; font-size: .78rem; line-height: 1.35; }
.login-security-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 575.98px) {
    .login-card { padding: 24px; }
    .captcha-box span { width: 26px; height: 34px; font-size: 1.15rem; }
}


/* Tombol mata pada password login */
.password-toggle-group .form-control {
    border-right: 0;
}
.password-toggle-group .password-toggle-btn {
    border-color: #d6dee8;
    background: #fff;
    color: #475467;
    min-width: 48px;
}
.password-toggle-group .password-toggle-btn:hover,
.password-toggle-group .password-toggle-btn:focus {
    background: #f2f6fb;
    color: #0d6efd;
    border-color: #b8c8dc;
}
.password-toggle-group .password-toggle-btn i {
    font-size: 1.1rem;
}
