/* ============================================================
   ARSIP DIGITAL MA BAHRUL ULIN KEPOHBARU
   Tema: Islamic Soft UI - Hijau Emerald + Emas
   ============================================================ */

:root {
    --primary: #0f7a4d;
    --primary-dark: #0b5c3a;
    --primary-light: #e6f5ee;
    --emerald: #10b981;
    --gold: #c9a24b;
    --soft-gray: #f4f6f8;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(15, 122, 77, 0.08);
    /* Token tambahan untuk polish admin/auth (aditif, tidak mengubah token lama) */
    --radius-lg: 18px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 10px 28px rgba(11, 92, 58, 0.10);
    --shadow-lg: 0 20px 48px rgba(11, 92, 58, 0.16);
    --border-soft: #e8ebee;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--soft-gray);
    color: var(--text-dark);
}

a { text-decoration: none; }

/* Judul di halaman admin & auth memakai Space Grotesk untuk kesan lebih premium;
   landing page (.landing-page) sudah mengatur tipografinya sendiri, tidak terpengaruh */
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4, .admin-body h5, .admin-body h6,
.admin-body .sidebar-brand, .admin-body .brand-title, .admin-body .page-header h4,
.auth-body h1, .auth-body h2, .auth-body h3, .auth-body h4, .auth-body h5, .auth-body h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* ===================== LANDING PAGE ===================== */

.navbar-landing {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.navbar-landing .navbar-brand {
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-landing .navbar-brand i {
    font-size: 1.6rem;
    color: var(--primary);
}

.navbar-landing .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 6px;
}

.navbar-landing .nav-link:hover { color: var(--primary); }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15,122,77,0.25);
}

.btn-outline-custom {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    background: transparent;
    transition: all .2s ease;
}
.btn-outline-custom:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.hero-section {
    background: linear-gradient(135deg, #f0f9f4 0%, #e6f5ee 60%, #fff 100%);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--primary-dark);
    line-height: 1.25;
}

.hero-section p.lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(15,122,77,0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.hero-illustration {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}
.hero-illustration i { font-size: 9rem; color: var(--primary); opacity: 0.9; }

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem 1.2rem;
    text-align: center;
    transition: transform .2s ease;
    height: 100%;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card i { font-size: 2rem; color: var(--primary); }
.stat-card .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); margin: 8px 0 2px; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.9rem; }

.section-title {
    font-weight: 800;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 0.6rem;
}
.section-subtitle { color: var(--text-muted); max-width: 620px; margin: 0 auto; }

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15,122,77,0.14);
    border-color: rgba(15,122,77,0.15);
}
.feature-card .icon-wrap {
    width: 54px; height: 54px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-card h5 { font-weight: 700; color: var(--text-dark); }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

.about-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px dashed #e5e7eb;
    font-size: 0.92rem;
}
.about-list li span:first-child { color: var(--text-muted); }
.about-list li span:last-child { font-weight: 600; color: var(--text-dark); }

