/* =====================================================================
   TEMA SB ADMIN - MUKTAMAR MUHAMMADIYAH
   Navy blue dengan gradasi. Dipakai bersama oleh admin, login, dan landing.
   ===================================================================== */

:root {
    --navy-900: #071c3f;
    --navy-800: #0b3373;
    --navy-700: #134a9e;
    --navy-600: #1c5cc4;
    --navy-accent: #2f7dff;
    --gold-accent: #f4b942;
    --bg-soft: #eef1f8;
    --sidebar-width: 260px;
}

body {
    background: var(--bg-soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gradient-navy {
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}

.gradient-navy-radial {
    background:
        radial-gradient(circle at 15% 15%, rgba(47, 125, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(244, 185, 66, 0.18) 0%, transparent 40%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}

/* ---------------------------------------------------------------
   ADMIN SHELL: sidebar + topbar
   --------------------------------------------------------------- */
.app-shell { min-height: 100vh; }

.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    color: #fff;
    position: sticky;
    top: 0;
    align-self: flex-start;
    box-shadow: 3px 0 18px rgba(7, 28, 63, 0.25);
    transition: margin-left .25s ease;
    z-index: 1030;
}

.app-sidebar .brand {
    padding: 22px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.app-sidebar .brand .brand-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--gold-accent);
}
.app-sidebar .brand strong { display:block; font-size: .95rem; letter-spacing: .5px; }
.app-sidebar .brand small { color: rgba(255,255,255,.6); font-size: .72rem; }

.app-sidebar .nav-section-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.45);
    padding: 14px 18px 6px;
}

.app-sidebar a.nav-link-item {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin: 2px 10px;
    border-radius: 8px;
    font-size: .89rem;
    position: relative;
    transition: background .15s ease, color .15s ease;
}
.app-sidebar a.nav-link-item i { font-size: 1.05rem; width: 20px; text-align: center; }
.app-sidebar a.nav-link-item:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.app-sidebar a.nav-link-item.active {
    background: linear-gradient(90deg, rgba(244,185,66,.22), rgba(255,255,255,.06));
    color: #fff;
    font-weight: 600;
}
.app-sidebar a.nav-link-item.active::before {
    content: "";
    position: absolute;
    left: -10px; top: 8px; bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: var(--gold-accent);
}
.app-sidebar a.nav-link-item.logout-link {
    color: #ffd9d9;
    margin-top: 10px;
}
.app-sidebar a.nav-link-item.logout-link:hover { background: rgba(220, 53, 69, .18); }

.app-topbar {
    background: #fff;
    border-bottom: 1px solid #e7eaf3;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(20, 30, 60, 0.04);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.app-topbar .btn-burger {
    border: none;
    background: var(--bg-soft);
    width: 38px; height: 38px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-800);
}
.app-topbar .btn-burger:hover { background: #e2e7f5; }

.user-chip {
    display: flex; align-items: center; gap: 10px;
}
.user-chip .avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.user-chip .role-badge {
    font-size: .68rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--navy-800);
    font-weight: 600;
    text-transform: capitalize;
}

.app-content { padding: 26px; }

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: 0; top: 0;
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .app-sidebar.show { margin-left: 0; }
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(7,28,63,.45);
        z-index: 1025;
    }
    .sidebar-backdrop.show { display: block; }
}

/* ---------------------------------------------------------------
   CARDS & COMPONENTS
   --------------------------------------------------------------- */
.card {
    border: none;
    border-radius: 14px;
}
.card.shadow-sm { box-shadow: 0 4px 18px rgba(20, 30, 60, 0.06) !important; }

.stat-card {
    border-radius: 14px;
    border-left: 5px solid var(--navy-700);
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    opacity: .12;
    color: var(--navy-800);
}
.stat-card.stat-success { border-left-color: #1cae6f; }
.stat-card.stat-danger  { border-left-color: #d9455f; }
.stat-card.stat-warning { border-left-color: var(--gold-accent); }
.stat-card .stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8791a8;
    font-weight: 700;
}

.btn-navy {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(11, 51, 115, .28);
}
.btn-navy:hover {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-accent));
    color: #fff;
}

.table thead th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8791a8;
    border-bottom-width: 1px;
}

/* ---------------------------------------------------------------
   LOGIN PAGE
   --------------------------------------------------------------- */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(7, 28, 63, .35);
}
.login-hero {
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.login-hero .hero-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}
.login-form-side {
    background: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------------------------------------------------------------
   LANDING PAGE
   --------------------------------------------------------------- */
.landing-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.landing-card-menu {
    border: none;
    border-radius: 18px;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 10px 30px rgba(7, 28, 63, .18);
}
.landing-card-menu:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(7, 28, 63, .28);
}
.landing-card-menu a { text-decoration: none; color: inherit; }
.landing-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-accent));
    color: #fff;
    font-size: 1.7rem;
}
