/* Admin / Volunteer / Judge panels – white & blue municipal ERP style */
:root {
  --navy: #0b2a5b; --blue: #1a56db; --blue-l: #e8f0fe; --ink: #1f2a37; --muted: #6b7280; --line: #e5e7eb; --bg: #f4f7fc;
  --sidebar-w: 258px; --maroon: #8a1538;
}
body { font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: .94rem; }
a { color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: #1447b8; border-color: #1447b8; }

/* login */
.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 20%, #dbe7ff, transparent 40%), radial-gradient(circle at 80% 80%, #fde8ef, transparent 40%), var(--bg); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 20px 60px rgba(11,42,91,.12); border-top: 5px solid var(--blue); }

/* shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: linear-gradient(180deg, #0b2a5b, #0d3477); color: #cdd9f3; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar .brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 2px; }
.sidebar .brand b { display: block; font-size: .98rem; line-height: 1.1; }
.sidebar .brand small { color: #9fb3dc; font-size: .72rem; }
.sidebar .nav-section { padding: 14px 18px 4px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #7f95c4; }
.sidebar a.nav-link { color: #cdd9f3; padding: 7px 18px; display: flex; align-items: center; gap: 10px; border-left: 3px solid transparent; font-size: .9rem; }
.sidebar a.nav-link i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .9; }
.sidebar a.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.nav-link.active { background: rgba(255,255,255,.1); color: #fff; border-left-color: #5b9bff; font-weight: 600; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 1030; }
.topbar .page-title { font-weight: 600; font-size: 1.05rem; margin: 0; }
.content { padding: 22px; flex: 1; }
.sb-toggle { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.sb-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .main { margin-left: 0; }
  .sb-toggle { display: inline-flex; }
  .content { padding: 14px; }
}

/* cards & stats */
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; border-radius: 14px 14px 0 0 !important; }
.stat { display: flex; gap: 14px; align-items: center; padding: 18px; }
.stat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; flex: 0 0 48px; }
.stat .num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .82rem; }
.ic-blue { background: var(--blue-l); color: var(--blue); } .ic-green { background: #e6f6ec; color: #15803d; }
.ic-amber { background: #fff4dc; color: #b45309; } .ic-red { background: #fde8ea; color: #b91c1c; }
.ic-purple { background: #f1e8ff; color: #7c3aed; } .ic-maroon { background: #fbe9ef; color: var(--maroon); }
.bar { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }

/* tables */
table.dataTable { font-size: .9rem; }
.table > :not(caption) > * > * { padding: .55rem .6rem; }
.table thead th { background: #f8fafc; color: #475569; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.dt-container .dt-search input { border-radius: 8px; }
.filters .form-select, .filters .form-control { font-size: .88rem; }
.kv td:first-child { color: var(--muted); width: 32%; }
.badge { font-weight: 600; }
.modal-content { border-radius: 16px; border: 0; }
.modal-header { border-bottom: 1px solid var(--line); }
.form-label { font-weight: 600; font-size: .86rem; margin-bottom: .25rem; }
.form-control, .form-select { border-radius: 9px; }
.select2-container--bootstrap-5 .select2-selection { border-radius: 9px; }
.perm-grid label { display: block; padding: 3px 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* volunteer / judge (mobile-first, large controls) */
.panel-top { background: linear-gradient(135deg, #0b2a5b, #1a56db); color: #fff; padding: 14px 16px; position: sticky; top: 0; z-index: 100; }
.panel-top a, .panel-top button.btn-link { color: #fff; }
.cand { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.cand .no { font-weight: 700; color: var(--blue); }
.att-btns .btn { min-height: 48px; font-weight: 600; flex: 1 1 0; }
.att-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.marks-input { max-width: 120px; font-size: 1.2rem; font-weight: 700; text-align: center; }
.locked-banner { background: #e6f6ec; border: 1px solid #a7e3b8; color: #166534; border-radius: 12px; padding: 12px 16px; }
.max-chip { background: #fff4dc; color: #92400e; border-radius: 999px; padding: 2px 10px; font-weight: 700; }
