/* Tryout TKA Se-Eks Karesidenan Kedu — Dafa Bintang Reksa */
:root {
	--brand: #163a6b;
	--brand-dark: #0d2647;
	--brand-soft: #e7eef8;
	--gold: #e8a317;
	--gold-dark: #c98a0c;
	--gold-soft: #fdf3dc;
	--ink: #1d2433;
	--muted: #6b7385;
	--line: #e3e7ef;
	--bg-soft: #f5f7fb;
	--radius: 14px;
}

body {
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--ink);
	background: #fff;
}
body.admin { background: var(--bg-soft); }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.text-gold { color: var(--gold) !important; }
.text-brand { color: var(--brand) !important; }
.bg-soft { background: var(--bg-soft); }
.bg-brand-soft { background: var(--brand-soft) !important; }
.bg-gold-soft { background: var(--gold-soft) !important; color: var(--gold-dark); }

/* ---------- Tombol ---------- */
.btn-brand {
	--bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
	--bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
	--bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
	--bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
	--bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
	font-weight: 600;
}
.btn-gold {
	--bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold);
	--bs-btn-hover-bg: var(--gold-dark); --bs-btn-hover-border-color: var(--gold-dark);
	--bs-btn-active-bg: var(--gold-dark); --bs-btn-active-border-color: var(--gold-dark);
	--bs-btn-color: #1b1300; --bs-btn-hover-color: #1b1300; --bs-btn-active-color: #1b1300;
	font-weight: 700;
}
.btn-outline-brand {
	--bs-btn-color: var(--brand); --bs-btn-border-color: #c3d0e4;
	--bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: var(--brand);
	--bs-btn-active-bg: var(--brand); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--brand);
	--bs-btn-disabled-color: #9aa6b8; --bs-btn-disabled-border-color: var(--line);
	font-weight: 600;
}
.btn-check:checked + .btn-outline-brand { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Navbar ---------- */
.nav-brand { background: var(--brand-dark); }
.nav-brand .nav-link { color: rgba(255,255,255,.78); font-weight: 500; }
.nav-brand .nav-link:hover, .nav-brand .nav-link.active { color: #fff; }
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 10px;
	background: var(--gold); color: var(--brand-dark); font-size: 1.1rem;
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.6rem; display: flex; }
.brand-sub { color: rgba(255,255,255,.65); font-size: .72rem; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(1200px 500px at 85% -10%, rgba(232,163,23,.22), transparent 60%),
	            linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 70%);
	color: #fff; padding: 72px 0 80px;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
	background-size: 22px 22px; pointer-events: none;
}
.hero .container { z-index: 1; }
.hero-pill {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
	font-size: .85rem; font-weight: 600;
}
.hero-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-window { font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-stats { display: grid; gap: 12px; }
.hero-stat {
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
	border-radius: var(--radius); padding: 18px 22px; backdrop-filter: blur(4px);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat-label { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 4px; }

/* ---------- Section ---------- */
.section-title { font-weight: 800; color: var(--brand-dark); letter-spacing: -.01em; }
.page-min { min-height: calc(100vh - 260px); }

.step-card {
	height: 100%; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 20px; background: #fff;
}
.step-card h6 { font-weight: 700; margin: 12px 0 6px; }
.step-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.step-num {
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--gold-soft); color: var(--gold-dark);
	display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.info-card {
	height: 100%; border-radius: var(--radius); padding: 20px;
	background: var(--brand-soft); color: var(--brand-dark);
}
.info-card h6 { font-weight: 700; }
.info-card p { font-size: .9rem; color: #3b4a63; }

.kab-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kab-num { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.kab-num small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.kab-card .progress { height: 6px; background: var(--brand-soft); }
.kab-card .progress-bar { background: var(--gold); }

.icon-circle {
	width: 64px; height: 64px; border-radius: 50%; display: inline-flex;
	align-items: center; justify-content: center; font-size: 1.6rem;
	background: var(--brand-soft); color: var(--brand);
}

/* ---------- Form ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.form-card .card-header {
	background: #fff; border-bottom: 1px solid var(--line);
	font-weight: 700; color: var(--brand-dark); padding: 14px 20px;
	border-radius: var(--radius) var(--radius) 0 0 !important;
}
.form-card .card-body { padding: 20px; }
.sec-num {
	display: inline-flex; width: 26px; height: 26px; border-radius: 8px; margin-right: 10px;
	align-items: center; justify-content: center; font-size: .82rem;
	background: var(--brand); color: #fff;
}
.sub-title { font-weight: 700; color: var(--brand); font-size: .95rem; margin-bottom: 12px; }
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select { border-color: #d5dbe6; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
	border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(22,58,107,.15);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

.petugas-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.petugas-row:last-child { border-bottom: 0; }
.kelas-chip { min-width: 96px; }
.total-box {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 18px; border-radius: 10px;
	background: var(--gold-soft); color: #5c3f00; font-weight: 600;
}
.total-box strong { font-size: 1.5rem; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.option-check {
	border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 38px; margin-bottom: 8px;
}
.option-check .form-check-input { margin-left: -26px; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.7); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Admin ---------- */
.panel-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-card > .card-header {
	background: #fff; border-bottom: 1px solid var(--line); font-weight: 700;
	border-radius: var(--radius) var(--radius) 0 0 !important; padding: 12px 18px;
}
.panel-card .table > :not(caption) > * > * { padding: .65rem 1rem; }
.panel-card .table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfd; }
.stat-tile {
	display: flex; gap: 14px; align-items: center; height: 100%;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.stat-icon {
	width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.stat-icon.bg-brand-soft { color: var(--brand); }
.stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.detail-dl dt { font-weight: 600; color: var(--muted); font-size: .88rem; }
.detail-dl dd { margin-bottom: .5rem; }
.kelas-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; text-align: center; min-width: 88px; }
.kelas-total { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .page-link { color: var(--brand); }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Login ---------- */
.login-body {
	min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
	background: radial-gradient(900px 400px at 80% -10%, rgba(232,163,23,.25), transparent 60%),
	            linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 70%);
}
.login-box { width: 100%; max-width: 400px; }

/* ---------- Bukti pendaftaran ---------- */
.bukti-body { background: var(--bg-soft); }
.bukti-wrap { max-width: 820px; }
.bukti-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; }
.bukti-kop { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 3px double var(--brand); }
.bukti-logo { max-height: 64px; max-width: 120px; object-fit: contain; }
.kop-org { font-weight: 800; color: var(--brand); letter-spacing: .06em; font-size: .85rem; }
.kop-title { font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.kop-sub { color: var(--muted); font-size: .9rem; }
.bukti-kode {
	display: flex; justify-content: space-between; align-items: center;
	margin: 18px 0; padding: 12px 18px; border-radius: 10px; background: var(--gold-soft);
}
.bukti-kode .kode { font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); letter-spacing: .04em; }
.bukti-h { font-weight: 800; color: var(--brand); margin-top: 18px; }
.bukti-table th { width: 34%; font-weight: 600; color: var(--muted); }
.bukti-table th, .bukti-table td { border-bottom-color: var(--line); }
.bukti-grid { font-size: .9rem; }
.bukti-grid thead th { background: var(--brand-soft); }

@media (max-width: 575.98px) {
	.bukti-paper { padding: 20px 16px; border-radius: 0; }
	.hero { padding: 48px 0 56px; }
}

@media print {
	@page { size: A4; margin: 14mm; }
	.no-print { display: none !important; }
	.bukti-body { background: #fff; }
	.bukti-paper { border: 0; padding: 0; max-width: none; }
	.bukti-kode { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.bukti-grid thead th, .badge, .brand-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
