/* layout.css */
/* Mengandungi gaya asas, header, kawalan, dan butang. */

/* Gaya Asas */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Bahagian Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.8em;
}

/* Kawalan (Pilihan Bulan & Tahun) */
.controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.select-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-group label {
    font-weight: 500;
    color: #555;
}

select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:hover {
    border-color: #80bdff;
}

select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Aksi (Butang) */
.actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-add {
    background-color: #28a745;
    color: white;
}

.btn-add:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-save {
    background-color: #ffc107;
    color: #212529;
}

.btn-save:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.btn-print {
    background-color: #007bff;
    color: white;
}

.btn-print:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

/* Footer dan Status Simpan */
footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

#save-status {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
    transition: color 0.5s;
}

#save-status.saved {
    color: #28a745;
    font-weight: 500;
}
