/* style.css */
:root {
    --primary: #435ebe; /* Warna biru keunguan khas dashboard */
    --bg-light: #f2f7ff;
    --white: #ffffff;
    --text-dark: #25396f;
    --text-grey: #7c8db5;
    --success: #5ddab4;
    --warning: #ffc107;
    --danger: #ff7976;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); }
a { text-decoration: none; }

/* Layout Helper */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.btn { padding: 10px 20px; border-radius: 5px; cursor: pointer; border: none; font-weight: bold; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-block { width: 100%; display: block; text-align: center; }

/* 1. HOMEPAGE STYLE */
.hero { text-align: center; padding: 100px 20px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { color: var(--text-grey); max-width: 600px; margin: 0 auto 30px; line-height: 1.6; }

/* 2. LOGIN STYLE */
.login-wrapper { display: flex; justify-content: center; align-items: center; height: 100vh; }
.login-card { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); width: 100%; max-width: 400px; }
.login-card h2 { margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }

/* 3. DASHBOARD STYLE */
.dashboard-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: 250px; background: var(--white); padding: 20px; position: fixed; height: 100%; display: none; box-shadow: 2px 0 10px rgba(0,0,0,0.05); z-index: 100; }
.sidebar.active { display: block; } /* Tampil di mobile jika aktif */
@media(min-width: 768px) { .sidebar { display: block; position: sticky; top: 0; } }

.logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.menu-item { display: flex; align-items: center; padding: 12px; color: var(--text-grey); border-radius: 8px; margin-bottom: 5px; transition: 0.3s; }
.menu-item:hover, .menu-item.active { background-color: var(--primary); color: white; }
.menu-item i { margin-right: 10px; width: 20px; }

/* Main Content */
.main-content { flex: 1; padding: 20px; width: 100%; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.menu-toggle { font-size: 24px; cursor: pointer; display: block; }
@media(min-width: 768px) { .menu-toggle { display: none; } }

/* Cards */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
@media(min-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } } /* 2 kolom di tablet */
@media(min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } } /* 4 kolom di desktop */

.card { background: var(--white); padding: 20px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.card-info h3 { font-size: 14px; color: var(--text-grey); font-weight: normal; margin-bottom: 5px; }
.card-info h2 { font-size: 1.2rem; }
.card-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; }

.bg-primary { background-color: var(--danger); } /* Merah/Pink seperti Saldo */
.bg-warning { background-color: var(--warning); }
.bg-success { background-color: var(--success); }
.bg-info { background-color: #4facfe; }

/* Table Section */
.section-title { margin-bottom: 15px; font-size: 1.1rem; }
.table-card { background: var(--white); padding: 20px; border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { color: var(--text-grey); font-size: 0.9rem; }
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.badge-success { background: #d1f7e9; color: #17c671; }
.badge-pending { background: #fff3cd; color: #ffc107; }
