:root {
    --navy: #172847;
    --navy-2: #20375f;
    --gold: #c9a227;
    --bg: #f5f7fb;
    --text: #1c2635;
    --muted: #6f7b8f;
    --danger: #b42318;
    --success: #0b7a3b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--navy); color: #fff; transition: width .25s ease; flex-shrink: 0; }
.sidebar.collapsed { width: 76px; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar nav { display: grid; gap: 6px; padding: 14px; }
.sidebar a { padding: 12px 14px; border-radius: 12px; color: #dfe7f4; white-space: nowrap; overflow: hidden; }
.sidebar a.active, .sidebar a:hover { background: rgba(201,162,39,.18); color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 72px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 8px 28px rgba(23,40,71,.08); }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--navy); }
.brand img { max-height: 42px; max-width: 150px; object-fit: contain; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn, .btn, button { border: 0; border-radius: 10px; cursor: pointer; }
.icon-btn { background: #edf1f7; padding: 8px 11px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 10px 14px; font-weight: 600; }
.btn.secondary { background: #e9edf5; color: var(--navy); }
.btn.gold { background: var(--gold); color: #141414; }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
.content { padding: 26px; flex: 1; }
.footer { background: #fff; color: var(--muted); padding: 10px 24px; border-top: 1px solid #e5eaf2; }
.card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 10px 35px rgba(23,40,71,.08); margin-bottom: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; color: var(--navy); font-size: 28px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #d7deea; border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { min-height: 100px; resize: vertical; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { text-align: left; padding: 12px 13px; border-bottom: 1px solid #edf1f7; vertical-align: top; }
th { color: var(--navy); background: #f8fafc; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #e8edf5; color: var(--navy); }
.badge.pending, .badge.postpone { background: #fff4cc; color: #8a6500; }
.badge.approved, .badge.berlaku, .badge.active, .badge.successful, .badge.aktif { background: #dff7e9; color: var(--success); }
.badge.non_aktif { background: #fff4cc; color: #8a6500; }
.badge.rejected, .badge.expired, .badge.deleted { background: #fee4e2; color: var(--danger); }
.alert { padding: 13px 15px; border-radius: 12px; margin-bottom: 16px; }
.alert.success { background: #e8f8ef; color: var(--success); }
.alert.danger { background: #fee4e2; color: var(--danger); }
.notif { position: relative; }
.notif-btn { background: #f1f4fa; padding: 10px 12px; color: var(--navy); }
.notif-btn b { background: var(--gold); border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.notif-menu { display: none; position: absolute; right: 0; top: 42px; width: 380px; max-width: 90vw; background: #fff; box-shadow: 0 18px 40px rgba(23,40,71,.16); border-radius: 14px; padding: 10px; z-index: 10; }
.notif:hover .notif-menu { display: grid; }
.notif-menu a { padding: 10px; border-radius: 10px; }
.notif-menu a:hover { background: #f3f6fb; }
.notif-section { display: grid; gap: 5px; padding: 8px; border-bottom: 1px solid #edf1f7; }
.notif-section:last-child { border-bottom: 0; }
.notif-section strong { color: var(--navy); }
.notif-section span { color: var(--muted); font-size: 13px; }
.notif-all { color: var(--gold); font-weight: 700; }
.user-menu { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.user-menu span { color: var(--navy); font-weight: 700; }
.notification-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(12, 24, 43, .58); }
.notification-dialog { width: min(780px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.notification-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.notification-head h2 { margin: 0; color: var(--navy); }
.notification-head p { margin: 5px 0 0; color: var(--muted); }
.notification-panel { display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: 16px; background: #f8fafc; border: 1px solid #e3e9f3; }
.notification-panel h3 { margin: 0 0 4px; color: var(--navy); }
.notification-panel a { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #edf1f7; }
.notification-panel a:hover { border-color: var(--gold); }
.notification-panel small, .muted { color: var(--muted); }
.notification-actions { justify-content: flex-end; margin-top: 18px; }
.todo-panel { display: grid; align-content: start; gap: 10px; padding: 16px; border-radius: 16px; background: #f8fafc; border: 1px solid #e3e9f3; }
.todo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.todo-head h2 { margin: 0; color: var(--navy); }
.todo-item { display: grid; gap: 4px; padding: 13px; border-radius: 14px; background: #fff; border: 1px solid #edf1f7; }
.todo-item:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(23,40,71,.08); transform: translateY(-1px); }
.todo-item strong { color: var(--navy); }
.todo-item span { color: var(--text); }
.todo-item small { color: var(--muted); }
.copy-link { display: flex; align-items: center; gap: 8px; min-width: 420px; }
.copy-link input { min-width: 320px; }
.copy-status { color: var(--success); font-size: 12px; font-weight: 700; min-width: 48px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); padding: 24px; }
.login-card { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 34px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.login-logo { display: block; max-width: 220px; max-height: 90px; margin: 0 auto 24px; object-fit: contain; }
.terms { max-height: 280px; overflow: auto; background: #f8fafc; border: 1px solid #e1e7f0; padding: 16px; border-radius: 14px; line-height: 1.55; }
.terms-check { display: flex; grid-template-columns: none; grid-auto-flow: column; justify-content: flex-start; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--navy); }
.terms-check input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.submit-wrap { display: flex; justify-content: center; }
.submit-btn { justify-content: center; min-width: 240px; text-align: center; }
.upload-progress { display: none; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: #f8fafc; border: 1px solid #dfe7f4; color: var(--navy); }
.upload-progress.active { display: flex; }
.upload-progress p { margin: 4px 0 10px; color: var(--muted); }
.progress-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #dfe7f4; border-top-color: var(--gold); animation: spin 1s linear infinite; flex: 0 0 auto; }
.progress-track { position: relative; overflow: hidden; height: 8px; width: min(420px, 70vw); border-radius: 999px; background: #e5ebf5; }
.progress-track span { position: absolute; inset: 0 auto 0 0; width: 45%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f3d36b); animation: progress-slide 1.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress-slide {
    0% { transform: translateX(-110%); }
    50% { transform: translateX(90%); }
    100% { transform: translateX(240%); }
}
@media (max-width: 900px) {
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-100%); width: 260px; }
    .sidebar.open { transform: translateX(0); }
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; height: auto; padding: 16px; gap: 12px; flex-direction: column; }
    .top-actions { flex-wrap: wrap; }
}
@media print {
    .sidebar, .topbar, .footer, .no-print, .actions, form.search-form { display: none !important; }
    .content { padding: 0; }
    .card { box-shadow: none; padding: 0; }
}
