:root {
  --bg: #f5f6f9; --card: #fff; --ink: #2a2d34; --muted: #6b7280;
  --line: #e6e2e2;
  --brand: #9E2A2E;        /* GCI maroon */
  --brand-2: #29ABE2;      /* GCI sky blue */
  --brand-dark: #7e2024;   /* darker maroon for hovers */
  --accent: #29ABE2;
  --danger: #b23b3b; --ok: #2e7d32;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

header.topbar { background: #fff; color: var(--ink); padding: 10px 24px;
  border-bottom: 3px solid var(--brand);
  display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
header.topbar .brand { display: flex; align-items: center; gap: 12px; }
header.topbar .brand img { height: 40px; width: auto; display: block; }
header.topbar .brand .bname { font-weight: 700; color: var(--brand); line-height: 1.05;
  font-family: Georgia, 'Times New Roman', serif; }
header.topbar .brand .bname small { display: block; font-weight: 400; font-size: 10px;
  letter-spacing: 3px; color: var(--brand-2); font-family: Arial, sans-serif; }
header.topbar nav a { color: #5b6270; margin-right: 18px; font-size: 14px; font-weight: 600; }
header.topbar nav a:hover { color: var(--brand); text-decoration: none; }
header.topbar .who { font-size: 13px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
header.topbar form { margin: 0; }
header.topbar button.link { background: none; border: 1px solid var(--line); color: var(--brand);
  padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
header.topbar button.link:hover { border-color: var(--brand); }

.wrap { max-width: 1080px; margin: 24px auto; padding: 0 24px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 28px 0 12px; }
.sub { color: var(--muted); margin: 0 0 20px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(4, 1fr); }
.grid.k3 { grid-template-columns: repeat(3, 1fr); }
.grid.k2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px){ .grid.k4,.grid.k3,.grid.k2{ grid-template-columns: 1fr 1fr; } }

.kpi { text-align: left; }
.kpi .n { font-size: 26px; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 13px; }

table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #f0f3f8; color: #44506a; font-weight: 600; }
tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  background: #eef1f6; color: #44506a; white-space: nowrap; }
.badge.green { background: #e4f3e7; color: var(--ok); }
.badge.amber { background: #fbf0db; color: var(--accent); }
.badge.blue { background: #e1f3fb; color: #1c87b6; }
.badge.red { background: #f7e3e3; color: var(--danger); }

.pill { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; }
.pill.admin { background:var(--brand); color:#fff; } .pill.agent{ background:var(--brand-2); color:#fff; }
.pill.subadmin{ background:#6b3f6b; color:#fff; }
.pill.staff{ background:#3f7d6b; color:#fff; }
.pill.college{ background:#7e2024; color:#fff; } .pill.student{ background:#55617a; color:#fff; }

label { display: block; font-size: 13px; color: #44506a; margin: 10px 0 4px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
button.btn, .btn { display: inline-block; background: var(--brand); color: #fff; border: none;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; margin-top: 12px; }
button.btn.alt { background: var(--brand-2); }
button.btn.small, .btn.small { padding: 6px 12px; font-size: 13px; margin-top: 0; }

.notice { background: #fff8e8; border: 1px solid #f0e0bd; color: #7a5a1e;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.err { background: #fdeaea; border: 1px solid #f1c7c7; color: var(--danger);
  padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }

.bellwrap { position: relative; display: flex; }
.bell { position: relative; background: none; border: 1px solid var(--line); color: #5b6270;
  width: 34px; height: 30px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bell:hover { border-color: var(--brand); color: var(--brand); }
.ncount { position: absolute; top: -6px; right: -6px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 9px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; }
.notifpanel { position: absolute; right: 0; top: 38px; width: 320px; max-height: 420px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 50; }
.nphead { font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.npempty { padding: 16px 14px; color: var(--muted); font-size: 14px; }
.npitem { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink);
  font-size: 13px; text-decoration: none; }
.npitem:hover { background: #faf7f7; text-decoration: none; }
.npitem.unread { background: #fdf3f0; }
.npitem .nptime { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.npfoot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; }
.nplink { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 13px; padding: 0; }

.login-wrap { max-width: 380px; margin: 8vh auto; }
.login-wrap .card { padding: 28px; }
.muted { color: var(--muted); font-size: 13px; }
.flex { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.steps { display:flex; flex-wrap:wrap; gap:6px; }
.steps .step { font-size:12px; padding:4px 9px; border-radius:20px; background:#eef1f6; color:#8a93a6; }
.steps .step.done { background:#e4f3e7; color:var(--ok); }
.steps .step.now { background:var(--brand); color:#fff; }
