:root {
  --navy: #12284a;
  --navy-2: #1d3d6e;
  --gold: #e0a526;
  --ink: #1d2433;
  --muted: #6b7385;
  --line: #e4e7ee;
  --bg: #f4f6fa;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.topbar { background: var(--navy); border-bottom: 3px solid var(--gold); }
.topbar .nav-link { color: rgba(255,255,255,.78); font-weight: 500; border-radius: 8px; padding: .45rem .8rem !important; }
.topbar .nav-link:hover, .topbar .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: 1.2rem; }
.brand-sub { font-size: .72rem; color: rgba(255,255,255,.65); font-weight: 400; }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  border-radius: 16px; padding: 1.75rem 2rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(224,165,38,.18); }
.hero h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 .25rem; }
.hero p { color: rgba(255,255,255,.75); margin: 0; }
.hero .btn-gold { position: relative; z-index: 1; }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 600; border: 0; }
.btn-gold:hover { background: #f0b93c; color: var(--navy); }
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }

.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(18,40,74,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; border-radius: 14px 14px 0 0 !important; }
.section-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }

.kat-tabs .nav-link { color: var(--muted); border-radius: 999px; padding: .4rem 1rem; font-weight: 500; }
.kat-tabs .nav-link.active { background: var(--navy); color: #fff; }

.now-card { border-left: 4px solid #dc3545; }
.now-card .fas { font-weight: 700; color: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; padding: .2rem .6rem;
  border-radius: 999px; background: #eef2f8; color: var(--navy-2); font-weight: 600; }

.table-jadwal { margin: 0; }
.table-jadwal th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
  background: #f8f9fc; font-weight: 600; white-space: nowrap; }
.table-jadwal td { vertical-align: middle; }
.table-jadwal .kegiatan { font-weight: 600; }
.date-group td { background: #eef2f8 !important; font-weight: 700; color: var(--navy); font-size: .9rem; }

/* Kalender bulan */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: .5rem; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); background: #f8f9fc;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-d { min-height: 110px; padding: .35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cal-d.out { background: #fafbfd; color: #b7bcc8; }
.cal-d.today { background: #fff8e6; }
.cal-n { font-size: .8rem; font-weight: 700; }
.cal-ev { display: block; font-size: .72rem; line-height: 1.25; margin-top: 3px; padding: 2px 5px; border-radius: 5px;
  background: #e6edf8; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.cal-ev.k-gedung { background: #e3f0ff; } .cal-ev.k-ruang { background: #e7f7ee; color: #145c36; }
.cal-ev.k-barang { background: #fff1db; color: #7a4b00; } .cal-ev.k-kendaraan { background: #f3e8ff; color: #5b2a86; }
@media (max-width: 767px) { .cal-d { min-height: 70px; } .cal-ev { font-size: .62rem; } }

.stat { padding: 1.1rem 1.25rem; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.stat i { font-size: 1.6rem; color: var(--gold); }

.form-label { font-weight: 600; font-size: .9rem; }
.ticket { border: 2px dashed var(--gold); border-radius: 14px; background: #fffaf0; padding: 1.25rem; text-align: center; }
.ticket .kode { font-size: 1.8rem; font-weight: 700; letter-spacing: .08em; color: var(--navy); }

.humas-card { border-left: 4px solid var(--gold); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid;
  place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 1rem 0; color: var(--muted); font-size: .85rem; margin-top: 2rem; }

.login-wrap { max-width: 400px; margin: 3rem auto; }

@media print {
  .topbar, .site-footer, .no-print, .btn, form.filter { display: none !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; }
  .hero { background: none; color: #000; padding: 0; }
  .hero p { color: #333; }
}
