/* School Management System — UI */
:root {
  --bg: #f3f5f9; --surface: #fff; --line: #e4e8ef; --line-soft: #eef1f6;
  --text: #1c2536; --muted: #667085; --faint: #98a2b3;
  --brand: #0f766e; --brand-dark: #0b5d57; --brand-soft: #e6f4f2;
  --side: #0f1b2d; --side-2: #16263d; --side-text: #a9b6c9;
  --green: #12805c; --green-soft: #e3f6ee; --red: #c8372d; --red-soft: #fdecea;
  --amber: #b76e00; --amber-soft: #fff3dc; --blue: #1d5fd1; --blue-soft: #e8f0fe;
  --pink: #e2136e;
  --surface-2: #f9fafb; --hover: #f6f7fa; --row-hover: #fafbfd; --input-bg: #fff; --input-line: #d0d5dd; --chip: #eef1f6; --chip-text: #475467; --track: #edf0f5;
  --ring: rgba(15,118,110,.14); --on-brand: #fff;
  --hero: linear-gradient(120deg, #0f1b2d 0%, #0d3b44 55%, #0f766e 100%); --hero-flat: linear-gradient(120deg, #0f1b2d, #0f766e);
  --hero-overlay: linear-gradient(110deg, rgba(15,27,45,.92) 20%, rgba(15,118,110,.72)); --logo-grad: linear-gradient(135deg, #14b8a6, #0f766e);
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --font: "Inter", "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 var(--font); color: var(--text); background: var(--bg); }
html[lang="bn"] body { font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.3; }
img { max-width: 100%; }
.icon { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .mono { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #2a3b55 transparent; }
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; background: var(--logo-grad); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand-name { font-weight: 650; font-size: 14.5px; line-height: 1.25; color: #fff; }
.brand-sub { font-size: 11.5px; color: var(--side-text); }
.nav { padding: 10px 10px 24px; }
.nav-label { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #6b7c95; padding: 16px 10px 6px; font-weight: 600; }
html[lang="bn"] .nav-label { font-size: 12px; letter-spacing: 0; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-weight: 500; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: var(--brand); color: var(--on-brand); }
.nav a .icon { opacity: .9; }
.nav .count { margin-left: auto; background: #f59e0b; color: #1c1300; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 20px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.topbar-title { font-size: 16.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-spacer { flex: 1; }
.menu-btn { display: none; border: 0; background: none; padding: 6px; color: var(--text); cursor: pointer; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lang-switch a.on { background: var(--brand); color: var(--on-brand); }
.user-chip { display: flex; align-items: center; gap: 9px; color: var(--text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; border-radius: 14px; }
.user-meta { line-height: 1.2; } .user-meta b { font-weight: 600; font-size: 13.5px; display: block; } .user-meta span { font-size: 11.5px; color: var(--muted); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--red); border-color: #f1c3bf; }
.content { padding: 24px; flex: 1; }
.footer { padding: 14px 24px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 20px; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.card-head h2, .card-head h3 { font-size: 14.5px; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid > .card { margin-bottom: 0; }
.grid + .grid, .grid + .card, .card + .grid { margin-top: 18px; }

.stat { display: flex; gap: 14px; align-items: center; padding: 18px; }
.stat-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.tone-teal { background: var(--brand-soft); color: var(--brand); } .tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-amber { background: var(--amber-soft); color: var(--amber); } .tone-red { background: var(--red-soft); color: var(--red); }
.tone-green { background: var(--green-soft); color: var(--green); }
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-value { font-size: 23px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 12px; color: var(--faint); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang="bn"] .table th { font-size: 13px; letter-spacing: 0; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--row-hover); }
.table tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--line); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact th, .table.compact td { padding: 6px 8px; }
.table.bordered th, .table.bordered td { border: 1px solid var(--line); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user b { font-weight: 600; display: block; color: var(--text); } .cell-user small { color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .icon { color: var(--faint); margin-bottom: 8px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: var(--chip); color: var(--chip-text); white-space: nowrap; }
html[lang="bn"] .badge { font-size: 12.5px; }
.badge.green { background: var(--green-soft); color: var(--green); } .badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); } .badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.pink { background: #fde7f1; color: var(--pink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13.5px/1.3 var(--font); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
html[lang="bn"] .btn { font-size: 14.5px; }
.btn:hover { background: var(--hover); color: var(--text); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { background: var(--surface); border-color: #f1c3bf; color: var(--red); } .btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-bkash { background: var(--pink); border-color: var(--pink); color: #fff; } .btn-bkash:hover { background: #c40f5f; color: #fff; }
.btn-sm { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; } .btn-lg { padding: 11px 20px; font-size: 15px; } .btn-block { width: 100%; }
.btn:focus-visible, .input:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; }
.field label, .label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 5px; color: #344054; }
html[lang="bn"] .field label { font-size: 14px; }
.req { color: var(--red); }
.input, select.input, textarea.input { width: 100%; padding: 8px 11px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input-bg); font: 14px/1.4 var(--font); color: var(--text); min-height: 38px; }
html[lang="bn"] .input { font-size: 15px; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--ring); }
.input.sm { min-height: 32px; padding: 4px 8px; }
.input[readonly] { background: var(--hover); }
.has-error .input { border-color: var(--red); }
.error-text { color: var(--red); font-size: 12.5px; margin-top: 4px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.form-section { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-dark); font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin: 6px 0 2px; }
html[lang="bn"] .form-section { font-size: 14px; letter-spacing: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.filters .field { min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.filters .field.grow { max-width: none; flex: 2 1 220px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert.success { background: var(--green-soft); border-color: #b7e4d1; color: #0b5c41; }
.alert.error { background: var(--red-soft); border-color: #f5c6c1; color: #94241c; }
.alert.warning { background: var(--amber-soft); border-color: #f5dba4; color: #7a4a00; }
.alert.info { background: var(--blue-soft); border-color: #c5d8fb; color: #174ea6; }

/* ---------- Bits ---------- */
.pagination { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); font-size: 13px; }
.pagination .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; background: none; }
.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 9px 14px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 10px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-pair { flex: 1; display: flex; align-items: flex-end; gap: 4px; width: 100%; justify-content: center; }
.bar { width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar.in { background: var(--brand); } .bar.out { background: #f0a39c; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.progress { height: 7px; background: var(--track); border-radius: 10px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 10px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); } .list li:last-child { border-bottom: 0; }
.list b { font-weight: 600; }
.att-opts { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.att-opts label { cursor: pointer; }
.att-opts input { position: absolute; opacity: 0; }
.att-opts span { display: block; padding: 5px 13px; font-weight: 600; font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--line); }
.att-opts label:last-child span { border-right: 0; }
.att-opts input:checked + span.p { background: var(--green); color: #fff; } .att-opts input:checked + span.a { background: var(--red); color: #fff; } .att-opts input:checked + span.l { background: var(--amber); color: #fff; }
.att-opts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.att-grid td, .att-grid th { text-align: center; padding: 4px 3px !important; font-size: 11.5px; min-width: 22px; }
.att-grid td.name, .att-grid th.name { text-align: left; padding-left: 10px !important; white-space: nowrap; }
.s-P { color: var(--green); font-weight: 700; } .s-A { color: var(--red); font-weight: 700; } .s-L { color: var(--amber); font-weight: 700; }
.routine { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--line-soft); }
.routine:first-child { border-top: 0; }
.routine-day { padding: 14px 18px; font-weight: 650; background: var(--surface-2); border-right: 1px solid var(--line-soft); }
.routine-slots { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
.slot { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 8px; padding: 7px 10px; min-width: 150px; background: #fff; position: relative; }
.slot b { display: block; font-weight: 600; } .slot small { color: var(--muted); display: block; }
.slot form { position: absolute; top: 4px; right: 4px; margin: 0; }
.slot button { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 2px; } .slot button:hover { color: var(--red); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 14px 0; border-bottom: 1px solid var(--line-soft); }
.tabs a { padding: 8px 13px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand-dark); border-color: var(--brand); }

/* ---------- Auth & public ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; }
.auth-art { background: var(--hero); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; bottom: -200px; background: rgba(255,255,255,.06); }
.auth-art::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: 80px; top: -120px; background: rgba(255,255,255,.04); }
.auth-art h1 { font-size: 32px; line-height: 1.25; max-width: 460px; }
.auth-art p { color: #c3d3d6; max-width: 430px; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 11px; align-items: center; color: #dbe7e8; }
.auth-points span { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h2 { font-size: 23px; margin-bottom: 4px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.public { max-width: 940px; margin: 0 auto; padding: 0 18px 50px; }
.public-head { background: var(--hero-flat); color: #fff; padding: 22px 0 70px; }
.public-head .inner { max-width: 940px; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.public-head h1 { font-size: 20px; } .public-head p { margin: 2px 0 0; color: #c9d9db; font-size: 13px; }
.public-head .lang-switch { border-color: rgba(255,255,255,.3); } .public-head .lang-switch a { color: #dbe7e8; } .public-head .lang-switch a.on { background: #fff; color: var(--brand-dark); }
.public-body { margin-top: -46px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.steps span { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12.5px; }
.steps b { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 11.5px; }
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-page .code { font-size: 78px; font-weight: 800; color: var(--brand); line-height: 1; }

/* ---------- Print documents ---------- */
.print-bar { background: var(--side); padding: 10px 18px; display: flex; gap: 8px; justify-content: center; position: sticky; top: 0; z-index: 5; }
.sheet { background: #fff; width: 210mm; max-width: 100%; margin: 20px auto; padding: 14mm; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sheet.half { width: 148mm; padding: 10mm; }
.doc-head { text-align: center; border-bottom: 2px solid var(--text); padding-bottom: 10px; margin-bottom: 14px; position: relative; }
.doc-head img { height: 58px; position: absolute; left: 0; top: 0; }
.doc-head h1 { font-size: 21px; } .doc-head p { margin: 2px 0 0; color: #444; font-size: 12.5px; }
.doc-title { display: inline-block; margin-top: 8px; padding: 3px 18px; border: 1.5px solid var(--text); border-radius: 20px; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-bottom: 12px; font-size: 13px; }
.doc-meta span { color: #555; }
.sign-row { display: flex; justify-content: space-between; margin-top: 60px; font-size: 12.5px; }
.sign-row div { border-top: 1px solid #333; padding-top: 4px; min-width: 150px; text-align: center; }
.idcard { width: 54mm; height: 86mm; border: 1px solid #cbd2dc; border-radius: 10px; overflow: hidden; margin: 24px auto; background: #fff; text-align: center; font-size: 11px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.idcard-top { background: var(--hero-flat); color: #fff; padding: 9px 6px 26px; }
.idcard-top b { font-size: 12px; display: block; line-height: 1.25; } .idcard-top small { font-size: 8.5px; opacity: .85; }
.idcard-photo { width: 25mm; height: 28mm; margin: -20px auto 5px; border: 2.5px solid #fff; border-radius: 6px; background: var(--brand-soft); overflow: hidden; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--brand-dark); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.idcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.idcard h3 { font-size: 13px; padding: 0 6px; } .idcard table { margin: 5px auto 0; text-align: left; font-size: 10.5px; } .idcard td { padding: 1px 4px; }
.idcard-foot { margin-top: auto; background: var(--brand); color: #fff; padding: 4px; font-size: 9.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2, .g-3 { grid-template-columns: minmax(0, 1fr); } .form-grid, .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(15,27,45,.5); }
  .menu-btn { display: block; } .topbar { padding: 0 14px; } .content { padding: 16px 14px; } .user-meta { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } .g-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .g-4 { grid-template-columns: minmax(0, 1fr); } .form-grid, .form-grid.cols-2, .form-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } .routine { grid-template-columns: minmax(0, 1fr); } .doc-meta { grid-template-columns: minmax(0, 1fr); } .filters .field { max-width: none; } }

@media print {
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .footer, .print-bar, .no-print, .filters, .actions, .alert, .row-actions, .pagination { display: none !important; }
  .shell { display: block; } .content { padding: 0; }
  .card { border: 0; box-shadow: none; } .card-head { padding-left: 0; }
  .sheet { border: 0; box-shadow: none; margin: 0 auto; padding: 0; width: auto; }
  .table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .idcard, .idcard-top, .idcard-foot, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}

/* ---------- Public website ---------- */
body.site { background: #f6f8fb; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.site-top { background: var(--side); color: #b9c6d8; font-size: 12.5px; }
.site-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.site-top-right { display: flex; gap: 14px; align-items: center; }
.site-top .lang-switch { border-color: rgba(255,255,255,.22); } .site-top .lang-switch a { color: #c9d5e4; padding: 2px 10px; } .site-top .lang-switch a.on { background: #fff; color: var(--brand-dark); }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-brand { display: flex; align-items: center; gap: 11px; color: var(--text); min-width: 0; }
.site-brand b { display: block; font-size: 16px; line-height: 1.25; } .site-brand small { color: var(--muted); font-size: 12px; display: block; }
.site-menu { display: flex; align-items: center; gap: 2px; }
.site-menu > a:not(.btn) { padding: 8px 11px; color: #344054; font-weight: 600; font-size: 13.5px; border-radius: 7px; white-space: nowrap; }
html[lang="bn"] .site-menu > a:not(.btn) { font-size: 15px; }
.site-menu > a:not(.btn):hover { background: #f1f4f8; } .site-menu > a.on { color: var(--brand-dark); background: var(--brand-soft); }
.site-menu .btn { margin-left: 8px; }
.hero { background: var(--hero); background-size: cover; background-position: center; color: #fff; padding: 84px 0 110px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -160px; top: -220px; background: rgba(255,255,255,.05); pointer-events: none; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); max-width: 780px; line-height: 1.15; letter-spacing: -.01em; }
.hero p { font-size: 17px; color: #d3e2e4; max-width: 640px; margin: 14px 0 28px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-pill { display: inline-flex; gap: 7px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 13px; border-radius: 30px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); } .btn-light:hover { background: #eefaf8; color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; } .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(16,24,40,.08); margin-top: -52px; position: relative; z-index: 2; }
.stat-strip div { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line-soft); } .stat-strip div:last-child { border-right: 0; }
.stat-strip b { display: block; font-size: 28px; color: var(--brand-dark); line-height: 1.15; } .stat-strip span { color: var(--muted); font-size: 13px; }
.section { padding: 54px 0 6px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
html[lang="bn"] .eyebrow { font-size: 14px; letter-spacing: 0; }
.section-title { font-size: 28px; margin: 6px 0 22px; letter-spacing: -.01em; }
.lead { font-size: 15.5px; color: #475467; line-height: 1.75; margin: 0 0 18px; }
.feature { padding: 24px; margin: 0; } .feature h3 { font-size: 16px; margin: 14px 0 6px; } .feature p { margin: 0 0 12px; color: var(--muted); }
.teacher { padding: 24px 16px; text-align: center; margin: 0; } .teacher .avatar { margin: 0 auto 12px; border-radius: 50%; } .teacher h3 { font-size: 15px; } .teacher p { margin: 3px 0 0; color: var(--muted); }
.head-msg { display: flex; gap: 26px; padding: 30px; align-items: flex-start; margin: 0; background: linear-gradient(180deg, #fff, #f7fbfa); }
.head-msg blockquote, .prose blockquote { margin: 10px 0 14px; padding-left: 16px; border-left: 3px solid var(--brand); color: #475467; font-size: 15px; line-height: 1.75; }
.prose h2 { font-size: 22px; margin-bottom: 10px; } .prose h3 { font-size: 16px; margin: 22px 0 6px; } .prose p { line-height: 1.8; color: #344054; font-size: 15px; }
.cta { background: var(--hero-flat); color: #fff; margin-top: 60px; padding: 46px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; } .cta h2 { font-size: 24px; } .cta p { margin: 6px 0 0; color: #cfe0e2; }
.page-hero { background: var(--hero-flat); color: #fff; padding: 34px 0 38px; }
.page-hero h1 { font-size: 26px; } .page-hero p { margin: 4px 0 0; color: #b9cfd2; font-size: 13px; } .page-hero a { color: #dff3f0; }
.site-main { padding-top: 28px; padding-bottom: 50px; min-height: 46vh; }
.site-foot { background: var(--side); color: #a9b6c9; margin-top: 0; font-size: 13.5px; }
.cta + .site-foot { margin-top: 0; }
.site-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 34px; padding-top: 44px; padding-bottom: 34px; }
.site-foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; } .site-foot p { margin: 0 0 6px; } .site-foot a { color: #c6d2e2; display: block; padding: 3px 0; } .site-foot a:hover { color: #fff; }
.site-foot .site-brand { color: #fff; }
.site-copy { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; font-size: 12.5px; text-align: center; }
.date-chip { flex: none; width: 52px; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 9px; padding: 6px 0; font-size: 11.5px; line-height: 1.2; }
.date-chip b { display: block; font-size: 18px; }
@media (max-width: 980px) {
  .site-nav .menu-btn { display: block; }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; box-shadow: 0 12px 24px rgba(16,24,40,.1); }
  body.nav-open .site-menu { display: flex; } .site-menu .btn { margin: 8px 0 0; }
  .site-nav .wrap { position: relative; }
  .site-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } .head-msg { flex-direction: column; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip div:nth-child(2) { border-right: 0; } .stat-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .hero { padding: 56px 0 92px; }
}
@media print { .site-top, .site-nav, .site-foot, .page-hero, .cta { display: none !important; } }
.center > .avatar { margin-left: auto; margin-right: auto; }
.topbar-title { min-width: 0; flex: 0 1 auto; }
.topbar > * { flex-shrink: 0; } .topbar > .topbar-title { flex-shrink: 1; }
@media (max-width: 860px) { .hide-sm { display: none; } .topbar { gap: 8px; } .lang-switch a { padding: 5px 8px; } }

/* ---------- QR scanner ---------- */
.scan-view { position: relative; background: #0b1220; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.28); pointer-events: none; }
.scan-note { position: absolute; color: #cfd8e6; text-align: center; padding: 0 24px; }
.scan-result { transition: background .15s, border-color .15s; }
.scan-result[data-state="present"] { background: var(--green-soft); border-color: #9fd9bd; }
.scan-result[data-state="late"] { background: var(--amber-soft); border-color: #f0cf8b; }
.scan-result[data-state="already"] { background: var(--blue-soft); border-color: #b4cdf7; }
.scan-result[data-state="error"] { background: var(--red-soft); border-color: #f0b4af; }
.scan-name { font-size: 22px; font-weight: 700; line-height: 1.25; } .scan-state { margin-top: 6px; font-weight: 700; font-size: 16px; }
.qr-box { display: inline-block; background: #fff; line-height: 0; } .qr-box svg { width: 100%; height: 100%; display: block; }

/* Printed documents and cards stay light in every theme */
.sheet, .idcard, .idc { --surface: #fff; --surface-2: #f9fafb; --line: #e4e8ef; --line-soft: #eef1f6; --text: #1c2536; --muted: #667085; --row-hover: #fafbfd; --hover: #f6f7fa; --chip: #eef1f6; --chip-text: #475467; color: #1c2536; }

/* ---------- ID card designs (CR80: 54 x 86 mm portrait, 86 x 54 mm landscape) ---------- */
.idc { position: relative; width: 54mm; height: 86mm; border: 1px solid #cbd2dc; border-radius: 3.2mm; overflow: hidden; background: #fff; font-size: 9px; line-height: 1.3; display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc img { max-width: none; } .idc h3 { font-size: 11.5px; padding: 0 3mm; line-height: 1.25; }
.idc .qr-box { border-radius: 1mm; } .idc .m-logo { width: 7mm; height: 7mm; border-radius: 1.6mm; background: #fff; color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 10px; overflow: hidden; flex: none; } .idc .m-logo img { width: 100%; height: 100%; object-fit: cover; }
.idc-modern .m-head { background: var(--hero-flat); color: #fff; display: flex; gap: 2mm; align-items: center; text-align: left; padding: 2.5mm 3mm 9mm; } .idc-modern .m-head b { display: block; font-size: 9.5px; line-height: 1.2; } .idc-modern .m-head small { font-size: 7px; opacity: .85; display: block; }
.idc-modern .m-photo { width: 24mm; height: 24mm; border-radius: 50%; border: 1.2mm solid #fff; margin: -7mm auto 2mm; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 26px; font-weight: 800; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.25); } .idc-modern .m-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-modern .m-sub { color: #667085; font-size: 8.5px; margin: 1px 0 2mm; } .idc-modern .m-info { display: flex; justify-content: center; gap: 4mm; background: var(--brand-soft); margin: 0 3mm; padding: 1.5mm; border-radius: 2mm; } .idc-modern .m-info span { display: block; font-size: 7px; color: #667085; } .idc-modern .m-info b { font-size: 10px; }
.idc-modern .m-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 2mm 4mm 3mm; } .idc-modern .m-foot .qr-box { width: 17mm; height: 17mm; } .idc-modern .m-year { text-align: right; } .idc-modern .m-year b { display: block; font-size: 12px; color: var(--brand-dark); } .idc-modern .m-year span { font-size: 7.5px; letter-spacing: .12em; color: #667085; text-transform: uppercase; }
.idc-h { width: 86mm; height: 54mm; text-align: left; }
.idc-h .h-band { background: var(--hero-flat); color: #fff; display: flex; align-items: center; gap: 2.5mm; padding: 2mm 3.5mm; } .idc-h .h-band b { font-size: 10.5px; flex: 1; line-height: 1.2; } .idc-h .h-tag { font-size: 7px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 10px; }
.idc-h .h-body { display: flex; gap: 3mm; padding: 3mm 3.5mm 0; flex: 1; align-items: flex-start; } .idc-h .h-photo { width: 21mm; height: 25mm; border-radius: 2mm; background: var(--brand-soft); color: var(--brand-dark); font-size: 24px; font-weight: 800; display: grid; place-items: center; overflow: hidden; flex: none; border: .5mm solid var(--brand); } .idc-h .h-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-h .h-info { flex: 1; min-width: 0; } .idc-h h3 { padding: 0; font-size: 12px; margin-bottom: 1mm; } .idc-h dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 2.5mm; font-size: 8.5px; } .idc-h dt { color: #667085; } .idc-h dd { margin: 0; font-weight: 600; }
.idc-h .h-qr { text-align: center; flex: none; } .idc-h .h-qr .qr-box { width: 19mm; height: 19mm; display: block; } .idc-h .h-qr small { font-size: 7.5px; color: #667085; }
.idc-h .h-foot { background: var(--brand); color: #fff; font-size: 7.5px; padding: 1.2mm 3.5mm; text-align: center; margin-top: auto; }
.idc-min { border: .3mm solid var(--brand); padding: 3.5mm 3mm 3mm; align-items: center; }
.idc-min .n-school { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); line-height: 1.25; } .idc-min .n-photo { width: 26mm; height: 30mm; margin: 2.5mm 0 2mm; border-radius: 1.5mm; background: var(--brand-soft); color: var(--brand-dark); font-size: 28px; font-weight: 800; display: grid; place-items: center; overflow: hidden; } .idc-min .n-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-min h3 { font-size: 12.5px; padding: 0; } .idc-min .n-line { width: 12mm; height: .6mm; background: var(--brand); margin: 1.5mm 0; } .idc-min .n-meta { font-size: 8.5px; color: #475467; } .idc-min .qr-box { width: 16mm; height: 16mm; margin-top: auto; } .idc-min .n-year { font-size: 7.5px; color: #667085; margin-top: 1mm; }
.idc-badge { border: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); } .idc-badge .b-top { background: var(--hero-flat); color: #fff; padding: 2mm 3mm 11mm; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); position: relative; }
.idc-badge .b-slot { width: 12mm; height: 2mm; background: #fff; border-radius: 2mm; margin: 0 auto 1.5mm; opacity: .9; } .idc-badge .b-top .m-logo { margin: 0 auto 1mm; } .idc-badge .b-top b { font-size: 9px; display: block; line-height: 1.2; }
.idc-badge .b-photo { width: 23mm; height: 23mm; margin: -7mm auto 1.5mm; border-radius: 3mm; border: 1mm solid #fff; background: var(--brand-soft); color: var(--brand-dark); font-size: 26px; font-weight: 800; display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.25); } .idc-badge .b-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-badge .b-ribbon { margin: 1mm auto; background: var(--brand); color: #fff; font-size: 7.5px; letter-spacing: .2em; text-transform: uppercase; padding: 1px 4mm; border-radius: 10px; } .idc-badge .b-grid { display: grid; grid-template-columns: auto 1fr; gap: 0 3mm; text-align: left; padding: 1mm 5mm; font-size: 8.5px; } .idc-badge .b-grid span { color: #667085; }
.idc-badge .b-qr { margin-top: auto; } .idc-badge .b-qr .qr-box { width: 14mm; height: 14mm; } .idc-badge .b-foot { background: var(--brand); color: #fff; font-size: 8px; padding: 1.2mm; margin-top: 1mm; }
.idc-sheet { display: grid; grid-template-columns: repeat(auto-fill, 56mm); gap: 5mm; justify-content: center; padding: 14px; } .idc-sheet.h { grid-template-columns: repeat(auto-fill, 88mm); }
.idc-sheet .idc, .idc-sheet .idcard { margin: 0; break-inside: avoid; page-break-inside: avoid; }
.idc-switch { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 14px 0 0; } .idc-switch a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); font-weight: 600; font-size: 12.5px; color: var(--muted); } .idc-switch a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media print { .idc-sheet { padding: 0; gap: 4mm; justify-content: start; } .idc { box-shadow: none; } .idc-switch { display: none; } }
/* ---------- Appearance settings ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); transition: border-color .12s; }
.choice input { position: absolute; opacity: 0; } .choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); } .choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice b { display: block; margin-top: 8px; font-size: 13px; } .choice .check-mark { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: none; place-items: center; font-size: 12px; } .choice:has(input:checked) .check-mark { display: grid; }
.swatch { height: 64px; border-radius: 8px; overflow: hidden; display: flex; } .swatch i { display: block; } .swatch .s1 { width: 28%; } .swatch .s2 { flex: 1; background: var(--bg); padding: 8px; } .swatch .s2 span { display: block; height: 7px; border-radius: 4px; margin-bottom: 5px; opacity: .85; }
.tpl-thumb { height: 92px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; background: #f3f5f9; position: relative; display: flex; flex-direction: column; } .tpl-thumb .nav { height: 10px; background: #fff; border-bottom: 1px solid #e4e8ef; } .tpl-thumb .blk { display: block; border-radius: 3px; }
.tpl-classic .hero-b { flex: 1; background: linear-gradient(120deg, #0f1b2d, var(--brand)); } .tpl-classic .strip { height: 14px; margin: -8px 14px 4px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); } .tpl-classic .rows { height: 26px; display: flex; gap: 4px; padding: 0 8px 6px; } .tpl-classic .rows i { flex: 1; background: #fff; border-radius: 3px; }
.tpl-modern .hero-b { flex: 1; background: #fff; display: grid; place-items: center; } .tpl-modern .hero-b i { display: block; width: 56%; height: 8px; border-radius: 4px; background: var(--brand); margin: 3px auto; } .tpl-modern .hero-b i.l { width: 36%; background: #cbd5e1; } .tpl-modern .rows { height: 30px; display: flex; gap: 5px; padding: 0 8px 6px; } .tpl-modern .rows i { flex: 1; background: #fff; border-radius: 6px; border: 1px solid #e4e8ef; }
.tpl-campus .hero-b { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; } .tpl-campus .hero-b .t { padding: 10px 8px; } .tpl-campus .hero-b .t i { display: block; height: 7px; border-radius: 4px; background: var(--brand); margin-bottom: 5px; width: 80%; } .tpl-campus .hero-b .t i.l { background: #cbd5e1; width: 60%; } .tpl-campus .hero-b .p { background: linear-gradient(135deg, var(--brand), #0f1b2d); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); } .tpl-campus .rows { height: 24px; background: var(--brand); }
.idc-preview { position: relative; display: block; overflow: hidden; pointer-events: none; } .idc-preview > span { position: absolute; left: 50%; top: 50%; display: block; transform: translate(-50%, -50%) scale(var(--s, .5)); }

/* ---------- Website template: Modern ---------- */
.mod-hero { background: linear-gradient(180deg, var(--brand-soft), transparent); text-align: center; padding: 84px 0 56px; }
.mod-hero h1 { font-size: clamp(32px, 5.5vw, 56px); letter-spacing: -.02em; line-height: 1.1; color: var(--brand-dark); max-width: 820px; margin: 0 auto; } .mod-hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 16px auto 28px; }
.mod-pill { display: inline-flex; gap: 7px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 5px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600; color: var(--brand-dark); margin-bottom: 18px; }
.mod-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -10px; } .mod-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; box-shadow: var(--shadow); } .mod-stats b { display: block; font-size: 30px; color: var(--brand); } .mod-stats span { color: var(--muted); font-size: 13px; }
.mod-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); } .mod-card h3 { font-size: 16px; margin: 14px 0 6px; } .mod-card p { margin: 0; color: var(--muted); } .mod-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.mod-card.teacher { text-align: center; } .mod-card.teacher .avatar { margin: 0 auto 12px; border-radius: 50%; }
.mod-quote { background: var(--brand-soft); border-radius: 22px; padding: 38px; text-align: center; } .mod-quote blockquote { margin: 0 auto 18px; max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--text); font-style: italic; }
.mod-cta { text-align: center; padding: 60px 0; margin-top: 50px; background: var(--brand-soft); } .mod-cta h2 { font-size: 26px; color: var(--brand-dark); } .mod-cta p { color: var(--muted); margin: 6px 0 20px; }
/* ---------- Website template: Campus ---------- */
.camp-hero { padding: 64px 0 56px; background: var(--surface); } .camp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.camp-hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; letter-spacing: -.015em; margin: 10px 0 14px; } .camp-nums { display: flex; gap: 30px; margin-top: 34px; } .camp-nums b { display: block; font-size: 28px; color: var(--brand); line-height: 1.1; } .camp-nums span { color: var(--muted); font-size: 13px; }
.camp-art { min-height: 360px; border-radius: 30px 120px 30px 30px; background: var(--hero) center / cover; position: relative; box-shadow: 0 24px 50px -22px rgba(16,24,40,.5); } .camp-badge { position: absolute; left: -14px; bottom: 28px; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 14px; font-weight: 650; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; } .camp-badge .icon { color: var(--brand); }
.camp-ticker { background: var(--brand); color: var(--on-brand); font-size: 13.5px; } .camp-ticker .wrap { display: flex; gap: 18px; align-items: center; min-height: 44px; overflow: hidden; } .camp-ticker span { display: flex; gap: 26px; flex: 1; overflow: hidden; white-space: nowrap; } .camp-ticker a { color: inherit; opacity: .95; } .camp-ticker b { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.camp-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; } .camp-feat > div { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); } .camp-n { font-size: 30px; font-weight: 800; color: var(--brand); opacity: .35; line-height: 1; min-width: 46px; } .camp-feat h3 { font-size: 16px; margin-bottom: 4px; } .camp-feat p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .camp-grid, .camp-feat { grid-template-columns: 1fr; } .camp-art { min-height: 220px; border-radius: 24px; } .mod-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Exam admit cards ---------- */
.admit-wrap { max-width: 210mm; margin: 14px auto; padding: 0 10px; }
.admit { background: #fff; color: #1c2536; border: 1.5px solid #1c2536; border-radius: 3mm; padding: 5mm 6mm; margin-bottom: 6mm; page-break-inside: avoid; break-inside: avoid; min-height: 128mm; font-size: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; --surface: #fff; --text: #1c2536; --muted: #667085; --line: #cbd2dc; }
.admit-head { display: flex; align-items: center; gap: 3mm; border-bottom: 1.5px solid #1c2536; padding-bottom: 3mm; } .admit-head b { display: block; font-size: 15px; } .admit-head small { color: #475467; }
.admit-head .m-logo { width: 12mm; height: 12mm; border-radius: 2.5mm; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; } .admit-head .m-logo img { width: 100%; height: 100%; object-fit: cover; }
.admit-title { border: 1.5px solid #1c2536; border-radius: 20px; padding: 2px 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; white-space: nowrap; }
.admit-body { display: flex; gap: 5mm; align-items: flex-start; padding: 3mm 0; } .admit-photo { width: 25mm; height: 30mm; background: var(--brand-soft); color: var(--brand-dark); border-radius: 2mm; display: grid; place-items: center; font-size: 28px; font-weight: 800; overflow: hidden; flex: none; } .admit-photo img { width: 100%; height: 100%; object-fit: cover; }
.admit-info { flex: 1; } .admit-info h3 { font-size: 14px; margin-bottom: 2mm; } .admit-info dl { margin: 0; display: grid; grid-template-columns: 26mm 1fr; gap: 1mm 3mm; } .admit-info dt { color: #667085; } .admit-info dd { margin: 0; }
.admit-sched { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 2mm; } .admit-sched th, .admit-sched td { border: 1px solid #cbd2dc; padding: 1.2mm 2.2mm; text-align: left; } .admit-sched th { background: #f3f5f9; font-size: 10.5px; text-transform: uppercase; }
.admit-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; margin-top: 5mm; font-size: 10.5px; color: #475467; } .admit-sign { border-top: 1px solid #1c2536; padding: 1mm 8mm 0; white-space: nowrap; color: #1c2536; }
@media print { .admit-wrap { margin: 0; padding: 0; max-width: none; } }

/* Calendar */
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:10px}
.cal-h{font-weight:600;text-align:center;font-size:.8rem;color:var(--muted);padding:4px 0}
.cal-c{min-height:78px;border:1px solid var(--line);border-radius:8px;padding:4px 6px;font-size:.85rem;background:var(--surface)}
.cal-c.off{background:transparent;border-color:transparent}
.cal-c.hol{background:rgba(245,158,11,.12)}
.cal-c.today{outline:2px solid var(--brand)}
.cal-ev{display:block;font-size:.7rem;background:rgba(37,99,235,.14);border-radius:4px;padding:1px 4px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-ev.h{background:rgba(245,158,11,.28)}
@media (max-width:600px){.cal-c{min-height:54px;padding:2px 3px}.cal-ev{font-size:.6rem}}

/* Progress charts */
.chart{width:100%;height:auto;display:block}
.chart .gl{stroke:var(--line);stroke-width:1}
.chart .tx{fill:var(--muted);font-size:10px}
.chart .ln{fill:none;stroke-width:2.5}
.chart .ln.me,.chart .dt.me,.chart .bar.me,.sw.me{stroke:var(--brand);fill:var(--brand);background:var(--brand)}
.chart .ln.avg,.chart .dt.avg,.chart .bar.avg,.sw.avg{stroke:#94a3b8;fill:#94a3b8;background:#94a3b8}
.chart .ln.me,.chart .ln.avg{fill:none}
.chart .tx{font-family:inherit}
.chart .bar{stroke:none}
.legend{display:flex;gap:16px;font-size:.8rem;margin-bottom:6px;color:var(--muted)}
.sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;border:0}

/* Photo viewer */
.lb{position:fixed;inset:0;z-index:1000;background:rgba(8,12,20,.94);display:flex;align-items:center;justify-content:center;padding:56px 12px 64px}
.lb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.5);transition:opacity .15s}
.lb.loading img{opacity:.35}
.lb-cap{position:absolute;left:0;right:0;bottom:18px;text-align:center;color:#e6ecf7;font-size:14px;padding:0 64px}
.lb-count{position:absolute;top:18px;left:18px;color:#cbd5e1;font-size:13px}
.lb-btn{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;width:44px;height:44px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lb-btn:hover,.lb-btn:focus-visible{background:rgba(255,255,255,.28);outline:2px solid #fff}
.lb-close{top:12px;right:12px}.lb-prev{left:10px;top:50%;margin-top:-22px}.lb-next{right:10px;top:50%;margin-top:-22px}
@media (max-width:600px){.lb{padding:52px 0 60px}.lb img{border-radius:0}.lb-prev,.lb-next{top:auto;bottom:10px;margin:0}.lb-cap{padding:0 64px}}

/* Online admission: the fee appears only after a class is chosen */
.fee-note{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;padding:10px 14px;border-radius:10px;background:var(--amber-soft);color:var(--amber);font-weight:600;font-size:14px}
.fee-note b{font-size:17px}
.fee-note.free{background:var(--green-soft);color:var(--green);justify-content:flex-start}
.fee-note[hidden]{display:none}

/* Pagination footer: info · pages · rows per page */
.pager{flex-wrap:wrap;gap:10px 16px;align-items:center}
.pager .pagination{margin:0 auto}
.pager-size{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:13px;color:var(--muted)}
.pager-size .input{width:auto;min-width:68px}
.pagination a[title]{font-size:15px}
@media (max-width:640px){.pager{justify-content:center}.pager .pagination,.pager-size{margin:0}}

/* Sidebar sections */
.nav { padding: 8px 10px 28px; }
.nav-group { margin-top: 4px; }
.nav-label { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 0; cursor: default; text-align: left; font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8ea0ba; padding: 11px 10px 6px; font-weight: 700; }
html[lang="bn"] .nav-label { font-size: 12.5px; letter-spacing: 0; }
.nav-label .icon { opacity: .75; }
.nav-label .chev { display: none; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; opacity: .7; }
.nav-label .count { margin-left: auto; background: #f59e0b; color: #1c1300; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 20px; }
.nav.collapsible .nav-label { cursor: pointer; border-radius: 8px; }
.nav.collapsible .nav-label:hover { background: var(--side-2); color: #fff; }
.nav.collapsible .nav-label .chev { display: inline-block; }
.nav.collapsible .nav-label .count + .chev { margin-left: 8px; }
.nav.collapsible .nav-group.open .nav-label .chev { transform: rotate(45deg); }
.nav.collapsible .nav-items { display: none; }
.nav.collapsible .nav-group.open .nav-items { display: block; }
.nav-items { padding: 0 0 4px 6px; border-left: 1px solid rgba(255,255,255,.08); margin-left: 16px; }
.nav-items a { font-size: 13.5px; padding: 7px 10px; }
.nav-group.open > .nav-label { color: #cfe0f5; }

/* Polish: consistent file inputs, table rows, focus */
input[type=file].input { padding: 6px; cursor: pointer; }
input[type=file].input::file-selector-button { margin-right: 12px; border: 1px solid var(--line); background: var(--surface-2, #f9fafb); color: var(--text); padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
input[type=file].input::file-selector-button:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--row-hover, #fafbfd); }
.card { transition: box-shadow .15s; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.page-head h1 { letter-spacing: -.01em; }
.btn { transition: background .15s, border-color .15s, box-shadow .15s; }
.nav-items a.active { box-shadow: 0 1px 0 rgba(0,0,0,.15); }

/* SaaS platform site */
.sa-hero{background:var(--hero);color:#fff;padding:78px 0 70px;text-align:center}
.sa-hero h1{font-size:clamp(28px,5vw,46px);line-height:1.15;margin:0 auto 14px;max-width:820px;letter-spacing:-.02em}
.sa-hero p{font-size:18px;max-width:680px;margin:0 auto 26px;opacity:.92}
.sa-hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.sa-ghost{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.4)}
.sa-ghost:hover{background:rgba(255,255,255,.22);color:#fff}
.sa-hero-note{margin-top:16px;font-size:13px;opacity:.8}
.sa-feature{padding:20px}.sa-feature h3{margin:14px 0 6px;font-size:17px}.sa-feature p{margin:0;line-height:1.7}
.sa-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;align-items:stretch}
.sa-plan{padding:22px;position:relative;display:flex;flex-direction:column}
.sa-plan.pop{border:2px solid var(--brand);box-shadow:0 8px 30px rgba(15,118,110,.15)}
.sa-pop{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--brand);color:#fff;font-size:11px;font-weight:700;padding:3px 12px;border-radius:20px;letter-spacing:.04em;text-transform:uppercase}
.sa-plan h3{margin:0 0 4px;font-size:19px}.sa-price{font-size:34px;font-weight:800;letter-spacing:-.02em;margin:6px 0 0}.sa-price span{font-size:14px;font-weight:500;color:var(--muted);margin-left:4px}
.sa-plan ul{list-style:none;margin:16px 0;padding:0;flex:1}.sa-plan li{display:flex;gap:8px;align-items:center;padding:4px 0;font-size:14px}
.sa-plan li .icon{color:var(--green);flex:none}.sa-plan li.off{color:var(--faint)}.sa-plan li .x{width:15px;text-align:center;flex:none}
.btn-block{display:flex;width:100%;justify-content:center}
.sa-cta{background:var(--brand-soft);padding:44px 0;margin-top:40px;text-align:center}.sa-cta h2{margin:0 0 16px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
