/* ==========================================================================
   HL University Admission — design system (all three panels)
   Self-hosted fonts, tokens, refined Bootstrap components and shared
   patterns. Panel themes (applicant/admin/helpdesk app.css) set --brand*.
   No inline styles anywhere: the CSP allows style-src 'self' only.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2"); }
/* Bengali glyphs come from Hind Siliguri automatically (unicode-range). */
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hind-siliguri-bengali-400.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/hind-siliguri-bengali-500.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/hind-siliguri-bengali-600.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/hind-siliguri-bengali-700.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-bn: "Hind Siliguri", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --brand: #0b6b52;            /* overridden per panel */
  --brand-600: #0a5d48;
  --brand-700: #084c3b;
  --brand-50: #ecfdf6;
  --brand-100: #d1fae8;
  --brand-rgb: 11, 107, 82;
  --accent: #c9971c;
  --accent-50: #fdf7e7;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf0;
  --line-2: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --canvas: #f4f6f9;

  --success: #15803d; --success-bg: #e9f8ef; --success-line: #bfe8cd;
  --info: #1d4ed8;    --info-bg: #eaf1ff;    --info-line: #c7d8fb;
  --warning: #a16207; --warning-bg: #fef6e0; --warning-line: #f6e1a6;
  --danger: #b42318;  --danger-bg: #fdecec;  --danger-line: #f6c8c4;
  --neutral: #475569; --neutral-bg: #f1f4f8; --neutral-line: #dfe5ec;

  --r-xs: 6px; --r-sm: 9px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 16px -4px rgba(15, 23, 42, .08);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px -12px rgba(15, 23, 42, .18);
  --ring: 0 0 0 .22rem rgba(var(--brand-rgb), .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* legacy aliases used by older markup */
  --cu-radius: var(--r-lg);
  --cu-shadow: var(--shadow-sm);
  --cu-shadow-lg: var(--shadow-lg);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: .9375rem;
  line-height: 1.55;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.display-6, .display-5 { font-weight: 800; letter-spacing: -.035em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }
.bn, [lang="bn"] { font-family: var(--font-bn); letter-spacing: 0; }
.mono, code, kbd { font-family: var(--font-mono); font-size: .92em; }
code { color: var(--brand-700); background: var(--brand-50); padding: .08em .35em; border-radius: var(--r-xs); }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: .8125rem; }
.fw-semibold { font-weight: 600 !important; }
hr { border-color: var(--line); opacity: 1; }
::selection { background: rgba(var(--brand-rgb), .16); }
:focus-visible { outline: 2px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.text-pre { white-space: pre-wrap; }
.min-w-0 { min-width: 0; }
.w-1 { width: 1%; white-space: nowrap; }
.cursor-grab { cursor: grab; }

/* Small kicker above a heading */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand);
}
.lead-muted { color: var(--muted); font-size: 1rem; }