.footer-landing {
    background: var(--primary-dark);
    color: #d7e8df;
    padding: 3rem 0 1.5rem;
}
.footer-landing h6 { color: #fff; font-weight: 700; }
.footer-landing a { color: #cfe6db; }
.footer-landing a:hover { color: #fff; }
.footer-landing .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem; padding-top: 1.2rem;
    font-size: 0.85rem; text-align: center; color: #a8cabd;
}

/* ===================== AUTH (LOGIN) ===================== */

.auth-body {
    position: relative;
    background:
        radial-gradient(ellipse 70% 60% at 15% 10%, rgba(201, 162, 75, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 90% 90%, rgba(16, 185, 129, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, #0b5c3a 0%, #0f7a4d 55%, #0d6b46 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.auth-wrapper { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 2.6rem 2.2rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.auth-logo {
    width: 68px; height: 68px;
    background: linear-gradient(145deg, var(--primary-light), #ffffff);
    color: var(--primary);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.auth-card h4 { font-weight: 700; letter-spacing: -0.01em; }
.auth-card .form-control {
    border-radius: var(--radius-sm);
    border-color: var(--border-soft);
    padding: 10px 14px;
}
.auth-card .form-control:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}
.auth-card .input-group-text { border-color: var(--border-soft); }
.auth-card .btn-success {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-card .btn-success:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===================== ADMIN LAYOUT — Premium Islamic Soft UI ===================== */

.admin-body { background: var(--soft-gray); }
.admin-wrapper { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.admin-sidebar {
    width: 264px;
    background: linear-gradient(180deg, #0a4f32 0%, #0b5c3a 45%, #0f7a4d 100%);
    color: #fff;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050;
    transition: transform .3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 1.5rem 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sidebar-brand i {
    font-size: 1.5rem; color: var(--gold);
    width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), inset 0 -2px 4px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.14);
}
.brand-title { font-weight: 700; font-size: 0.95rem; line-height: 1.15; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.74rem; color: #a8d9c1; }

.sidebar-nav { padding: 1rem 0.9rem; }
.sidebar-nav a {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    color: #cdeadd;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}
.sidebar-nav a i { font-size: 1.02rem; width: 20px; text-align: center; opacity: 0.9; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(2px); }
.sidebar-nav a.active {
    background: #fff; color: var(--primary-dark); font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.sidebar-nav a.active i { opacity: 1; color: var(--primary); }
.sidebar-nav a.active::before {
    content: '';
    position: absolute; left: -0.9rem; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%; border-radius: 0 4px 4px 0;
    background: var(--gold);
}
.sidebar-divider {
    color: #7fbfa0; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 16px 14px 6px; font-weight: 600;
}

.admin-content { margin-left: 264px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ---- Navbar ---- */
.admin-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: var(--shadow-xs);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.75rem 1.4rem;
    display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 900;
}
.btn-toggle-sidebar {
    background: var(--primary-light); color: var(--primary);
    border: none; border-radius: var(--radius-sm); width: 38px; height: 38px;
    display: none; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.btn-toggle-sidebar:hover { background: #d5efe1; }
.navbar-search {
    flex: 1; max-width: 420px;
    background: var(--soft-gray);
    border: 1px solid transparent;
    border-radius: 30px;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    transition: border-color .2s ease, background .2s ease;
}
.navbar-search:focus-within { border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,0.10); }
.navbar-search i { color: var(--text-muted); }
.navbar-search input { border: none; background: transparent; outline: none; width: 100%; font-size: 0.9rem; }
.navbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm); border: none;
    background: var(--soft-gray); color: var(--text-dark);
    transition: background .2s ease;
}
.btn-icon:hover { background: var(--border-soft); }
.btn-profile {
    display: flex; align-items: center; gap: 8px;
    border: none; background: var(--soft-gray);
    padding: 6px 14px 6px 6px; border-radius: 30px; font-size: 0.88rem; font-weight: 600;
    transition: background .2s ease;
}
.btn-profile:hover { background: var(--border-soft); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.admin-main { padding: 1.5rem; flex: 1; }
.admin-footer {
    text-align: center; padding: 1.1rem; font-size: 0.82rem; color: var(--text-muted);
    border-top: 1px solid var(--border-soft); background: #fff;
}

/* ---- Kartu widget ---- */
.card-widget {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}
.card-widget .widget-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 10px rgba(16,24,40,0.06);
}
.bg-soft-green { background: linear-gradient(145deg, #ecf9f2, #dcf3e6); color: var(--primary); }
.bg-soft-gold { background: linear-gradient(145deg, #fbf3e2, #f6ead0); color: var(--gold); }
.bg-soft-blue { background: linear-gradient(145deg, #eaf1fd, #dbe8fb); color: #2563eb; }
.bg-soft-purple { background: linear-gradient(145deg, #f3eefd, #e8defb); color: #7c3aed; }

/* ---- Header halaman ---- */
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 1.15rem;
}
.page-header h4 { font-weight: 700; color: var(--text-dark); margin: 0; letter-spacing: -0.01em; }
.breadcrumb-custom { font-size: 0.84rem; color: var(--text-muted); margin-top: 2px; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 3.2rem 1rem; color: var(--text-muted); }
.empty-state i {
    font-size: 2.2rem; color: var(--primary);
    width: 76px; height: 76px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    margin-bottom: 1.1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(2, 8, 23, 0.45); z-index: 1040;
    backdrop-filter: blur(2px);
}

/* ---- Form & tombol (polish tambahan, tidak mengubah struktur Bootstrap) ---- */
.admin-body .form-control, .admin-body .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-soft);
    padding: 9px 13px;
    font-size: 0.9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-body .form-control:focus, .admin-body .form-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.admin-body .form-label { font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.admin-body .btn { border-radius: var(--radius-sm); font-weight: 600; }
.admin-body .btn-sm { border-radius: 9px; }
.admin-body .badge { font-weight: 600; letter-spacing: 0.01em; padding: 5px 10px; border-radius: 8px; }

/* ---- Tabel & DataTables ---- */
.admin-body .table { font-size: 0.88rem; }
.admin-body .table thead th {
    background: var(--soft-gray);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 14px;
}
.admin-body .table tbody td { padding: 12px 14px; vertical-align: middle; border-color: var(--border-soft); }
.admin-body .table tbody tr:hover { background: var(--primary-light); }
.admin-body .dataTables_wrapper .dataTables_filter input,
.admin-body .dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius-sm); border: 1px solid var(--border-soft); padding: 5px 10px;
}
.admin-body .dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 8px; margin: 0 2px; color: var(--primary); border-color: var(--border-soft);
}
.admin-body .dataTables_wrapper .dataTables_paginate .active .page-link {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.admin-body .nav-tabs .nav-link { border: none; color: var(--text-muted); font-weight: 600; font-size: 0.88rem; }
.admin-body .nav-tabs .nav-link.active { color: var(--primary); border-bottom: 2px solid var(--primary); background: transparent; }

@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .btn-toggle-sidebar { display: flex; }
    .sidebar-overlay.show { display: block; }
    .navbar-search { display: none; }
}

/* ============================================================
   LANDING PAGE REDESIGN — BLUE CRYSTAL GLASS UI
   Premium Glassmorphism + Soft Neumorphism, nuansa biru kaca bening
   Diberi scope ".landing-page" agar tidak memengaruhi tema admin.
   ============================================================ */

.landing-page {
    --crystal-bg-deep: #060f22;
    --crystal-bg-mid: #0d2347;
    --crystal-blue: #4f8ef7;
    --crystal-blue-soft: #7db2ff;
    --crystal-cyan: #35d4e8;
    --crystal-ice: #eaf2ff;
    --crystal-ice-dim: rgba(234, 242, 255, 0.68);
    --crystal-ice-faint: rgba(234, 242, 255, 0.45);
    --glass-fill: rgba(255, 255, 255, 0.06);
    --glass-fill-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.20);
    --glass-shadow: 0 8px 32px rgba(2, 8, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.10);

    position: relative;
    background:
        radial-gradient(ellipse 90% 60% at 15% -10%, rgba(79, 142, 247, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 80% 55% at 95% 8%, rgba(53, 212, 232, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(79, 142, 247, 0.16) 0%, transparent 60%),
        linear-gradient(180deg, var(--crystal-bg-deep) 0%, var(--crystal-bg-mid) 45%, var(--crystal-bg-deep) 100%);
    color: var(--crystal-ice);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.landing-page h1,
.landing-page h2,
.landing-page h5,
.landing-page h6,
.landing-page .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.landing-page a:focus-visible,
.landing-page button:focus-visible {
    outline: 2px solid var(--crystal-cyan);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---- Orb kristal dekoratif di belakang konten ---- */
.crystal-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}
.crystal-orb-1 { width: 460px; height: 460px; top: -140px; left: -120px; background: radial-gradient(circle, var(--crystal-blue), transparent 70%); animation: crystalFloat 20s ease-in-out infinite; }
.crystal-orb-2 { width: 380px; height: 380px; top: 25%; right: -150px; background: radial-gradient(circle, var(--crystal-cyan), transparent 70%); animation: crystalFloat 24s ease-in-out infinite reverse; }
.crystal-orb-3 { width: 320px; height: 320px; bottom: -120px; left: 38%; background: radial-gradient(circle, var(--crystal-blue-soft), transparent 70%); animation: crystalFloat 28s ease-in-out infinite; }

@keyframes crystalFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -36px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .crystal-orb { animation: none !important; }
}

/* ---- Panel kaca dasar (glassmorphism) ---- */
.landing-page .glass-panel {
    position: relative;
    z-index: 1;
    background: var(--glass-fill);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--glass-shadow);
}

/* ---- Lencana ikon kristal (neumorphism convex, signature element) ---- */
.landing-page .crystal-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.45),
        inset 0 -3px 6px rgba(2, 8, 23, 0.35),
        0 6px 16px rgba(53, 132, 247, 0.35);
    color: var(--crystal-cyan);
    font-size: 1.15rem;
}
.landing-page .crystal-icon-badge-lg { width: 92px; height: 92px; font-size: 2.4rem; }
.landing-page .crystal-icon-badge-sm { width: 30px; height: 30px; font-size: 0.9rem; }

/* ---- Navbar kaca ---- */
.landing-page .navbar-landing {
    background: rgba(8, 20, 42, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}
.landing-page .navbar-landing .navbar-brand {
    font-weight: 700;
    color: var(--crystal-ice);
    display: flex;
    align-items: center;
    gap: 12px;
}
.landing-page .navbar-landing .nav-link {
    color: var(--crystal-ice-dim);
    font-weight: 500;
    margin: 0 6px;
    transition: color 0.2s ease;
}
.landing-page .navbar-landing .nav-link:hover { color: var(--crystal-cyan); }
.landing-page .navbar-toggler { border-color: rgba(255, 255, 255, 0.3); }
.landing-page .navbar-toggler-icon {
    filter: invert(1) brightness(1.6);
}

/* ---- Tombol neumorphic + glass ---- */
.landing-page .btn-crystal-primary {
    background: linear-gradient(135deg, rgba(79, 142, 247, 0.95), rgba(53, 212, 232, 0.80));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow:
        0 8px 22px rgba(53, 132, 247, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 6px rgba(2, 8, 23, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.landing-page .btn-crystal-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 14px 30px rgba(53, 132, 247, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 6px rgba(2, 8, 23, 0.25);
}
.landing-page .btn-crystal-outline {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    color: var(--crystal-ice);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 14px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 16px rgba(2, 8, 23, 0.35);
    transition: all 0.25s ease;
}
.landing-page .btn-crystal-outline:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Hero ---- */
.landing-page .hero-section {
    padding: 100px 0 70px;
    position: relative;
}
.landing-page .hero-glass-card { padding: 2.4rem 2.2rem; }
.landing-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--crystal-cyan);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.landing-page .hero-section h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.25;
    margin-top: 14px;
    background: linear-gradient(135deg, #ffffff 0%, var(--crystal-blue-soft) 55%, var(--crystal-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.landing-page .hero-section p.lead {
    color: var(--crystal-ice-dim);
    font-size: 1.02rem;
    max-width: 540px;
}
.landing-page .hero-illustration {
    text-align: center;
    padding: 3rem 2rem;
}
.landing-page .hero-illustration p { color: var(--crystal-ice-dim); }

/* ---- Judul section ---- */
.landing-page .section-title {
    font-weight: 700;
    color: var(--crystal-ice);
    position: relative;
    display: inline-block;
    margin-bottom: 0.6rem;
}
.landing-page .section-subtitle { color: var(--crystal-ice-dim); max-width: 620px; margin: 0 auto; }

/* ---- Kartu statistik (neumorphic glass tile) ---- */
.landing-page .stat-card {
    padding: 1.6rem 1.1rem;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.landing-page .stat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(53, 132, 247, 0.25), inset 0 1px 0 rgba(255,255,255,0.12); }
.landing-page .stat-card .crystal-icon-badge { margin: 0 auto 10px; }
.landing-page .stat-card .stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crystal-ice), var(--crystal-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 4px 0 2px;
}
.landing-page .stat-card .stat-label { color: var(--crystal-ice-dim); font-size: 0.86rem; }

/* ---- Kartu fitur ---- */
.landing-page .feature-card {
    padding: 1.8rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.landing-page .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(53, 132, 247, 0.22), inset 0 1px 0 rgba(255,255,255,0.12);
    border-color: rgba(53, 212, 232, 0.4);
}
.landing-page .feature-card .crystal-icon-badge { margin-bottom: 1rem; }
.landing-page .feature-card h5 { font-weight: 700; color: var(--crystal-ice); font-size: 1.05rem; }
.landing-page .feature-card p { color: var(--crystal-ice-dim); font-size: 0.9rem; margin-bottom: 0; }

/* ---- Kartu tentang / data sekolah ---- */
.landing-page .about-card { padding: 2rem; }
.landing-page .about-card h5 { color: var(--crystal-ice); }
.landing-page .about-card h5 i { color: var(--crystal-cyan); }
.landing-page .about-card p { color: var(--crystal-ice-dim); }
.landing-page .about-list { list-style: none; padding: 0; margin: 0; }
.landing-page .about-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}
.landing-page .about-list li:last-child { border-bottom: none; }
.landing-page .about-list li span:first-child { color: var(--crystal-ice-faint); }
.landing-page .about-list li span:last-child { font-weight: 600; color: var(--crystal-ice); text-align: right; }

/* ---- Footer kaca ---- */
.landing-page .footer-landing {
    position: relative;
    z-index: 1;
    background: rgba(5, 12, 26, 0.75);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--crystal-ice-dim);
    padding: 3rem 0 1.5rem;
}
.landing-page .footer-landing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--crystal-blue), var(--crystal-cyan), transparent);
}
.landing-page .footer-landing h6 { color: var(--crystal-ice); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.landing-page .footer-landing a { color: var(--crystal-ice-dim); }
.landing-page .footer-landing a:hover { color: var(--crystal-cyan); }
.landing-page .footer-landing .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--crystal-ice-faint);
}

@media (max-width: 991px) {
    .landing-page .hero-section { padding: 70px 0 50px; }
    .landing-page .hero-section h1 { font-size: 2rem; }
    .landing-page .hero-glass-card { padding: 1.8rem 1.5rem; }
    .crystal-orb { opacity: 0.4; }
}

/* ============================================================
   FORM REDESIGN — dibuat lebih simpel, rapi & mudah dipindai
   Berlaku otomatis untuk semua form admin (guru, siswa, TU,
   madrasah, kategori, pengguna, arsip) tanpa perlu class baru.
   ============================================================ */

/* Setiap "card-widget" di dalam <form> diperlakukan sebagai satu
   bagian (section) formulir yang berdiri sendiri.
   PENTING: reset height:100% dari aturan dasar .card-widget —
   di dalam kolom form (col-lg-8 berisi beberapa card bertumpuk
   di samping col-lg-4), height:100% membuat SETIAP card ikut
   meregang setinggi seluruh kolom sehingga muncul jarak kosong
   raksasa di dalam tiap section. */
.admin-body form .card-widget {
    height: auto;
    padding: 1.25rem 1.35rem 1.35rem;
    margin-bottom: 0.85rem;
}
.admin-body form .card-widget:last-child { margin-bottom: 0; }
.admin-body form .row > div { align-self: flex-start; }

/* Jarak antar baris/field dalam form dipersempit supaya tidak
   terasa renggang, terutama saat menambah data baru */
.admin-body form .row.g-3 {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.65rem;
}
.admin-body form .mb-3 { margin-bottom: 0.7rem !important; }

/* Judul tiap section: penanda bulat + garis pemisah tipis,
   jauh lebih ringan daripada border tebal / ikon besar */
.admin-body form .card-widget > h6.fw-bold,
.admin-body .card-widget > h6.fw-bold {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
    padding-bottom: 0.65rem;
    margin-bottom: 0.9rem !important;
    border-bottom: 1px solid var(--border-soft);
}
.admin-body form .card-widget > h6.fw-bold::before,
.admin-body .card-widget > h6.fw-bold::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--emerald), var(--primary));
    box-shadow: 0 0 0 4px var(--primary-light);
}
/* Kalau judul section sudah punya ikon sendiri (mis. di dashboard),
   titik penanda tidak perlu ditampilkan supaya tidak dobel */
.admin-body .card-widget > h6.fw-bold:has(i)::before { content: none; }
.admin-body .card-widget > h6.fw-bold i { color: var(--primary); font-size: 1rem; }

/* Label field: sedikit lebih tegas dan konsisten jaraknya */
.admin-body .form-label,
.admin-body .form-label.small {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}
.admin-body .form-label .text-danger { font-weight: 700; }

/* Input & select lebih lembut, jelas saat fokus, tidak berisik */
.admin-body .form-control,
.admin-body .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    background: #fbfcfd;
    padding: 8px 13px;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.admin-body .form-control::placeholder { color: #adb5bd; }
.admin-body .form-control:hover,
.admin-body .form-select:hover { border-color: #d3dbe0; }
.admin-body .form-control:focus,
.admin-body .form-select:focus {
    background: #fff;
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.admin-body textarea.form-control { resize: vertical; min-height: 60px; }
.admin-body .form-text { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

/* Upload file bergaya "dropzone" ringan, tanpa perlu ubah markup */
.admin-body input[type="file"].form-control {
    padding: 9px 12px;
    background: var(--soft-gray);
    border: 1.5px dashed #cfd9d4;
    cursor: pointer;
}
.admin-body input[type="file"].form-control:hover { border-color: var(--emerald); background: var(--primary-light); }
.admin-body input[type="file"].form-control::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background .18s ease;
}
.admin-body input[type="file"].form-control:hover::file-selector-button { background: var(--primary-dark); }

/* Foto pratinjau (foto guru/siswa/TU/madrasah) dibingkai rapi */
.admin-body form .card-widget img.img-fluid.rounded {
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    background: var(--soft-gray);
}

/* Baris tombol aksi (Simpan / Batal): dipisahkan sebagai bar
   tersendiri yang menempel di bagian bawah form, bukan sekadar
   margin-top acak */
.admin-body .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.2rem;
    margin-top: 0.85rem;
    box-shadow: var(--shadow-xs);
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
}
.admin-body .form-actions .btn { min-width: 130px; justify-content: center; }
.admin-body .form-actions .btn-outline-custom { min-width: 100px; }

@media (max-width: 767px) {
    .admin-body .form-actions { position: static; flex-direction: column; align-items: stretch; }
    .admin-body .form-actions .btn { width: 100%; }
}
