/* =========================================
   1. SETUP VARIABLE & FONT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* WARNA UTAMA EVOPAY */
    --primary: #0090FF;  
    --primary-gradient: linear-gradient(135deg, #00A3FF 0%, #007ACC 100%);
    
    /* WARNA PENDUKUNG */
    --secondary: #FFB020;     /* Kuning/Oranye */
    --bg-body: #F4F7FE;       /* Abu-abu background */
    --text-dark: #2B3674;     /* Biru Gelap (Teks Utama) */
    --text-grey: #A3AED0;     /* Abu-abu (Teks Info) */
    --white: #FFFFFF;
    
    /* STYLE KARTU & LAYOUT */
    --radius: 20px;           /* Lengkungan Sudut */
    --shadow: 0px 18px 40px rgba(112, 144, 176, 0.12); /* Bayangan Soft */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

a { text-decoration: none; }

/* =========================================
   2. SIDEBAR (MENU KIRI)
   ========================================= */
.sidebar {
    width: 260px;
    height: 100vh;
    background: var(--primary-gradient); /* Gradasi Biru EvoPay */
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    padding-top: 30px;
    transition: all 0.3s ease;
    z-index: 100;
}

.brand {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0 15px;
}

.menu li {
    margin-bottom: 5px;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 10px;
}

/* Efek Hover & Active Menu */
.menu li a:hover, .menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.menu li a i {
    width: 25px;
    font-size: 16px;
    margin-right: 10px;
}

/* =========================================
   3. MAIN CONTENT (KANAN)
   ========================================= */
.main-content {
    margin-left: 260px; /* Geser konten agar tidak tertutup sidebar */
    padding: 30px;
    transition: margin-left 0.3s ease;
}

/* HEADER ATAS */
.top-header {
    background: var(--white);
    padding: 15px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    
    /* HEADER DIAM (TIDAK BERGERAK / STATIS) */
    position: static; 
}

/* TOMBOL MENU (GARIS 3) */
.toggle-btn {
    font-size: 22px;
    cursor: pointer;
    color: var(--text-dark);
    margin-right: 30px; /* <--- JARAK LEBAR BIAR GAK DEMPET */
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.toggle-btn:hover {
    background: #F4F7FE;
    color: var(--primary);
}

/* =========================================
   4. DASHBOARD CARDS (WIDGET)
   ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px; /* Tinggi minimal kartu */
}

.card p {
    font-size: 13px;
    color: var(--text-grey);
    margin: 0;
    font-weight: 500;
}

.card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 5px 0 0 0;
    font-weight: 700;
}

/* Icon Bulat Warna-Warni di Kartu */
.card-icon-bg {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-blue { background: #F4F7FE; color: var(--primary); }
.icon-green { background: #E6FFFA; color: #05CD99; }
.icon-orange { background: #FFF7E6; color: #FFB020; }

/* =========================================
   5. TABEL & BADGES
   ========================================= */
.table-container {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto; /* Biar bisa discroll samping kalau di HP */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--text-grey);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #F4F7FE;
}

td {
    padding: 15px;
    border-bottom: 1px solid #F4F7FE;
    color: var(--text-dark);
    font-size: 14px;
    vertical-align: middle;
}

/* Status Badges (Kapsul Warna) */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.bg-success { background: #E6FFFA; color: #05CD99; } /* Hijau */
.bg-danger { background: #FFF5F5; color: #E53E3E; }  /* Merah */
.bg-warning { background: #FFF7E6; color: #FFB020; } /* Kuning */

/* =========================================
   6. TOMBOL UTAMA
   ========================================= */
.btn-evo {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 144, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak icon dan teks tombol */
}

.btn-evo:hover {
    background: #007ACC;
    transform: translateY(-2px);
}

/* =========================================
   7. FORM INPUT
   ========================================= */
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #E0E5F2;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
    transition: 0.3s;
    box-sizing: border-box; /* Biar padding gak ngerusak lebar */
}

.form-control:focus {
    border-color: var(--primary);
    background: #F4F7FE;
}

/* =========================================
   8. RESPONSIVE (TAMPILAN HP)
   ========================================= */
.sidebar.hide { margin-left: -260px; } /* Sidebar Ngumpet */
.main-content.full { margin-left: 0; } /* Konten Melebar */

@media (max-width: 768px) {
    .sidebar { margin-left: -260px; } /* Default ngumpet di HP */
    .sidebar.hide { margin-left: 0; } /* Pas dipencet malah muncul */
    
    .main-content { margin-left: 0; padding: 15px; }
    .main-content.full { margin-left: 0; }
    
    .grid-cards { grid-template-columns: 1fr; } /* Kartu jadi 1 kolom */
    
    .top-header {
        padding: 15px;
        flex-direction: row; /* Tetap baris meskipun di HP */
    }
}