/* --- GLOBAL RESET --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto; 
}

/* Background image subtle */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #1a0b00, #000000 60%);
    z-index: -1;
}

/* --- SIDEBAR --- */
.sidebar {
    height: 100vh;
    background: rgba(20, 20, 20, 0.95); /* Sedikit lebih gelap biar solid */
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    padding-top: 20px;
    z-index: 1000;
    transition: all 0.3s ease-in-out; /* Transisi Halus */
}

.brand-title {
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.brand-title span { color: #0dcaf0; }

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #0dcaf0; 
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-left: 4px solid #fd7e14; 
}

.nav-link:hover i, .nav-link.active i {
    color: #fd7e14; 
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.6);
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: 260px;
    padding: 30px 30px 0 30px; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column; 
    transition: margin-left 0.3s ease; /* Transisi halus saat resize */
}

/* --- STAT CARDS --- */
.stat-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #0dcaf0; 
    box-shadow: 0 5px 20px rgba(13, 202, 240, 0.2);
}

.stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 3rem;
    opacity: 0.1;
    color: #ffffff;
}

.stat-title { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 1.8rem; font-weight: 700; margin-top: 5px; }

/* Warna Text */
.text-orange { color: #fd7e14 !important; text-shadow: 0 0 10px rgba(253, 126, 20, 0.4); }
.text-blue { color: #0dcaf0 !important; text-shadow: 0 0 10px rgba(13, 202, 240, 0.4); }

/* --- TABLE --- */
.table-holo-container {
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 12px;
    overflow: hidden; /* Penting buat tabel */
    box-shadow: 0 0 20px rgba(13, 202, 240, 0.05); 
    
    /* Agar tabel bisa di-scroll horizontal di HP */
    overflow-x: auto; 
}

.table-holo {
    width: 100%;
    border-collapse: collapse; 
    color: #ffffff;
    min-width: 600px; /* Paksa lebar minimal agar tidak gepeng di HP */
}

.table-holo thead th {
    background: rgba(13, 202, 240, 0.05); 
    color: #0dcaf0; 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 20px 15px;
    text-align: left;
    border-bottom: 2px solid rgba(13, 202, 240, 0.5); 
}

.table-holo tbody tr { transition: background-color 0.3s ease; }
.table-holo tbody tr:hover { background-color: rgba(253, 126, 20, 0.1); }
.table-holo td { padding: 20px 15px; vertical-align: middle; font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.table-holo tbody tr:last-child td { border-bottom: none; }

.sub-text { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); margin-top: 4px; }
.avatar-holo { width: 40px; height: 40px; border-radius: 50%; margin-right: 15px; border: 1px solid rgba(255, 255, 255, 0.5); }

/* --- FOOTER --- */
.footer {
    margin-top: auto; 
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    padding-bottom: 20px;
    width: 100%;
}

/* --- SUBMENU --- */
.submenu-link {
    font-size: 0.85rem !important; 
    padding: 8px 15px !important;
    color: rgba(255, 255, 255, 0.5) !important; 
    border-left: none !important; 
    transition: 0.3s;
}
.submenu-link:hover { color: #fd7e14 !important; background: transparent !important; padding-left: 20px !important; }
.nav-link[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); transition: transform 0.3s; }
.bi-chevron-down { transition: transform 0.3s; }

/* ========================================= */
/* RESPONSIVE MOBILE (OFF-CANVAS)           */
/* ========================================= */

/* 1. Tombol Hamburger (Default Sembunyi) */
.btn-toggle-sidebar {
    display: none; 
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 15px; /* Jarak ke teks judul */
}
.btn-toggle-sidebar:hover { border-color: #fd7e14; color: #fd7e14; }

/* 2. Overlay Gelap */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999; 
}

/* 3. Media Query HP (Max Width 768px) */
@media (max-width: 768px) {
    /* Geser sidebar keluar layar */
    .sidebar { left: -260px; }
    
    /* Class JS: Geser masuk layar */
    .sidebar.show { left: 0; }

    /* Konten utama jadi penuh */
    .main-content { margin-left: 0; padding: 20px 15px 0 15px; }

    /* Munculkan Tombol Hamburger */
    .btn-toggle-sidebar { display: block; }

    /* Sembunyikan teks profil biar tidak sempit */
    .user-profile-text { display: none !important; }
}




/* Styling Khusus Form Gelap */
.form-dark .form-control,
.form-dark .form-select {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: #0dcaf0;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.3);
    color: white;
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-dark option {
    background-color: #000;
    color: white;
}

/* Agar card tingginya seimbang visualnya */
.h-100-visual {
    height: 100%;
}


/* --- FOOTER --- */
.footer {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    padding-bottom: 20px;
    width: 100%;
}
