/* style.css - Fluid, Modern, and Responsive (Updated with Logo Colors) */

/* --- 1. GENERAL & BASELINE --- */
:root {
    --primary-color: #3cb8b3;     /* Hijau Teal dari logo Anda */
    --secondary-color: #4f545a;   /* Abu-abu gelap dari logo Anda */
    --background-light: #f4f6f9;  
    --text-dark: #343a40;         
    --border-color: #dee2e6;      
    --success-color: #28a745;     /* Tetap hijau standar untuk pesan sukses */
    --danger-color: #dc3545;      /* Tetap merah standar untuk pesan error/hapus */
    --warning-color: #ffc107;     /* Tetap kuning standar */
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

h1, h2, h3 {
    color: var(--primary-color); /* Judul menggunakan warna logo */
    margin-top: 25px;
    margin-bottom: 15px;
}

h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-weight: 400;
}

/* --- 2. NAVIGATION & LINKS --- */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-menu li a {
    text-decoration: none;
    background-color: var(--primary-color); /* Warna logo */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
    font-weight: 500;
}

.nav-menu li a:hover {
    background-color: #2e9a96; /* Sedikit lebih gelap dari primary-color */
    box-shadow: 0 4px 10px rgba(60, 184, 179, 0.4); /* Bayangan dengan warna logo */
    transform: translateY(-2px);
}

/* Modifikasi agar tautan di nav-menu yang tidak memiliki kelas tombol tetap terlihat */
.nav-menu li a:not([class*="button-link"]) {
    background-color: var(--primary-color); /* Gunakan warna primary untuk default link */
    color: white;
}

.nav-menu li a:not([class*="button-link"]):hover {
    background-color: #2e9a96; /* Warna hover yang sama */
}


/* --- 3. FORMS & INPUTS --- */
form {
    background: #ffffff;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9em;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color); /* Warna logo saat fokus */
    box-shadow: 0 0 0 2px rgba(60, 184, 179, 0.2); /* Bayangan fokus lembut dengan warna logo */
    outline: none;
}

/* --- 4. BUTTONS --- */
button,
.button-link {
    background-color: var(--primary-color); /* Warna logo untuk tombol utama */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

button:hover,
.button-link:hover {
    background-color: #2e9a96; /* Sedikit lebih gelap dari primary-color */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-delete { background-color: var(--danger-color); }
.btn-delete:hover { background-color: #bd2130; }

.btn-secondary { background-color: var(--secondary-color); } /* Warna abu-abu dari logo */
.btn-secondary:hover { background-color: #3e4246; } /* Sedikit lebih gelap */


/* --- 5. TABLES --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95em;
}

table th, table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.3s;
}

table th {
    background-color: var(--primary-color); /* Warna logo */
    color: white;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

table tr:nth-child(even) {
    background-color: #fcfcfc;
}

table tr:hover:not(tfoot tr) {
    background-color: #e6f7f7; /* Highlight hover yang lebih sesuai dengan warna logo */
}

/* Khusus Baris Total/Footer Tabel */
table tfoot tr {
    font-weight: bold;
    background-color: #e6f7f7; /* Warna terang yang berbeda */
    border-top: 3px solid var(--primary-color);
    color: var(--text-dark);
}

/* --- 6. MESSAGES --- */
.success-message, .error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 5px solid;
    transition: opacity 0.3s;
}

/* --- 7. RESPONSIVE DESIGN (TAMPILAN MOBILE) 📱 --- */
@media screen and (max-width: 768px) {
    /* ... (tetap sama dengan sebelumnya) ... */
    .nav-menu {
        gap: 8px;
        margin-bottom: 25px;
    }

    .nav-menu li a {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    table td:before {
        color: var(--secondary-color); /* Warna abu-abu dari logo */
    }
    
    button, .button-link {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Tambahkan ini ke style.css */
.notification-icon-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}
.notification-bell {
    font-size: 1.5em; /* Ukuran lonceng */
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s;
}
.notification-bell:hover {
    color: var(--primary-color);
}
.notification-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--danger-color); /* Merah untuk menarik perhatian */
    color: white;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    min-width: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Tambahkan ke style.css */

.notification-icon-container {
    /* Harus diatur sebagai relative agar dropdown (absolute) bisa diposisikan di dalamnya */
    position: relative;
    display: inline-block;
    margin-right: 25px; 
}

.notification-dropdown {
    position: absolute;
    top: 35px; /* Jarak dari lonceng */
    right: 0;
    width: 300px; /* Lebar dropdown */
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000; /* Pastikan di atas elemen lain */
    display: none; /* Sembunyikan secara default */
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown.active {
    display: block; /* Tampilkan jika class 'active' dipasang */
}

.dropdown-item {
    padding: 8px;
    border-bottom: 1px dashed #eee;
    text-align: left;
    font-size: 0.9em;
}

.dropdown-item:last-child {
    border-bottom: none;
}