/* PPDB Online — gaya workspace minimalis (ala Notion): sidebar abu muda, garis halus, aksen indigo */
:root {
    --bg: #ffffff;
    --side: #f7f7f5;
    --hover: #efefed;
    --ink: #37352f;
    --ink-2: #191919;
    --muted: #787774;
    --line: #e9e9e7;
    --accent: #4f46e5;
    --accent-soft: #eef0ff;
    --c-gray: #787774;   --c-gray-bg: #f1f1ef;
    --c-amber: #b45309;  --c-amber-bg: #fdf3dc;
    --c-red: #c4362b;    --c-red-bg: #fde8e6;
    --c-blue: #2563c9;   --c-blue-bg: #e7effc;
    --c-green: #2e7d48;  --c-green-bg: #e4f3e8;
    --c-purple: #7e4cc7; --c-purple-bg: #f1eafc;
    --font: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.6 var(--font); }
a { color: var(--ink); text-decoration-color: #c9c9c6; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.mt { margin-top: 26px; }
h1, h2, h3 { margin: 0; color: var(--ink-2); font-weight: 700; letter-spacing: -.01em; }

/* Layout */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 12px 8px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; font-size: 14px; }
.ws { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; font-weight: 600; color: var(--ink-2); }
.ws .logo { width: 24px; height: 24px; border-radius: 5px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ws small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.2; }
.side .sec { font-size: 12px; color: var(--muted); padding: 16px 10px 4px; font-weight: 600; }
.side a { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 500; }
.side a:hover { background: var(--hover); color: var(--ink); }
.side a.active { background: var(--hover); color: var(--ink-2); font-weight: 600; }
.side a .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.side .grow { flex: 1; }
.main { min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid transparent; }
.crumbs .grow { flex: 1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.page { max-width: 1120px; margin: 0 auto; padding: 40px 48px 70px; }
.page.wide { max-width: 1320px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title .icon-big { width: 52px; height: 52px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.page-title h1 { font-size: 34px; line-height: 1.15; }
.page-title p { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Blok konten */
.box { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.box-head h2 { font-size: 15px; }
.box-body { padding: 16px; }
.props { display: grid; grid-template-columns: 170px 1fr; gap: 2px 12px; font-size: 14px; }
.props dt { color: var(--muted); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.props dd { margin: 0; padding: 6px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 28px; color: var(--ink-2); margin-top: 2px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 6px; background: var(--side); margin-bottom: 18px; }
.callout.blue { background: var(--c-blue-bg); } .callout.amber { background: var(--c-amber-bg); } .callout.red { background: var(--c-red-bg); } .callout.green { background: var(--c-green-bg); }
.callout .ic { margin-top: 2px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 15, 15, .04); }
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-lg { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Tabel database */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #fafaf9; }
td strong { display: block; font-weight: 600; color: var(--ink-2); }
td small { color: var(--muted); display: block; font-size: 12.5px; }
.empty { text-align: center; color: var(--muted); padding: 34px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.badge-gray { background: var(--c-gray-bg); color: var(--c-gray); } .badge-amber { background: var(--c-amber-bg); color: var(--c-amber); }
.badge-red { background: var(--c-red-bg); color: var(--c-red); } .badge-blue { background: var(--c-blue-bg); color: var(--c-blue); }
.badge-green { background: var(--c-green-bg); color: var(--c-green); } .badge-purple { background: var(--c-purple-bg); color: var(--c-purple); }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: var(--c-green-bg); color: var(--c-green); }
.alert-error { background: var(--c-red-bg); color: var(--c-red); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
input[type=text], input[type=number], input[type=date], input[type=datetime-local], input[type=password], input[type=search], input[type=file], select, textarea {
    width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; color: var(--ink); box-shadow: inset 0 1px 1px rgba(15, 15, 15, .03);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-actions { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Langkah pendaftaran */
.steps { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 22px; }
.steps a { flex: 1; padding: 10px 14px; text-decoration: none; color: var(--muted); font-size: 13.5px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.steps a:last-child { border-right: 0; }
.steps a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.steps a .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.steps a.done .dot { background: var(--c-green); border-color: var(--c-green); color: #fff; }

/* Progress kuota */
.quota { margin-bottom: 14px; }
.quota .row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.quota .track { height: 6px; border-radius: 4px; background: var(--c-gray-bg); overflow: hidden; }
.quota .fill { height: 100%; background: var(--accent); border-radius: 4px; }
.quota .fill.over { background: var(--c-amber); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bar { width: 100%; max-width: 30px; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-col small { font-size: 11px; color: var(--muted); }

/* Halaman publik */
.pub-top { display: flex; align-items: center; gap: 10px; max-width: 1120px; margin: 0 auto; padding: 16px 48px; }
.pub-top .logo { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.pub-top strong { color: var(--ink-2); }
.pub-top nav { margin-left: auto; display: flex; gap: 4px; }
.pub-top nav a { padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 500; }
.pub-top nav a:hover { background: var(--hover); color: var(--ink); }
.cover { height: 120px; background: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li:last-child { border-bottom: 0; }
.timeline li.now { color: var(--accent); font-weight: 600; }
.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.file .grow { flex: 1; min-width: 0; }
.file.ok { border-color: #cfe7d6; background: #f7fcf8; }
.card-print { max-width: 640px; margin: 0 auto; border: 1px solid var(--ink); border-radius: 8px; padding: 24px; }
.card-print .head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.card-print img { width: 110px; height: 146px; object-fit: cover; border: 1px solid var(--line); }

@media print { .side, .crumbs, .no-print, .pub-top { display: none !important; } .layout { display: block; } .page { padding: 0; } }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .layout { grid-template-columns: 1fr; }
    .side { position: fixed; left: -250px; z-index: 50; width: 240px; transition: left .2s; }
    .side.open { left: 0; }
    .page, .pub-top { padding-left: 16px; padding-right: 16px; }
    .page { padding-top: 24px; }
    .page-title h1 { font-size: 26px; }
    .form-grid, .stats { grid-template-columns: 1fr; }
    .props { grid-template-columns: 1fr; }
    .steps { flex-direction: column; } .steps a { border-right: 0; border-bottom: 1px solid var(--line); }
    .pub-top nav { display: none; }
}
@media (max-width: 760px) { .menu-mobile { display: inline-flex !important; } }
