:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f3f4f6;
    --white: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card { background: var(--white); padding: 24px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-bottom: 20px; }
h2 { color: var(--primary); margin-bottom: 20px; font-size: 1.5rem; }
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
input:focus, select:focus { outline: none; border-color: var(--primary); }
.btn { display: inline-block; padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; text-decoration: none; text-align: center; transition: all 0.3s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background-color: #f9fafb; font-weight: 600; color: var(--text-light); }
tr:hover { background-color: #f9fafb; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; background: var(--white); padding: 16px 24px; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.nav h1 { font-size: 1.25rem; color: var(--primary); }
.nav a { color: var(--text-light); text-decoration: none; margin-left: 16px; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.alert { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; background: #e5e7eb; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; }
.tab-btn.active { background: var(--primary); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.search-box { display: flex; gap: 10px; margin-bottom: 20px; }
.search-box input { flex: 1; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal-content { background: white; padding: 24px; border-radius: 12px; max-width: 500px; margin: 50px auto; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --white: #ffffff;
    --text: #1f2937;
    --glass-bg: rgba(255, 255, 255, 0.95);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
}

/* Background Full Screen */
/* Background Full Screen - Versi Simpel & Akurat */
body.login-bg {
    background: url('bg.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
}

/* Overlay gelap untuk memperjelas konten */
body.login-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Pastikan konten di atas overlay */
.navbar, .modal-overlay {
    position: relative;
    z-index: 2;
}

/* Navbar dengan Tombol di KANAN */
.navbar {
    display: flex;
    justify-content: flex-end; /* KANAN - diganti dari flex-start */
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.btn-login-nav {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-login-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Modal Login */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.login-box {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.close-modal {
    position: absolute;
    top: 15px; 
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.close-modal:hover {
    color: #000;
}

h2.login-title {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #333;
    font-size: 14px;
}

.form-group input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e5e7eb; 
    border-radius: 8px; 
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover { 
    background: var(--primary-dark); 
    transform: translateY(-1px);
}

.alert {
    padding: 12px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    font-size: 14px;
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .login-box {
        margin: 20px;
        padding: 30px 20px;
    }
}