* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f1f5f9;
    margin: 0;
    color: #1e293b;
}
.topbar {
    background: #0f172a;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar a {
    color: #fff;
    background: #334155;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.topbar a:hover { background: #475569; }
.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    width: 340px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.login-box h2 { margin-top: 0; text-align: center; }
label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: #334155; }
input[type=text], input[type=password], input[type=date], select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.btn:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
th { background: #f8fafc; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.badge { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-aktif { background: #dcfce7; color: #166534; }
.badge-nonaktif { background: #fee2e2; color: #991b1b; }
.actions a { margin-right: 8px; }
