* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }

:root {
    --hijau-tua: #1B5E20 !important;
    --oranye: #FF6F00 !important;
    --merah: #B71C1C !important;
    --hijau-muda: #E8F5E9 !important;
    --oranye-muda: #FFF3E0 !important;
    --merah-muda: #FFEBEE !important;
    --teks-terang: #ffffff !important;
    --teks-gelap: #263238 !important;
    --batas: #E0E0E0 !important;
}

body { background: #F5F5F5; color: var(--teks-gelap); }

/* Halaman Login */
.login-body { 
    display: flex; align-items: center; justify-content: center; min-height: 100vh; 
    background: linear-gradient(135deg, #1B5E20, #2E7D32) !important; 
}
.login-box { 
    background: white; padding: 40px 30px; border-radius: 12px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); width: 100%; max-width: 420px; 
}
.login-box h2 { text-align: center; color: #1B5E20; margin-bottom: 5px; font-size: 20px; }
.login-box h3 { text-align: center; color: #666; margin-bottom: 25px; font-size: 16px; font-weight: normal; }

/* Pesan Notifikasi */
.error { 
    background: #FFEBEE; color: #B71C1C; 
    padding: 12px; border-radius: 6px; margin-bottom: 15px; border-left: 4px solid #B71C1C; 
}
.success { 
    background: #E8F5E9; color: #1B5E20; 
    padding: 12px; border-radius: 6px; margin-bottom: 15px; border-left: 4px solid #1B5E20; 
}
.info-box {
    background: #FFF3E0; padding: 15px; border-radius: 8px;
    border-left: 4px solid #FF6F00; margin-top: 20px;
}
.akses-ditolak {
    background: #FFEBEE; padding: 30px; border-radius: 10px; text-align: center;
    border-left: 4px solid #B71C1C;
}

/* Formulir */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #263238; }
input, select, textarea, button { 
    width: 100%; padding: 11px; border: 1px solid #E0E0E0; 
    border-radius: 6px; font-size: 14px; transition: 0.2s; 
}
input:focus, select:focus, textarea:focus { 
    outline: none; border-color: #1B5E20; box-shadow: 0 0 0 3px rgba(27,94,32,0.1); 
}
button { 
    background: #1B5E20; color: white; border: none; cursor: pointer; 
    font-weight: 600; transition: 0.2s; 
}
button:hover { background: #FF6F00; color: white; }

/* === SIDEBAR — WARNA DIPASTIKAN HIJAU TUA === */
.container { display: flex; min-height: 100vh; }
.sidebar { 
    width: 260px; background: #1B5E20 !important; color: white !important; 
    padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto; 
}
.sidebar h2 { 
    padding: 0 20px 15px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.25); 
    margin-bottom: 15px; color: white !important; 
}
.user-info { padding: 0 20px 15px; font-size: 13px; color: #C8E6C9 !important; }
.menu-link { 
    display: block; padding: 12px 20px; color: #E8F5E9 !important; text-decoration: none; 
    transition: 0.2s; border-left: 3px solid transparent; 
}
.menu-link:hover { background: rgba(255,255,255,0.1); border-left-color: #FF6F00; }
.menu-link.logout { margin-top: 20px; color: #FFCCBC !important; }
.menu-link.logout:hover { border-left-color: #B71C1C; }

.content { margin-left: 260px; padding: 30px; flex: 1; }
h1, h2, h3 { margin-bottom: 20px; color: #1B5E20 !important; }
h3 { margin-top: 30px; font-size: 17px; border-bottom: 2px solid #E0E0E0; padding-bottom: 8px; }

/* Tabel Data */
.data-table { 
    width: 100%; border-collapse: collapse; margin-top: 15px; background: white; 
    border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
}
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #F0F0F0; font-size: 14px; }
.data-table th { background: #E8F5E9; font-weight: 600; color: #1B5E20; }
.data-table tr:hover { background: #FAFAFA; }

/* Tombol Kecil */
.btn-small { 
    display: inline-block; padding: 5px 12px; background: #FFF3E0; 
    color: #FF6F00; text-decoration: none; border-radius: 4px; 
    margin-right: 5px; font-size: 13px; font-weight: 500; transition: 0.2s; 
}
.btn-small:hover { background: #FF6F00; color: white; }

/* Kotak Formulir */
.form-style { 
    background: white; padding: 25px; border-radius: 10px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 30px; 
}