/* public/style.css - TEMA DARK & MODAL POPUP */
:root {
    --bg-dark: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --text-main: #f1f5f9;     /* Slate 100 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --accent-blue: #38bdf8;   /* Sky 400 */
    --accent-gold: #eab308;   /* Yellow 500 */
    --accent-green: #22c55e;  /* Green 500 */
    --accent-red: #ef4444;    /* Red 500 */
    --border: rgba(255,255,255,0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* UTILITIES */
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.text-center { text-align: center; }

/* CARD */
.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: 0.2s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-blue { background: var(--accent-blue); color: #0f172a; }
.btn-gold { background: var(--accent-gold); color: #0f172a; }
.btn-green { background: var(--accent-green); }
.btn-red { background: var(--accent-red); }
.btn-slate { background: #334155; border: 1px solid #475569; }
.btn-add { 
    background: linear-gradient(135deg, #3b82f6, #8b5cf6); 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* FORMS */
.form-group { margin-bottom: 15px; }
label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; display: block; font-weight: 600; }
input, select, textarea {
    width: 100%; padding: 12px; background: #020617;
    border: 1px solid #334155; color: white; border-radius: 8px;
    font-size: 0.95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* TABLES */
.table-responsive { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--accent-blue); font-weight: 600; background: rgba(15, 23, 42, 0.5); font-size: 0.85rem; text-transform: uppercase; }
tr:hover { background: rgba(255,255,255,0.02); }

/* BADGES */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; display: inline-block; }
.bg-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.bg-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* --- MODAL POPUP STYLE (FIXED CENTER) --- */
.modal {
    display: none; /* Wajib Hidden Awal */
    position: fixed; 
    z-index: 10000; /* Paling Depan */
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8); /* Latar Gelap Pekat */
    backdrop-filter: blur(5px);
    overflow: auto; /* Agar bisa discroll jika layar kecil */
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #1e293b;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid var(--accent-blue);
    width: 90%; max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: slideDown 0.3s;
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px;
}
.modal-header h3 { margin: 0; color: var(--accent-blue); }
.close-btn { color: #94a3b8; font-size: 28px; cursor: pointer; line-height: 1; }
.close-btn:hover { color: white; }

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideDown { from {transform: translateY(-50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }