/* === 1. IMPORT FONT & RESET DASAR === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00d2ff;       /* Biru Neon */
    --danger: #ff4444;        /* Merah Neon */
    --success: #00ff88;       /* Hijau Neon */
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 50px; /* Ruang untuk scroll bawah */
}

/* === 2. NAVBAR PREMIUM (TOMBOL KAPSUL) === */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* Style Tombol Navbar */
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px; /* Bentuk Kapsul */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Efek Hover Navbar */
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Efek Tombol Aktif */
.nav-links a.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* Tombol Logout Spesial */
.btn-logout {
    border-color: rgba(255, 68, 68, 0.5) !important;
    color: #ff8888 !important;
}
.btn-logout:hover {
    background: var(--danger) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5) !important;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* === 3. KOMPONEN GLASS CARD (KOTAK) === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animasi Zoom Kartu */
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* === 4. FORM INPUT GLASS (PENTING AGAR TIDAK PUTIH POLOS) === */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin: 5px 0 15px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05); /* Latar Transparan */
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

/* Saat input diklik */
input:focus, select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Agar option select tetap terbaca (browser default putih) */
select option {
    background: #16213e;
    color: white;
}

/* === 5. TOMBOL UTAMA (NEON BUTTON) === */
.btn-neon {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

/* === 6. TABEL GLASS (Admin & Laporan) === */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    color: #eee;
}

.glass-table th, 
.glass-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* === 7. RESPONSIVE MOBILE (HAMBURGER MENU) === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Munculkan tombol hamburger */
    }

    .nav-links {
        position: absolute;
        top: 70px; /* Tepat di bawah navbar */
        left: 0;
        width: 100%;
        background: rgba(20, 20, 35, 0.95); /* Gelap Solid */
        backdrop-filter: blur(15px);
        flex-direction: column; /* Susun ke bawah */
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-200%); /* Sembunyi ke atas */
        transition: 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0); /* Muncul */
    }

    .nav-links a {
        width: 100%; /* Tombol lebar penuh */
        justify-content: center;
        background: rgba(255,255,255,0.05);
    }
}