@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Subtle Mesh & Glass Palette */
    --bg-mesh: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    --glass-nav: rgba(255, 255, 255, 0.85);
    --glass-card: rgba(255, 255, 255, 0.7);
    --glass-card-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.7);
    --border-subtle: #e2e8f0;

    /* Typography & Accents */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-red: #dc3545;

    /* Spacing & Radii */
    --radius-ios: 16px;
    --radius-sm: 10px;
    --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* ==========================================
   BASE SETUP
   ========================================== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-mesh);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   DESKTOP NAVBAR
   ========================================== */
.navbar-custom {
    background: var(--glass-nav) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.brand-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.nav-link-item {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero-wrapper {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(30, 41, 59, 0.82) 100%
    ),
    url('../foto/bg.jpg') center/cover no-repeat;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-ios);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4.5rem 2rem 4rem 2rem;
    color: #ffffff;
    text-align: center;
    margin-top: 1.25rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-heading {
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    color: #e2e8f0;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 1.75rem auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-emerald {
    background: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: 25px;
    border: none;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-emerald:hover {
    background: var(--accent-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.btn-outline-hero {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================
   CARDS & STATS
   ========================================== */
.modern-card {
    background: var(--glass-card);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-ios);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    background: var(--glass-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.modern-card:hover .card-icon {
    background: var(--accent-blue);
    color: #ffffff;
}

.stat-card-custom {
    background: var(--glass-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    box-shadow: var(--shadow-subtle);
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-label-title {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    color: #94a3b8;
    padding: 3.5rem 0 1.75rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #38bdf8;
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION & MODAL POPUP
   ========================================== */

/* Fixed Navigation Bawah Layar Mobile */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1060 !important;
    padding: 0 10px;
}

/* Item Menu Samping Bottom Nav */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8c8c8c;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex: 1;
    transition: color 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--accent-red);
}

/* Tombol Tengah Bulat Melayang */
.bottom-nav-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0 10px;
    position: relative;
    top: -15px;
    cursor: pointer;
    outline: none !important;
}

.bottom-nav-trigger .icon-circle {
    width: 56px;
    height: 56px;
    background-color: #0d1b2a;
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.bottom-nav-trigger:active .icon-circle {
    transform: scale(0.9);
}

/* Modal Popup (Berada di Bawah, Pas di atas Bottom Nav) */
.modal-mobile-nav {
    z-index: 1055 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modal-mobile-nav .modal-dialog-bottom {
    max-width: 90%;
    margin: 0 auto;
    position: fixed;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%) !important;
    width: 100%;
}

.modal-mobile-nav .modal-content {
    background-color: #ffffff;
    border-radius: 28px !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none;
}

/* Overlay Transparan Halus */
.modal-backdrop.show {
    opacity: 0.25 !important;
    backdrop-filter: blur(3px);
}

/* Card Menu dalam Modal Navigasi */
.nav-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background-color: #f8f9fa;
    border-radius: 14px;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.nav-card-item i {
    font-size: 1.2rem;
}

.nav-card-item.active {
    background-color: #fde8e8;
    color: var(--accent-red);
}

.nav-card-item.active i {
    color: var(--accent-red) !important;
}

.nav-card-item:hover {
    background-color: #f1f3f5;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE & AOS FIX)
   ========================================== */

/* Khusus Mobile (< 768px): Paksa konten langsung tampil 100% tanpa risiko terhalang AOS */
@media (max-width: 767.98px) {
    body [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }

    .hero-wrapper {
        padding: 2.5rem 1rem;
        margin-top: 0.75rem;
        border-radius: 14px;
    }

    .hero-heading {
        font-size: 1.65rem;
    }

    .hero-desc {
        font-size: 0.925rem;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-emerald, .btn-outline-hero {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }

    .modern-card {
        padding: 1.25rem;
    }
}

/* Khusus Desktop (>= 768px): Animasi AOS Berjalan Normal */
@media (min-width: 768px) {
    [data-aos] {
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    .hero-wrapper {
        padding: 4.5rem 3rem;
    }

    .hero-heading {
        font-size: 2.85rem;
    }
}
/* ==========================================================================
   SOFT WHITE & LIGHT BLUE ADMIN DASHBOARD THEME
   ========================================================================== */
body.admin-body-soft {
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155;
    margin: 0;
}

.admin-sidebar-soft {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    z-index: 1000;
}

.admin-content-soft {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.sidebar-brand-soft {
    border-bottom: 1px solid #f1f5f9;
}

.nav-soft-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-soft-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.nav-soft-item.active {
    background: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

.card-soft {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
