@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* Tech Weld — one simple look for every page.
   Dark steel top bar, white cards, one accent colour (logo blue) for the main action. */
:root {
  --ink: #1d3a54;        /* top bar and headings: the navy of the logo */
  --muted: #667085;      /* secondary text */
  --line: #e3e6ea;       /* borders */
  --page: #f5f6f8;       /* page background */
  --weld: #1769aa;       /* main action colour */
  --weld-dark: #124f80;
  --weld-soft: #eef5fb;
  --spark: #ffb703;
  /* old names still used in a few places */
  --steel-900: #16304a; --steel-800: #1d3a54; --steel-700: #27496a; --steel-500: #667085;
  --steel-200: #e3e6ea; --steel-100: #f5f6f8;
  --bs-link-color-rgb: 23, 105, 170;
  --bs-link-hover-color-rgb: 18, 79, 128;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
}
a { color: var(--weld); }
a:hover { color: var(--weld-dark); }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); border-bottom: 3px solid var(--weld); padding: 6px 0; }
.topbar .navbar-brand { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.topbar .navbar-brand img { height: 38px; width: 38px; border-radius: 6px; background: #fff; object-fit: contain; }
.topbar .nav-link { color: #d5d9df; font-weight: 500; padding: 8px 12px !important; border-radius: 6px; white-space: nowrap; }
.topbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topbar .nav-link.active { color: #fff; background: var(--weld); }
.topbar .nav-count { background: var(--spark); color: var(--ink); border-radius: 10px; font-size: .75rem; font-weight: 700; padding: 1px 7px; margin-left: 4px; }
.topbar .nav-user { color: #aab1bb; font-size: .9rem; }

/* ---------- page pieces ---------- */
.page-title-weld { color: var(--ink); font-weight: 700; font-size: 1.6rem; }
.page-sub { color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.panel h5 { font-weight: 700; color: var(--ink); }

.stat-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; height: 100%; color: var(--ink); text-decoration: none; }
a.stat-tile:hover { border-color: var(--weld); color: var(--ink); }
.stat-tile .num { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.stat-tile .lbl { color: var(--muted); font-size: .9rem; }
.stat-tile.warn .num { color: #b42318; }
.stat-tile.good .num { color: #157347; }

/* big, plain "what do you want to do" buttons */
.task-btn { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; height: 100%; color: var(--ink); text-decoration: none; font-weight: 600; }
.task-btn i { width: 40px; height: 40px; border-radius: 8px; background: var(--weld-soft); color: var(--weld); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none; }
.task-btn small { display: block; font-weight: 400; color: var(--muted); }
.task-btn:hover { border-color: var(--weld); color: var(--ink); }

/* ---------- tables ---------- */
.table thead th { background: #eef0f3; color: var(--ink); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { vertical-align: middle; }

/* ---------- buttons ---------- */
.btn-weld, .btn-primary { background: var(--weld); border-color: var(--weld); color: #fff; font-weight: 600; }
.btn-weld:hover, .btn-weld:focus, .btn-primary:hover, .btn-primary:focus { background: var(--weld-dark); border-color: var(--weld-dark); color: #fff; }
.btn-outline-primary { color: var(--weld); border-color: var(--weld); }
.btn-outline-primary:hover { background: var(--weld); border-color: var(--weld); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--weld); box-shadow: 0 0 0 3px rgba(23, 105, 170, .15); }
.form-label { font-weight: 600; }

.text-weld { color: var(--weld) !important; }
.bg-steel { background: var(--ink) !important; color: #fff; }
.steel-plate { background: var(--ink); color: #fff; }
.weld-seam { height: 3px; border: 0; border-radius: 3px; background: var(--weld); opacity: 1; }
.hazard-strip { height: 4px; background: var(--weld); }

/* ---------- courses of a student ---------- */
.course-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-left: 4px solid var(--muted); background: #fff; border-radius: 6px; font-size: .9rem; text-align: left; }
.course-chip:last-child { margin-bottom: 0; }
.course-chip.done { border-left-color: #157347; }
.course-chip.ongoing { border-left-color: var(--weld); }
.course-chip .course-title { font-weight: 600; flex: 1 1 160px; }
.course-chip .fee-line { flex-basis: 100%; color: var(--muted); font-size: .85rem; }

.fee-bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.fee-bar > span { display: block; height: 100%; background: var(--weld); }

/* ---------- public pages ---------- */
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.site-nav .brand small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.site-nav a.link { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 10px; }
.site-nav a.link:hover { color: var(--weld); }
.site-hero { background: var(--ink); color: #fff; padding: 64px 0; }
.site-hero h1 { font-weight: 700; font-size: 2.4rem; text-wrap: balance; }
.site-hero p { color: #cfd4da; font-size: 1.1rem; max-width: 640px; }
.site-section { padding: 48px 0; }
.site-section h2 { font-weight: 700; margin-bottom: 6px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; height: 100%; display: flex; flex-direction: column; }
.course-card h3 { font-size: 1.15rem; font-weight: 700; }
.course-card .fee { font-size: 1.3rem; font-weight: 700; color: var(--weld); }
.site-footer { background: var(--ink); color: #aab1bb; padding: 20px 0; font-size: .9rem; }
.site-footer a { color: var(--spark); text-decoration: none; }

/* ---------- typography ----------
   Inter for everything on screen (falls back to the system font if the office has no internet).
   Slightly smaller base size, neutral text colour, navy only for headings, numbers aligned in columns. */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: #1f2937;
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
}
html { font-size: 15px; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  font-feature-settings: "cv11", "ss01";   /* Inter: single-storey a off, open digits */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.page-title-weld { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.page-sub { font-size: .93rem; }
.panel h5 { font-size: 1.05rem; font-weight: 600; }

/* numbers line up in tables and tiles */
.table, .stat-tile .num, .fee, .fee-table, .kv { font-variant-numeric: tabular-nums; }
.stat-tile .num { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-tile .lbl { font-size: .87rem; }

.table { font-size: .93rem; color: var(--text); }
.table thead th { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #475467; padding-top: .7rem; padding-bottom: .7rem; }
.table td small, .table td .small { font-size: .85rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; color: #344054; background: #f2f4f7; padding: 1px 5px; border-radius: 4px; }

.topbar .navbar-brand { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.topbar .nav-link { font-size: .93rem; font-weight: 500; }
.btn { font-family: var(--font); font-weight: 500; }
.btn-weld, .btn-primary { font-weight: 600; }
.badge { font-weight: 600; letter-spacing: .01em; font-size: .75em; padding: .4em .65em; }
.form-label { font-size: .9rem; font-weight: 500; color: #344054; margin-bottom: .3rem; }
.form-control, .form-select { font-size: .97rem; }
.form-text, .text-muted { color: var(--muted) !important; }
.task-btn { font-weight: 600; }
.task-btn small { font-size: .85rem; }
.course-chip { font-size: .9rem; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { font-size: .88rem; color: var(--muted); }

.site-hero h1 { font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.site-section h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.steel-plate h1, .steel-plate h2, .steel-plate h3, .bg-steel .modal-title, .bg-steel h5 { color: #fff; }

@media print { html { font-size: 13px; } }
/* ---------- side menu (staff pages) ---------- */
.app-sidebar { background: var(--ink); color: #c9d3de; display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .app-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 232px; z-index: 1030; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .app-sidebar.offcanvas-lg { width: 260px; background: var(--ink); overflow-y: auto; }
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.side-brand:hover { color: #fff; }
.side-brand img { width: 38px; height: 38px; border-radius: 6px; background: #fff; object-fit: contain; }
.side-brand small { display: block; font-weight: 400; font-size: .78rem; color: #9fb0c2; }
.side-menu { padding: 10px 10px; flex: 1; }
.side-group { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fa2b6; padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 2px; border-radius: 6px; color: #d6dee7; text-decoration: none; font-size: .93rem; font-weight: 500; }
.side-link i { width: 18px; text-align: center; font-size: .9rem; color: #9fb0c2; }
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link:hover i { color: #fff; }
.side-link.active { background: var(--weld); color: #fff; }
.side-link.active i { color: #fff; }
.side-count { margin-left: auto; background: var(--spark); color: #1f2937; border-radius: 10px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
.side-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 10px 8px; color: #fff; font-weight: 600; font-size: .93rem; }
.side-user i { color: #9fb0c2; font-size: 1.1rem; }

.app-topstrip { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: 54px; background: var(--ink); display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.app-topstrip .brand { color: #fff; font-weight: 600; text-decoration: none; }
/* Bootstrap makes .offcanvas-lg transparent on wide screens; the side menu keeps its navy background */
.app-sidebar.offcanvas-lg { background-color: var(--ink) !important; }

/* ---------- installment reminder strip (all users, every page) ---------- */
.due-alert { background: #fff8e1; border: 1px solid #f5d27a; border-left: 4px solid var(--spark); color: #5f4400; border-radius: 8px; padding: 10px 14px; margin: 0 24px 16px; font-size: .93rem; }
.due-alert .due-item { display: inline-block; background: #fff; border: 1px solid #f5d27a; border-radius: 14px; padding: 1px 10px; margin: 2px 4px 2px 0; color: #5f4400; text-decoration: none; font-weight: 500; }
.due-alert .due-item:hover { border-color: var(--weld); color: var(--weld); }
@media (max-width: 767.98px) { .due-alert { margin: 0 12px 12px; } }
