/* style.css */

/* Import Font Modern: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset dan Global Styling */
body {
    /* Font Populer */
    font-family: 'Poppins', sans-serif; 
    background-color: #f4f7f6; /* Latar Belakang sangat terang, lebih lembut dari #f0f2f5 */
    color: #34495e; /* Teks default (Dark Gray/Slate) */
    margin: 0;
    line-height: 1.6;
}

/* --- UTILITY / Reusable Components --- */

/* Gaya untuk semua elemen Card dan Container */
.container, .card, .content-wrapper, .table-container {
    background: #ffffff;
    border-radius: 12px; /* Sudut Sangat Bulat */
    /* Box Shadow yang halus dan tidak menakutkan (Elegan) */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); 
    border: none;
}

/* Elemen Utama Konten */
.container {
    max-width: 95%; /* Lebih luas */
    width: 1000px;
    margin: 20px auto;
    padding: 30px;
}
h2, h3 {
    color: #2c3e50;
    /* Ganti border bawah dengan warna yang lebih solid dan modern */
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
    margin-top: 0;
    font-weight: 600; /* Sedikit lebih tebal */
}

form div {
    margin-bottom: 20px; /* Tambah spasi antar field */
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

input[type="text"], input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px 15px; /* Padding lebih besar */
    border: 1px solid #ced4da; /* Border abu-abu yang soft */
    border-radius: 8px; /* Sudut membulat */
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    /* Box shadow fokus yang bersih */
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); 
    outline: none;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%232c3e50" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center; /* Posisi icon lebih ke kanan */
}

button[type="submit"], .btn-action {
    background-color: #3498db; /* Warna primary yang konsisten */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3); /* Shadow untuk tombol */
}

button[type="submit"]:hover, .btn-action:hover {
    background-color: #2980b9;
    box-shadow: 0 6px 10px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px); /* Efek 'terangkat' saat dihover */
}

/* Perbaiki display untuk elemen tersembunyi */
.bulan-container, .tahun-container {
    margin-top: 20px;
}

.bulan-container label {
    display: inline-block;
    margin-right: 20px; /* Tambah jarak horizontal */
    margin-bottom: 10px;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}
/* --- Sidebar dan Navigasi --- */

.main-container {
    display: flex;
    min-height: 100vh; /* Pastikan minimal setinggi viewport */
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15); /* Shadow lebih tegas di sidebar */
    position: sticky; /* Agar sidebar tetap di tempat */
    top: 0;
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 20px;
    margin-bottom: 10px; /* Kurangi margin bawah */
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    border-bottom: none; /* Hapus border bawah di header sidebar */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex; /* Gunakan flexbox jika ada icon */
    align-items: center;
    padding: 15px 25px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s ease, border-left-color 0.3s ease;
    font-weight: 400; /* Lebih ringan */
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover {
    background-color: #34495e;
    color: #fff;
    border-left-color: #3498db;
}

.sidebar-menu li a.active {
    background-color: #34495e;
    border-left-color: #3498db; /* Aksen biru untuk yang aktif */
    font-weight: 600;
}
/* --- Area Konten Utama --- */

.content-wrapper {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    /* Hapus styling lama agar tidak konflik dengan .container */
    max-width: unset; 
    margin: 0;
}

.content-header {
    margin-bottom: 30px;
}

.dashboard-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    padding: 25px; /* Padding sedikit lebih besar */
    border-radius: 12px; /* Lebih membulat */
    /* Shadow lembut */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); 
    flex: 1;
    min-width: 200px;
    text-align: left; /* Ganti ke kiri untuk tampilan modern */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Efek hover yang elegan */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
    font-size: 16px;
    color: #7f8c8d; /* Warna abu-abu yang lebih tenang */
    border-bottom: none;
    padding-bottom: 0;
}

.card .amount, .card-value {
    font-size: 32px; /* Sedikit lebih besar */
    font-weight: 700;
    color: #3498db; 
    margin: 5px 0 0;
}
/* Gaya untuk tabel */
.table-container {
    overflow-x: auto;
    padding: 20px; /* Tambahkan padding di sekitar tabel */
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: separate; /* Penting untuk rounded corners */
    border-spacing: 0;
    margin-top: 0;
}

.data-table th, .data-table td {
    border-bottom: 1px solid #eee; /* Hanya border bawah */
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 15px 12px; /* Padding lebih besar */
    text-align: left;
}

.data-table th {
    background-color: #f8f9fa; /* Header lebih lembut */
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* Highlight baris saat dihover */
.data-table tbody tr:hover {
    background-color: #eaf6ff; 
}

/* Gaya untuk link di dalam tabel (misal tombol edit/delete) */
.data-table .btn-action {
    padding: 6px 12px;
    font-size: 0.9em;
    margin-right: 5px;
    border-radius: 6px;
    box-shadow: none;
}
.data-table .btn-action:hover {
    transform: none;
    box-shadow: none;
}
.data-table a {
    font-weight: 500;
    color: #3498db;
}

/* Menghilangkan gaya nav-links yang lama, jika masih dipakai */
.nav-links {
    margin-bottom: 25px;
}
.nav-links a {
    /* Gunakan gaya tombol yang sudah direvisi */
    background-color: #ecf0f1;
    padding: 10px 18px;
    border-radius: 8px;
    margin-right: 10px;
    font-weight: 600;
    color: #34495e;
    transition: background-color 0.3s;
}
.nav-links a:hover {
    background-color: #d8e0e5;
    color: #2c3e50;
}

/* Media Print (Tidak diubah, hanya diperiksa kembali) */
@media print {
    .sidebar {
        display: none;
    }
    .content-wrapper {
        margin-left: 0;
        padding: 0;
        width: 100%;
    }
    .data-table {
        font-size: 10pt;
    }
    .filter-container,
    .btn-filter,
    .btn-reset,
    .content-header .subtitle,
    h3,
    hr,
    .nav-links { /* Tambahkan nav-links */
        display: none;
    }
    .content-header h2 {
        display: block;
        text-align: center;
        margin: 20px 0;
        font-size: 18pt;
    }
}