:root{
    --sidebar:#0f172a;
    --surface:#ffffff;
    --bg:#f4f7fb;
    --text:#172033;
    --muted:#7b8497;
    --primary:#2563eb;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.app-shell{min-height:100vh;display:flex}
.sidebar{width:260px;background:var(--sidebar);color:#fff;position:fixed;left:0;top:0;bottom:0;padding:24px 18px;display:flex;flex-direction:column;z-index:10}
.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none;margin-bottom:26px}
.brand-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#2563eb;font-size:20px}
.brand strong,.brand small{display:block}.brand small{color:#94a3b8;font-size:11px;margin-top:2px}
.user-card{display:flex;gap:10px;align-items:center;background:#1e293b;padding:12px;border-radius:14px;margin-bottom:20px}
.avatar{width:38px;height:38px;border-radius:12px;background:#334155;display:grid;place-items:center;font-weight:700}
.user-card strong,.user-card small{display:block}.user-card strong{font-size:13px}.user-card small{font-size:11px;color:#94a3b8}
.sidebar .nav-link{color:#cbd5e1;border-radius:10px;padding:10px 12px;font-size:14px}
.sidebar .nav-link:hover{background:#1e293b;color:#fff}.sidebar .nav-link i{width:24px}
.sidebar-footer{margin-top:auto}
.main{margin-left:260px;width:calc(100% - 260px);min-height:100vh}
.topbar{height:86px;background:#fff;border-bottom:1px solid #e9eef5;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:8}
.topbar h1{font-size:20px;margin:0;font-weight:750}.topbar p{margin:3px 0 0;color:var(--muted);font-size:12px}
.content{padding:28px}
.card{border:0;border-radius:16px;box-shadow:0 7px 28px rgba(15,23,42,.06)}
.stat-card{padding:20px}.stat-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:22px;background:#eff6ff;color:#2563eb}
.stat-value{font-size:28px;font-weight:800;line-height:1}.stat-label{font-size:12px;color:var(--muted);margin-top:7px}
.table>:not(caption)>*>*{padding:.9rem .75rem;vertical-align:middle}
.table thead th{font-size:11px;text-transform:uppercase;color:#7b8497;letter-spacing:.04em;background:#f8fafc}
.form-label{font-size:12px;font-weight:700;color:#475569}
.form-control,.form-select{border-radius:10px;border-color:#dbe2ea;min-height:42px}
.btn{border-radius:10px}
.empty-state{padding:48px 20px;text-align:center;color:#7b8497}
.empty-state i{font-size:42px;display:block;margin-bottom:12px}
.info-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:16px}
@media(max-width:900px){
    .sidebar{width:78px;padding:20px 10px}.sidebar .brand span:last-child,.sidebar .user-card>div:last-child,.sidebar .nav-link{font-size:0}.sidebar .nav-link i{font-size:20px;width:auto}.sidebar .nav-link{text-align:center}.brand{justify-content:center}.user-card{justify-content:center;padding:8px}.main{margin-left:78px;width:calc(100% - 78px)}.content{padding:18px}.topbar{padding:0 18px}
}
.modal-content{border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.18)}
.modal-header,.modal-footer{border-color:#eef2f7;padding-left:1.5rem;padding-right:1.5rem}
.pagination .page-link{border-radius:8px!important;margin:0 2px;color:#475569;border-color:#e2e8f0;min-width:34px;text-align:center}
.pagination .page-item.active .page-link{background:#2563eb;border-color:#2563eb;color:#fff}
.pagination .page-item.disabled .page-link{color:#a3acba;background:#f8fafc}
.card-footer{border-top:1px solid #f1f5f9!important}

/* Proposal modal: keep header/footer fixed and make long form body scrollable. */
.proposal-modal .modal-content{
    max-height:calc(100dvh - 2rem);
    overflow:hidden;
}
.proposal-modal .proposal-modal-form{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    overflow:hidden;
}
.proposal-modal .modal-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
}
.proposal-modal .modal-header,
.proposal-modal .modal-footer{
    flex:0 0 auto;
}
@media(max-width:767.98px){
    .proposal-modal .modal-dialog{margin:.5rem;}
    .proposal-modal .modal-content{max-height:calc(100dvh - 1rem);}
    .proposal-modal .modal-body{padding:1rem!important;}
}


/* Laporan Kegiatan modal: keep header/footer fixed and scroll only long form content. */
.report-modal .modal-content{
    max-height:calc(100dvh - 2rem);
    overflow:hidden;
}
.report-modal .report-modal-form{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    overflow:hidden;
}
.report-modal .modal-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto!important;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
}
.report-modal .modal-header,
.report-modal .modal-footer{
    flex:0 0 auto;
}
@media(max-width:767.98px){
    .report-modal .modal-dialog{margin:.5rem;}
    .report-modal .modal-content{max-height:calc(100dvh - 1rem);}
    .report-modal .modal-body{padding:1rem!important;}
}

/* Pengaturan Profil Madrasah */
.settings-logo-preview{width:128px;height:128px;object-fit:contain;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:8px}
.settings-logo-empty{width:128px;height:128px;margin-left:auto;border:1px dashed #cbd5e1;border-radius:14px;color:#94a3b8;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;gap:4px;background:#f8fafc}
.settings-logo-empty i{font-size:26px}
.letterhead-preview{border:1px solid #dbe2ea;border-bottom:4px double #0f172a;padding:16px 12px;display:flex;align-items:center;gap:14px;background:#fff;font-family:"Times New Roman",serif;text-align:center}
.letterhead-preview-logo{width:84px;min-width:84px;height:84px;display:flex;align-items:center;justify-content:center}
.letterhead-preview-logo img{max-width:84px;max-height:84px;object-fit:contain}
.letterhead-preview-text{flex:1;line-height:1.15}
.letterhead-preview .lh-agency{font-size:10px;font-weight:700;text-transform:uppercase;margin-top:1px}
.letterhead-preview .lh-name{font-size:15px;font-weight:800;text-transform:uppercase;margin:3px 0}
.letterhead-preview .lh-small{font-size:8px;margin-top:2px}

/* PATCH PREVIEW KOP - LOGO BESAR + TEKS PROPORSIONAL */
.letterhead-preview{gap:18px;padding:18px 14px}
.letterhead-preview-logo{width:112px;min-width:112px;height:112px}
.letterhead-preview-logo img{width:112px;height:112px;max-width:112px;max-height:112px;object-fit:contain}
.letterhead-preview-text{line-height:1.18}
.letterhead-preview .lh-name{font-size:18px;line-height:1.1;margin:2px 0 5px;font-weight:800}
.letterhead-preview .lh-agency{font-size:10.5px;line-height:1.15;margin-top:2px}
.letterhead-preview .lh-small{font-size:8.5px;line-height:1.2;margin-top:2px}
@media(max-width:575.98px){
    .letterhead-preview{gap:10px;padding:12px 8px}
    .letterhead-preview-logo{width:80px;min-width:80px;height:80px}
    .letterhead-preview-logo img{width:80px;height:80px;max-width:80px;max-height:80px}
    .letterhead-preview .lh-name{font-size:14px}
    .letterhead-preview .lh-small{font-size:7.5px}
}

/* Kop surat berbasis upload gambar utuh */
.letterhead-image-preview{
    width:100%;
    border:1px solid #dbe2ea;
    border-radius:12px;
    background:#fff;
    padding:10px;
    overflow:hidden;
}
.letterhead-image-preview img{
    display:block;
    width:100%;
    height:auto;
    max-height:260px;
    object-fit:contain;
    object-position:center;
}
.letterhead-image-empty{
    min-height:150px;
    border:1px dashed #cbd5e1;
    border-radius:10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    color:#94a3b8;
    background:#f8fafc;
    font-size:12px;
}
.letterhead-image-empty i{font-size:34px}


/* =========================================================
   LOGIN PAGE V2 - Tema Kesiswaan Madrasah
   ========================================================= */
.login-page-v2{
    --login-blue:#0868a6;
    --login-blue-dark:#064c7d;
    --login-sky:#36a5d8;
    --login-gold:#e8ad25;
    --login-ink:#10253f;
    --login-muted:#6b7b8e;
    min-height:100vh;
    position:relative;
    overflow-x:hidden;
    background:
        radial-gradient(circle at 7% 12%,rgba(54,165,216,.18),transparent 28%),
        radial-gradient(circle at 92% 86%,rgba(232,173,37,.13),transparent 25%),
        linear-gradient(135deg,#eff8ff 0%,#f8fbff 48%,#eef6ff 100%);
}
.login-page-v2::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.55;
    background-image:linear-gradient(rgba(8,104,166,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(8,104,166,.035) 1px,transparent 1px);
    background-size:38px 38px;
    mask-image:linear-gradient(to right,#000,transparent 72%);
}
.login-bg-shape{position:fixed;border-radius:50%;filter:blur(2px);pointer-events:none;z-index:0}
.login-bg-shape-one{width:390px;height:390px;left:-170px;bottom:-150px;background:linear-gradient(135deg,rgba(8,104,166,.15),rgba(54,165,216,.06))}
.login-bg-shape-two{width:280px;height:280px;right:-80px;top:-95px;background:linear-gradient(135deg,rgba(232,173,37,.15),rgba(54,165,216,.08))}
.login-bg-dots{position:fixed;right:4.5vw;top:8vh;width:130px;height:130px;opacity:.28;pointer-events:none;background-image:radial-gradient(var(--login-blue) 1.4px,transparent 1.4px);background-size:13px 13px;z-index:0}
.login-shell-v2{
    width:min(1180px,calc(100% - 48px));
    min-height:720px;
    margin:clamp(24px,5vh,56px) auto;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);
    border-radius:32px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 28px 80px rgba(6,76,125,.16),0 2px 10px rgba(15,23,42,.06);
    position:relative;
    z-index:1;
}
.login-hero{
    position:relative;
    overflow:hidden;
    color:#fff;
    padding:48px 54px;
    display:flex;
    align-items:center;
    background:
        radial-gradient(circle at 80% 15%,rgba(255,255,255,.16),transparent 30%),
        radial-gradient(circle at 15% 85%,rgba(232,173,37,.17),transparent 28%),
        linear-gradient(145deg,#075f9f 0%,#0878b8 48%,#075a96 100%);
}
.login-hero::before{
    content:"";
    position:absolute;
    width:430px;height:430px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:50%;
    right:-210px;top:10%;
    box-shadow:0 0 0 58px rgba(255,255,255,.035),0 0 0 116px rgba(255,255,255,.025);
}
.login-hero::after{
    content:"";
    position:absolute;
    left:0;right:0;bottom:0;height:170px;
    background:linear-gradient(to top,rgba(3,48,83,.22),transparent);
    pointer-events:none;
}
.login-hero-inner{position:relative;z-index:1;width:100%;max-width:600px;margin:auto}
.login-brand-pill{width:max-content;display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.11);border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em;backdrop-filter:blur(8px);box-shadow:inset 0 1px rgba(255,255,255,.12)}
.login-brand-pill i{color:#ffd56c}
.login-hero-logo-wrap{width:190px;height:190px;margin:36px 0 28px;border-radius:50%;display:grid;place-items:center;background:#fff;padding:8px;box-shadow:0 20px 42px rgba(1,39,68,.25),0 0 0 9px rgba(255,255,255,.09)}
.login-hero-logo{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.login-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.17em;color:#bfe8ff;margin-bottom:10px}
.login-hero-copy h1{margin:0;font-size:clamp(30px,3.2vw,46px);line-height:1.08;font-weight:850;letter-spacing:-.035em;max-width:610px}
.login-hero-copy p{margin:16px 0 0;max-width:560px;font-size:14px;line-height:1.8;color:rgba(255,255,255,.82)}
.login-feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:34px}
.login-feature-card{display:flex;align-items:center;gap:9px;min-width:0;padding:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.095);border-radius:14px;backdrop-filter:blur(7px)}
.login-feature-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.13);color:#fff;font-size:15px}
.login-feature-card strong,.login-feature-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.login-feature-card strong{font-size:11px;color:#fff}.login-feature-card small{font-size:9px;color:rgba(255,255,255,.65);margin-top:2px}
.login-form-side{padding:44px clamp(34px,4vw,62px);display:flex;align-items:center;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.login-card-v2{width:100%;max-width:430px;margin:auto}
.login-mobile-brand{display:none}
.login-form-heading{margin-bottom:28px}
.login-form-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#eaf7ff;color:var(--login-blue-dark);font-size:10px;font-weight:800;margin-bottom:14px;border:1px solid #d5edf9}
.login-form-badge i{color:#0b8ccb}
.login-form-heading h2{font-size:30px;font-weight:850;letter-spacing:-.035em;color:var(--login-ink);margin:0 0 8px}
.login-form-heading p{font-size:13px;color:var(--login-muted);line-height:1.65;margin:0}
.login-alert{border:1px solid #ffd5d5;background:#fff4f4;color:#a52a2a;border-radius:13px;padding:12px 13px;display:flex;gap:9px;align-items:flex-start;font-size:12px}
.login-form-v2 .form-label{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#33465d;margin-bottom:8px}
.login-input-wrap{position:relative}
.login-input-wrap>i{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:16px;color:#7e91a7;pointer-events:none;z-index:2}
.login-form-v2 .login-input-wrap .form-control{height:52px;border-radius:13px;padding:0 46px;border:1px solid #d9e4ee;background:#f9fbfd;color:#14263b;font-size:13px;box-shadow:none;transition:border-color .2s,box-shadow .2s,background .2s}
.login-form-v2 .login-input-wrap .form-control::placeholder{color:#a8b4c0}
.login-form-v2 .login-input-wrap .form-control:focus{background:#fff;border-color:#3d9fd2;box-shadow:0 0 0 4px rgba(54,165,216,.11)}
.login-form-v2 .login-input-wrap:focus-within>i{color:var(--login-blue)}
.login-password-wrap .form-control{padding-right:54px!important}
.login-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#718397;transition:.18s;z-index:3}
.login-password-toggle:hover{background:#eaf4fb;color:var(--login-blue)}
.login-caps-hint{font-size:9px;font-weight:700;color:#ad7110;opacity:0;transform:translateY(2px);transition:.15s;pointer-events:none}.login-caps-hint.is-visible{opacity:1;transform:none}
.login-submit-btn{height:52px;margin-top:24px;border:0!important;border-radius:13px!important;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff!important;font-size:13px;font-weight:800;background:linear-gradient(100deg,#0872b4,#0789c6)!important;box-shadow:0 12px 24px rgba(8,114,180,.22);transition:transform .18s,box-shadow .18s,filter .18s}
.login-submit-btn:hover{transform:translateY(-1px);box-shadow:0 15px 28px rgba(8,114,180,.28);filter:saturate(1.08)}
.login-submit-btn:active{transform:none}
.login-submit-btn i{transition:transform .18s}.login-submit-btn:hover i{transform:translateX(3px)}
.login-security-note{margin-top:26px;padding:13px 14px;border-radius:13px;background:#f5f9fc;border:1px solid #e6eef4;display:flex;gap:10px;align-items:center}
.login-security-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#e5f4fc;color:var(--login-blue);font-size:14px}
.login-security-note strong,.login-security-note small{display:block}.login-security-note strong{font-size:10px;color:#33465d}.login-security-note small{font-size:9px;color:#8492a4;line-height:1.45;margin-top:1px}
.login-footer-note{text-align:center;margin:20px 0 0;font-size:9px;color:#9aa8b6}
@media(max-width:980px){
    .login-shell-v2{grid-template-columns:1fr minmax(390px,.92fr);width:min(100% - 28px,980px)}
    .login-hero{padding:42px 34px}.login-hero-logo-wrap{width:155px;height:155px}.login-hero-copy h1{font-size:34px}.login-feature-row{grid-template-columns:1fr}.login-feature-card:nth-child(3){display:none}
    .login-form-side{padding:40px 32px}
}
@media(max-width:760px){
    .login-page-v2{display:flex;align-items:center;justify-content:center;padding:18px;background:linear-gradient(145deg,#eaf7ff,#f7fbff)}
    .login-page-v2::before{mask-image:none;opacity:.35}
    .login-shell-v2{display:block;width:100%;max-width:480px;min-height:0;margin:0;border-radius:24px;box-shadow:0 22px 60px rgba(6,76,125,.16)}
    .login-hero{display:none}
    .login-form-side{padding:30px 24px 26px}
    .login-mobile-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid #edf1f5}
    .login-mobile-brand img{width:62px;height:62px;border-radius:50%;object-fit:contain;background:#fff;box-shadow:0 6px 18px rgba(6,76,125,.12)}
    .login-mobile-brand strong,.login-mobile-brand small{display:block}.login-mobile-brand strong{font-size:14px;color:var(--login-ink)}.login-mobile-brand small{font-size:9px;color:#7e8ea0;margin-top:3px;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .login-form-heading h2{font-size:26px}.login-form-heading{margin-bottom:24px}.login-security-note{margin-top:22px}
    .login-bg-dots{display:none}
}
@media(max-width:390px){
    .login-page-v2{padding:10px}.login-shell-v2{border-radius:20px}.login-form-side{padding:24px 18px 22px}.login-form-heading h2{font-size:24px}
}

/* =========================================================
   ADMIN DASHBOARD - Soft Pastel Theme
   Hanya aktif pada dashboard admin.
   ========================================================= */
body.admin-dashboard-soft{
    --dash-bg:#f7f9fc;
    --dash-line:#edf1f6;
    --dash-text:#25324a;
    --dash-muted:#8491a5;
    background:var(--dash-bg);
}
body.admin-dashboard-soft .main{
    background:
        radial-gradient(circle at 86% 3%,rgba(99,160,255,.07),transparent 24%),
        radial-gradient(circle at 18% 22%,rgba(126,211,191,.06),transparent 23%),
        var(--dash-bg);
}
body.admin-dashboard-soft .topbar{
    background:rgba(255,255,255,.92);
    border-bottom-color:#edf1f6;
    box-shadow:0 1px 0 rgba(15,23,42,.015);
    backdrop-filter:blur(10px);
}
body.admin-dashboard-soft .topbar h1{color:#27344d}
body.admin-dashboard-soft .topbar p{color:#98a3b3}
body.admin-dashboard-soft .content{padding-top:30px}

/* kartu statistik */
body.admin-dashboard-soft .stat-card{
    position:relative;
    overflow:hidden;
    min-height:126px;
    padding:22px;
    border:1px solid #edf1f6;
    box-shadow:0 8px 24px rgba(38,51,77,.045);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body.admin-dashboard-soft .stat-card::after{
    content:"";
    position:absolute;
    width:90px;height:90px;
    border-radius:50%;
    right:-34px;bottom:-38px;
    opacity:.38;
    pointer-events:none;
}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(1) .stat-card{
    background:linear-gradient(145deg,#ffffff 20%,#f1f7ff 100%);
    border-color:#e4effc;
}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(1) .stat-card::after{background:#cfe4ff}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(1) .stat-icon{background:#e8f2ff;color:#5a8fcd}

body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(2) .stat-card{
    background:linear-gradient(145deg,#ffffff 20%,#f3fbf7 100%);
    border-color:#e1f1e8;
}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(2) .stat-card::after{background:#d2eedf}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(2) .stat-icon{background:#e7f6ed;color:#5e9d7a}

body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(3) .stat-card{
    background:linear-gradient(145deg,#ffffff 20%,#fff9ef 100%);
    border-color:#f3ead7;
}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(3) .stat-card::after{background:#f9e8bc}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(3) .stat-icon{background:#fff3d9;color:#b98b36}

body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(4) .stat-card{
    background:linear-gradient(145deg,#ffffff 20%,#f8f4fc 100%);
    border-color:#ece4f4;
}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(4) .stat-card::after{background:#e7daf3}
body.admin-dashboard-soft .row.g-3.mb-4 > div:nth-child(4) .stat-icon{background:#f1e9f8;color:#8b70a6}

body.admin-dashboard-soft .stat-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(38,51,77,.07);
}
body.admin-dashboard-soft .stat-value{
    color:#2c3951;
    font-size:30px;
    font-weight:780;
    letter-spacing:-.035em;
}
body.admin-dashboard-soft .stat-label{color:#8490a3;font-size:12px;font-weight:600}
body.admin-dashboard-soft .stat-icon{
    width:50px;height:50px;
    border-radius:15px;
    font-size:21px;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);
}

/* card tabel prestasi */
body.admin-dashboard-soft .content > .card{
    border:1px solid #edf1f6;
    box-shadow:0 10px 30px rgba(38,51,77,.045);
    background:rgba(255,255,255,.96);
}
body.admin-dashboard-soft .content > .card .card-header{
    background:linear-gradient(180deg,#fff,#fdfefe)!important;
    border-bottom:1px solid #f2f4f7!important;
}
body.admin-dashboard-soft .content > .card .card-header h5{color:#2c3951}
body.admin-dashboard-soft .content > .card .card-header small{color:#939eae!important}
body.admin-dashboard-soft .table thead th{
    background:#f8fafc;
    color:#8995a7;
    border-bottom-color:#edf1f5;
    font-weight:700;
}
body.admin-dashboard-soft .table tbody td{border-color:#f1f4f7;color:#3b475c}
body.admin-dashboard-soft .table tbody tr{transition:background .16s ease}
body.admin-dashboard-soft .table tbody tr:hover{background:#fafcff}
body.admin-dashboard-soft .table .text-secondary{color:#9aa5b4!important}
body.admin-dashboard-soft .card-footer{background:#fff!important;border-top-color:#f1f4f7!important}

/* tombol utama dibuat lebih tenang */
body.admin-dashboard-soft .btn-primary{
    --bs-btn-bg:#5d8fd4;
    --bs-btn-border-color:#5d8fd4;
    --bs-btn-hover-bg:#4e80c2;
    --bs-btn-hover-border-color:#4e80c2;
    --bs-btn-active-bg:#4476b8;
    --bs-btn-active-border-color:#4476b8;
    box-shadow:0 7px 16px rgba(93,143,212,.14);
}

body.admin-dashboard-soft .badge.text-bg-success{
    background:#e8f6ef!important;
    color:#4b8a6a!important;
    border:1px solid #d7ecdf;
}
body.admin-dashboard-soft .badge.text-bg-secondary{
    background:#f0f2f5!important;
    color:#7e8998!important;
    border:1px solid #e2e6eb;
}

@media(max-width:767.98px){
    body.admin-dashboard-soft .content{padding-top:20px}
    body.admin-dashboard-soft .stat-card{min-height:112px;padding:18px}
    body.admin-dashboard-soft .stat-value{font-size:26px}
}

/* =========================================================
   SOFT NAVIGATION THEME
   Sidebar + topbar pastel agar konsisten dengan dashboard
   ========================================================= */
:root{
    --sidebar:#f7faff;
    --sidebar-text:#51637d;
    --sidebar-heading:#20334e;
    --sidebar-border:#dfe9f6;
    --sidebar-hover:#edf4fd;
    --sidebar-active:#e2efff;
    --sidebar-active-text:#2463d4;
}

.sidebar{
    background:
        radial-gradient(circle at 12% 2%, rgba(117,165,255,.14), transparent 28%),
        linear-gradient(180deg,#fbfdff 0%,#f3f7fd 50%,#eef5fc 100%);
    color:var(--sidebar-heading);
    border-right:1px solid var(--sidebar-border);
    box-shadow:8px 0 30px rgba(65,91,126,.045);
}

.brand{
    color:var(--sidebar-heading);
    margin-bottom:24px;
    padding:2px 4px;
}
.brand:hover{color:var(--sidebar-heading)}
.brand-icon{
    width:44px;
    height:44px;
    border-radius:14px;
    background:linear-gradient(145deg,#dfeeff,#edf5ff);
    color:#3972dc;
    border:1px solid #d5e6fb;
    box-shadow:0 7px 18px rgba(66,113,194,.08);
}
.brand strong{font-weight:760;letter-spacing:-.01em}
.brand small{color:#8394aa;font-size:11px}

.user-card{
    background:rgba(255,255,255,.78);
    border:1px solid #e3ebf5;
    box-shadow:0 8px 25px rgba(54,83,119,.05);
    padding:12px 13px;
    border-radius:16px;
}
.avatar{
    background:linear-gradient(145deg,#e1ecfa,#d7e6f8);
    color:#45658e;
    border:1px solid #d3e1f1;
}
.user-card strong{color:#253a56;font-weight:700}
.user-card small{color:#8b9aaf}

.sidebar .nav{
    gap:3px!important;
}
.sidebar .nav-link{
    position:relative;
    display:flex;
    align-items:center;
    min-height:43px;
    color:var(--sidebar-text);
    border:1px solid transparent;
    border-radius:12px;
    padding:10px 12px;
    font-size:13.5px;
    font-weight:540;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.sidebar .nav-link i{
    width:25px;
    color:#7890ad;
    transition:color .18s ease,transform .18s ease;
}
.sidebar .nav-link:hover{
    background:var(--sidebar-hover);
    color:#314c70;
    border-color:#e0ebf7;
    transform:translateX(2px);
}
.sidebar .nav-link:hover i{color:#527fbd}
.sidebar .nav-link.active{
    background:linear-gradient(135deg,#e2efff 0%,#edf5ff 100%);
    color:var(--sidebar-active-text);
    border-color:#d4e5fb;
    font-weight:700;
    box-shadow:0 6px 18px rgba(69,118,190,.08);
}
.sidebar .nav-link.active i{
    color:#2d6dda;
    transform:scale(1.04);
}
.sidebar .nav-link.active::after{
    content:"";
    width:6px;
    height:6px;
    border-radius:999px;
    background:#6f9de5;
    margin-left:auto;
    box-shadow:0 0 0 4px rgba(111,157,229,.12);
}
.sidebar-footer{
    padding-top:12px;
    border-top:1px solid #e2ebf5;
}
.sidebar-footer .nav-link{
    color:#6b7d94;
}
.sidebar-footer .nav-link:hover{
    color:#b34f5c;
    background:#fff1f3;
    border-color:#f7dfe3;
}
.sidebar-footer .nav-link:hover i{color:#c95b67}

.topbar{
    background:rgba(255,255,255,.88);
    border-bottom:1px solid #e6edf6;
    box-shadow:0 6px 22px rgba(45,66,95,.035);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
.topbar h1{color:#233650;letter-spacing:-.015em}
.topbar p{color:#8796aa}
.topbar .badge.text-bg-success{
    color:#39715a!important;
    background:#eaf7f0!important;
    border:1px solid #d5eee0;
}
.topbar .badge.text-bg-secondary{
    color:#697b8f!important;
    background:#eef3f8!important;
    border:1px solid #dfe7ef;
}

@media(max-width:900px){
    .sidebar .nav-link{justify-content:center}
    .sidebar .nav-link.active::after{position:absolute;right:7px;width:5px;height:5px;box-shadow:none}
    .sidebar-footer{border-top-color:#e2ebf5}
}
