/* Import Font & Icon */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --sidebar-color: #1a252f;
    --primary-color: #27ae60;
    --bg-color: #ecf0f1;
    --text-color: #2c3e50;
    --white: #ffffff;
    --danger: #e74c3c;
    --warning: #f39c12;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: var(--sidebar-color);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}
.sidebar h2 {
    text-align: center;
    padding: 20px;
    background-color: #151e26;
    margin: 0;
    font-size: 20px;
    border-bottom: 1px solid #34495e;
}
.sidebar ul { list-style: none; padding: 0; margin-top: 20px; }
.sidebar ul li a {
    display: block;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}
.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: var(--primary-color);
    color: white;
    padding-left: 30px;
}
.sidebar ul li a i { margin-right: 10px; width: 20px; }

/* --- KONTEN UTAMA --- */
.main-content {
    margin-left: 250px;
    padding: 30px;
}
.header-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    border-bottom: 2px solid #bdc3c7;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}
.header-title i { margin-right: 15px; color: var(--primary-color); }

/* --- KARTU DASHBOARD BARU (DENGAN ICON) --- */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Sedikit lebih lebar */
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px; /* Sudut lebih bulat */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex; /* Agar icon dan teks berdampingan */
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
    overflow: hidden;
    position: relative;
}

.card:hover { transform: translateY(-5px); }

.card-content { z-index: 2; } /* Agar teks di atas icon */

.card h3 { 
    margin: 0; font-size: 14px; color: #95a5a6; 
    text-transform: uppercase; letter-spacing: 1px; 
}

.card .value { 
    font-size: 42px; font-weight: 700; color: var(--text-color); 
    margin: 5px 0 15px 0;
}

.card .status { 
    font-weight: 600; padding: 8px 15px; border-radius: 30px; 
    display: inline-flex; align-items: center; font-size: 13px; 
}
.card .status i { margin-right: 8px; }

/* Icon besar di latar belakang kartu */
.card-icon {
    font-size: 80px;
    opacity: 0.15; /* Transparan */
    position: absolute;
    right: 20px;
    bottom: 20px;
}

/* Warna Status */
.status-danger { background: #fadbd8; color: var(--danger); }
.status-success { background: #d5f5e3; color: var(--primary-color); }
.status-warning { background: #d6eaf8; color: #2980b9; }

/* Icon Colors */
.icon-danger { color: var(--danger); }
.icon-success { color: var(--primary-color); }
.icon-warning { color: #2980b9; }

/* --- TABEL --- */
.table-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
thead { background: var(--sidebar-color); color: white; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
tr:hover { background-color: #f8f9fa; }

/* --- HALAMAN LOGIN (Tidak Berubah) --- */
.login-bg { background-color: #2c3e50; display: flex; justify-content: center; align-items: center; height: 100vh; }
.login-container { background: white; width: 350px; padding: 40px; border-radius: 10px; box-shadow: 0 15px 25px rgba(0,0,0,0.2); }
.login-header h2 { color: #27ae60; text-align: center; margin-bottom: 5px; }
.login-header p { text-align: center; color: #7f8c8d; margin-top: 0; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: #34495e; font-weight: bold; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
.btn-login { width: 100%; padding: 12px; background-color: #27ae60; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; font-weight: bold; }
.btn-login:hover { background-color: #219150; }