/* ---------- Cards / surfaces ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  overflow: hidden;
}
.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  font-weight: 700; font-size: .9375rem; letter-spacing: -.01em;
  padding: .85rem 1.1rem;
}
.card-header .bi { color: var(--brand); margin-right: .25rem; }
.card-body { padding: 1.1rem; }
.card-footer { background: var(--surface-2); border-top: 1px solid var(--line-2); padding: .75rem 1.1rem; }
.card.border-danger { border-color: var(--danger-line) !important; }
.card.border-warning { border-color: var(--warning-line) !important; }
.card.border-success { border-color: var(--success-line) !important; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1rem;
  --bs-btn-font-size: .9rem;
  letter-spacing: -.005em;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 8px; }
.btn-lg { --bs-btn-padding-y: .72rem; --bs-btn-padding-x: 1.3rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: var(--r); }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: var(--brand-rgb);
  background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  box-shadow: 0 1px 2px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: rgba(var(--brand-rgb), .45);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-focus-shadow-rgb: var(--brand-rgb);
}
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #cfd6df; --bs-btn-active-bg: var(--neutral-bg); --bs-btn-active-color: var(--ink); background: var(--surface); }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: #cfd6df; --bs-btn-color: var(--ink-2); }
.btn-success { --bs-btn-bg: #15803d; --bs-btn-border-color: #15803d; --bs-btn-hover-bg: #166534; --bs-btn-hover-border-color: #166534; }
.btn-danger { --bs-btn-bg: #c0262d; --bs-btn-border-color: #c0262d; --bs-btn-hover-bg: #a11f25; --bs-btn-hover-border-color: #a11f25; }
.btn-warning { --bs-btn-bg: #f2b544; --bs-btn-border-color: #f2b544; --bs-btn-hover-bg: #e9a72a; --bs-btn-hover-border-color: #e9a72a; --bs-btn-color: #3b2a05; --bs-btn-hover-color: #2b1f04; }
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: var(--danger-line); --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger); background: var(--surface); }
.btn .bi { margin-right: .15rem; }
.big-btn { padding: .8rem 1.35rem; font-size: 1rem; border-radius: var(--r); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; padding: 0; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .8125rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-control, .form-select {
  border-color: #d9dfe7; border-radius: var(--r-sm);
  padding: .55rem .8rem; font-size: .9rem; color: var(--ink); background-color: var(--surface);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-control-sm, .form-select-sm { padding: .34rem .6rem; font-size: .8125rem; border-radius: 8px; }
.form-control-lg { padding: .75rem 1rem; font-size: 1.02rem; border-radius: var(--r); }
.form-control::placeholder { color: #9aa6b5; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--brand-rgb), .65); box-shadow: var(--ring); }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background: var(--surface-2); color: var(--muted); }
.form-check-input { border-color: #c4ccd7; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: var(--ring); border-color: rgba(var(--brand-rgb), .6); }
.form-text { color: var(--muted); font-size: .78rem; }
.input-group-text { background: var(--surface-2); border-color: #d9dfe7; color: var(--muted); }
.btn-check + .btn { border-radius: var(--r); }
.btn-check:checked + .btn-outline-primary { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---------- Badges (soft) ---------- */
.badge { font-weight: 600; font-size: .72rem; letter-spacing: .01em; padding: .34em .62em; border-radius: var(--r-pill); }
.badge.text-bg-success { background: var(--success-bg) !important; color: var(--success) !important; box-shadow: inset 0 0 0 1px var(--success-line); }
.badge.text-bg-info { background: var(--info-bg) !important; color: var(--info) !important; box-shadow: inset 0 0 0 1px var(--info-line); }
.badge.text-bg-warning { background: var(--warning-bg) !important; color: var(--warning) !important; box-shadow: inset 0 0 0 1px var(--warning-line); }
.badge.text-bg-danger { background: var(--danger-bg) !important; color: var(--danger) !important; box-shadow: inset 0 0 0 1px var(--danger-line); }
.badge.text-bg-primary { background: rgba(var(--brand-rgb), .09) !important; color: var(--brand-700) !important; box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .22); }
.badge.text-bg-secondary, .badge.text-bg-light { background: var(--neutral-bg) !important; color: var(--neutral) !important; box-shadow: inset 0 0 0 1px var(--neutral-line); }
.badge.text-bg-dark { background: #1e293b !important; color: #e2e8f0 !important; }
.badge.fs-6 { font-size: .85rem !important; padding: .45em .85em; }

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--r); border: 1px solid; padding: .8rem 1rem; font-size: .9rem;
  display: block; position: relative; box-shadow: var(--shadow-xs);
}
.alert-success { background: var(--success-bg); border-color: var(--success-line); color: #14532d; }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: #1e3a8a; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-line); color: #713f12; }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-line); color: #7f1d1d; }
.alert-primary { background: rgba(var(--brand-rgb), .07); border-color: rgba(var(--brand-rgb), .22); color: var(--brand-700); }
.alert-secondary, .alert-light { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.alert .alert-link { font-weight: 700; color: inherit; }
.alert-dismissible { padding-right: 2.8rem; }
.alert-dismissible .btn-close { padding: .95rem 1rem; }

/* ---------- Tables ---------- */
.table { --bs-table-color: var(--ink); --bs-table-hover-bg: #f7f9fc; border-color: var(--line-2); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .62rem .8rem; vertical-align: middle; border-bottom-color: var(--line-2); }
.table-sm > :not(caption) > * > * { padding: .48rem .65rem; }
.table thead th {
  background: var(--surface-2); color: var(--muted);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid var(--line) !important; white-space: nowrap;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table-sm td, .table-sm th { font-size: .84rem; }
.table-warning { --bs-table-bg: #fffaeb; }
.table-danger { --bs-table-bg: #fff3f2; }
.data-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table .table-responsive { margin: 0; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* ---------- Lists, dropdowns, pagination, nav ---------- */
.list-group { --bs-list-group-border-color: var(--line-2); }
.list-group-item { padding: .75rem 1.1rem; }
.list-group-item-action { transition: background-color .12s var(--ease); }
.list-group-item-action:hover { background: #f7f9fc; }
.dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: .4rem; font-size: .875rem; min-width: 13rem;
}
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; font-weight: 500; }
.dropdown-item:active { background: var(--brand); }
.pagination { --bs-pagination-border-color: var(--line); --bs-pagination-color: var(--ink-2); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-hover-bg: var(--surface-2); gap: .25rem; }
.pagination .page-link { border-radius: 8px !important; min-width: 2rem; text-align: center; }
.btn-close:focus { box-shadow: var(--ring); }
details > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.progress { background: var(--line-2); border-radius: var(--r-pill); }
.progress-bar { background: var(--brand); }

/* ---------- Shared patterns ---------- */
.page-head {
  display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.page-head h2, .page-head h1 { font-size: 1.45rem; margin: 0; font-weight: 800; letter-spacing: -.03em; }
.page-head .page-sub { color: var(--muted); font-size: .875rem; margin-top: .2rem; }

.stat {
  position: relative; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
a > .stat:hover, a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .25); }
.stat .stat-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.stat .stat-label .bi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 10px; font-size: .95rem;
  background: rgba(var(--brand-rgb), .09); color: var(--brand);
}
.stat .stat-value { font-size: 1.65rem; font-weight: 800; line-height: 1.15; margin-top: .55rem; letter-spacing: -.03em; color: var(--ink); }
.stat .stat-value.fs-5 { font-size: 1.2rem !important; }

.filter-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .8rem; box-shadow: var(--shadow-xs); margin-bottom: 1rem;
}
.empty-state { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2rem; color: #b6c0cc; display: block; margin-bottom: .4rem; }

.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.dl-grid dt { font-weight: 500; color: var(--muted); }
.dl-grid dd { margin: 0; font-weight: 500; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .dl-grid { grid-template-columns: 1fr; gap: .05rem; }
  .dl-grid dd { margin-bottom: .55rem; }
}

/* Images of the applicant */
.img-photo { width: 150px; height: 150px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.img-sign { width: 225px; height: 60px; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }
.img-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.preview-box { min-height: 80px; }
.captcha-img { height: 48px; width: 150px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }

/* Sortable lists */
.sortable-ghost { opacity: .45; background: var(--brand-50) !important; }
.choice-item { user-select: none; transition: background-color .12s var(--ease); }
.choice-item .choice-no { min-width: 1.9rem; }

/* Steps (vertical) */
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: .85rem; align-items: center; padding: .7rem 0; position: relative; }
.step-list li + li { border-top: 1px dashed var(--line); }
.step-dot {
  flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
}
.step-list li.done .step-dot { background: var(--brand); color: #fff; box-shadow: none; }
.step-list li.current .step-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(201, 151, 28, .18); }

/* Auth (staff) */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.auth-card { width: 100%; max-width: 430px; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6); }
.auth-card .card-body { padding: 2rem !important; }
.auth-brand { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 16px; font-size: 1.4rem; color: #fff; background: var(--brand); box-shadow: 0 10px 22px -8px rgba(var(--brand-rgb), .6); margin-bottom: .8rem; }
.auth-foot { color: rgba(255,255,255,.75); font-size: .8rem; text-align: center; margin-top: 1rem; }

/* Monogram mark */
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -.04em; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: 0 6px 14px -6px rgba(var(--brand-rgb), .7), inset 0 1px 0 rgba(255,255,255,.18);
}

/* Utilities */
.shadow-soft { box-shadow: var(--shadow) !important; }
.rounded-xl { border-radius: var(--r-xl) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }
.text-brand { color: var(--brand) !important; }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: rgba(var(--brand-rgb), .09); color: var(--brand); font-size: 1.1rem; flex: 0 0 2.4rem; }
.icon-chip.accent { background: var(--accent-50); color: var(--accent); }
.divider-label { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Confirmation dialog (common/app.js, data-confirm) */
.cf-dialog { border: 0; padding: 0; border-radius: 16px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(15, 23, 42, .28); }
.cf-dialog::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.cf-box { padding: 1.4rem 1.4rem 1.1rem; text-align: center; }
.cf-icon { width: 3rem; height: 3rem; margin: 0 auto .7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: #eef2ff; color: #3b5bdb; }
.cf-dialog.is-danger .cf-icon { background: #fee2e2; color: #dc2626; }
.cf-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.cf-msg { color: #475569; font-size: .92rem; margin: 0 0 1.1rem; overflow-wrap: anywhere; }
.cf-actions { display: flex; gap: .5rem; justify-content: center; }
.cf-actions .btn { min-width: 7.5rem; }

/* University logo in place of the initials mark (University info) */
.brand-mark.has-logo, .auth-brand.has-logo, .admin-sidebar .brand .mark.has-logo { background: #fff; padding: 3px; overflow: hidden; }
.brand-mark.has-logo img, .auth-brand.has-logo img, .admin-sidebar .brand .mark.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-brand.has-logo { width: 4rem; height: 4rem; box-shadow: 0 10px 22px -10px rgba(15, 23, 42, .35); border: 1px solid rgba(15, 23, 42, .08); }
.admin-sidebar .brand .min-w-0 small { max-width: 11rem; }
.foot-site { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }

/* Keep absolutely positioned bits (e.g. a .visually-hidden header label) inside a scrolling table, or they widen the whole page. */
.table-responsive { position: relative; }

/* ---------- SweetAlert2 (flash messages + confirmations, see common/app.js) ---------- */
.swal2-container { z-index: 2000; }
.swal2-popup.swal-app { font-family: var(--font-sans); border-radius: var(--r-xl); color: var(--ink); padding: 1.6rem 1.4rem 1.4rem; box-shadow: 0 30px 70px -28px rgba(11, 22, 38, .55); border: 1px solid var(--line); }
.swal2-popup.swal-app .swal2-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.swal2-popup.swal-app .swal2-html-container { font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
.swal-app-actions, .swal2-popup.swal-app .swal2-actions { gap: .6rem; margin-top: 1.2rem; }
.swal2-popup.swal-app .swal2-actions .btn { min-width: 7.5rem; padding: .6rem 1.2rem; font-weight: 700; border-radius: var(--r); }
.swal-app-list { text-align: left; margin: .25rem 0 0; padding-left: 1.2rem; }
.swal-app-list li + li { margin-top: .25rem; }
.swal2-popup.swal-app.swal-app-toast { border-radius: var(--r-lg); padding: .8rem 1rem; box-shadow: 0 18px 40px -18px rgba(11, 22, 38, .45); border-left: 4px solid var(--accent, #b8913a); }
.swal2-popup.swal-app.swal-app-toast .swal2-html-container { margin: .15rem .4rem 0 .6rem; font-size: .9rem; color: var(--ink); text-align: left; }
.swal2-popup.swal-app .swal2-timer-progress-bar { background: var(--accent, #b8913a); }
.swal2-popup.swal-app .swal2-close:focus { box-shadow: var(--ring); }
