/* Shared education workspace theme. Independent implementation of the reference's
   navy/amber visual language; no vendor template code or assets are bundled. */
:root {
    --app-bg: #f0f1f3;
    --surface-bg: #fff;
    --surface-soft: #f8f8f8;
    --text-main: #222;
    --text-soft: #777;
    --border-soft: #e8e8e8;
    --brand-navy: #042954;
    --brand-navy-deep: #032448;
    --brand-blue: #042954;
    --brand-orange: #ffae01;
    --brand-orange-deep: #e79d00;
    --sidebar-text: #b8c7d9;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, .035);
    --sidebar-width: 260px;
    --topbar-height: 80px;
    --ui-radius: 4px;
    --bs-primary: #042954;
    --bs-primary-rgb: 4, 41, 84;
    --bs-link-color: #042954;
    --bs-link-hover-color: #805700;
    --bs-body-color: #222;
    --bs-body-bg: #f0f1f3;
    --bs-border-radius: 4px;
    --bs-border-radius-lg: 4px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--app-bg); color: var(--text-main); font: 400 15px/1.6 Roboto, Arial, sans-serif; }
a { color: var(--brand-navy); }
h1, h2, h3, h4, h5, h6 { color: inherit; line-height: 1.35; }
.text-secondary { color: var(--text-soft) !important; }
.fw-bold, .fw-semibold { font-weight: 500 !important; }
.small, small { font-size: 13px; }
:focus-visible { outline: 3px solid #ffae01; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 2000; padding: 12px 20px; background: #fff; color: #042954; }
.skip-link:focus { top: 10px; }
.app-shell { min-height: 100vh; }
.app-sidebar {
    width: var(--sidebar-width); height: 100dvh; top: 0; left: 0;
    background: var(--brand-navy); overflow-y: auto; overflow-x: hidden;
    padding: 0 0 22px !important; z-index: 1040 !important;
    scrollbar-width: thin; scrollbar-color: #31577f transparent;
    transition: transform .2s ease, width .2s ease;
}
.sidebar-brand { height: var(--topbar-height); min-height: var(--topbar-height); background: var(--brand-orange); padding: 12px 20px; margin-bottom: 12px; gap: 12px !important; }
.sidebar-brand-mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--brand-navy); }
.sidebar-brand-title { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-brand-subtitle { color: #352600; font-size: 11px; line-height: 1.2; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 160px; }
.sidebar-section-title { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8ca2bc; padding: 14px 24px 7px; }
.sidebar-menu-group { border-bottom: 1px solid rgba(255,255,255,.055); }
.sidebar-toggle-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--sidebar-text);
    padding: 16px 24px; text-align: left; font: 400 14px/1.5 Roboto, Arial, sans-serif;
}
.sidebar-toggle-label { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle-label > i { color: var(--brand-orange); width: 22px; font-size: 20px; text-align: center; }
.sidebar-toggle-icon { font-size: 12px; transition: transform .2s; }
.sidebar-toggle-btn[aria-expanded="true"] .sidebar-toggle-icon { transform: rotate(180deg); }
.sidebar-toggle-btn:hover, .sidebar-toggle-btn.active { color: #fff; background: var(--brand-navy-deep); }
.sidebar-submenu { padding: 5px 12px 12px 36px; background: #06305e; }
.sidebar-submenu--level-2, .sidebar-submenu--level-3 { padding: 4px 0 4px 14px; border-left: 1px solid #31577f; }
.sidebar-toggle-btn--nested { padding: 10px 12px; font-size: 13px; }
.sidebar-toggle-btn--nested i { font-size: 15px; }
.sidebar-sublink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #b8c7d9; font-size: 13px; text-decoration: none; border-radius: 0; }
.sidebar-sublink i { font-size: 12px; }
.sidebar-sublink:hover, .sidebar-sublink.active { color: #ffae01; background: #042954; }
.sidebar-sublink--pending { cursor: not-allowed; opacity: .72; }
.sidebar-sublink--pending:hover { color: #b8c7d9; background: transparent; }
.sidebar-context { margin: 24px 20px 0; padding: 16px 4px 0; font-size: 12px; border-top: 1px solid #31577f; }
.content-pane { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin .2s; min-width: 0; }
.header-blur { background: #fff; min-height: var(--topbar-height); box-shadow: 0 2px 10px rgba(0,0,0,.05); position: relative; z-index: 1025; }
.workspace-topbar { min-height: var(--topbar-height); display: flex; align-items: center; gap: 22px; padding: 12px 30px; }
.sidebar-trigger { border: 0; background: transparent; color: #858585; padding: 4px; font-size: 26px; }
.workspace-finder { position: relative; flex: 1; max-width: 380px; }
.header-search { display: flex; align-items: center; gap: 14px; background: #fff; color: #b5b5b5; }
.header-search i { font-size: 23px; }
.header-search input { width: 100%; border: 0; padding: 8px 0; background: transparent; font-size: 14px; outline: none; }
.workspace-search-results { position: absolute; top: 100%; left: 0; width: min(380px, 80vw); display: block; }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-chip { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; background: #fff; border: 0; color: #858585; font-size: 20px; text-decoration: none; }
.header-chip:hover { color: #e79d00; }
.header-profile { display: flex; align-items: center; gap: 14px; background: #fff; border: 0; padding: 0; color: #444; text-align: right; }
.header-profile .small { font-size: 12px; }
.header-avatar { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e7eff9; color: #042954; font-weight: 700; }
.topbar-title { font-weight: 500; font-size: 16px; }
.topbar-subtitle { font-size: 12px; color: #777; }
.content-inner { padding: 30px; }
.content-inner:focus { outline: none; }
.page-header, .content-header-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0; margin-bottom: 28px; color: #222; background: transparent;
    border: 0; border-radius: 0; box-shadow: none;
}
.page-header h1, .content-header-card h1 { font-size: 24px; font-weight: 500; margin: 0; }
.page-header:has(+ nav) { margin-bottom: 10px; }
.page-header p, .content-header-card p { color: #777; font-size: 14px; margin: 8px 0 0; max-width: 760px; }
.page-overline { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #805700; margin-bottom: 6px; }
.breadcrumb-soft { background: transparent; border: 0; box-shadow: none; padding: 0 !important; border-radius: 0; font-size: 14px; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #bfa46a; }
.breadcrumb-item a { color: #777; text-decoration: none; }
.breadcrumb-item.active { color: #805700; }
.surface-card, .glass-card, .form-section-card, .side-info-card, .card {
    background: #fff; border: 0; border-radius: 4px; box-shadow: var(--card-shadow);
}
.surface-card.p-4, .glass-card.p-4 { padding: 28px !important; }
.surface-card h2.h5, .surface-card h3.h5, .form-section-title { font-size: 20px; font-weight: 500; }
.form-section-card, .side-info-card { padding: 26px 28px; }
.form-section-card + .form-section-card { margin-top: 24px; }
.form-section-title { margin-bottom: 6px; }
.form-section-copy { font-size: 14px; color: #777; margin-bottom: 24px; }
.panel-tile, .detail-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 18px 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.detail-card-label { color: #777; font-size: 13px; margin-bottom: 8px; }
.detail-card-value { color: #222; font-weight: 500; overflow-wrap: anywhere; }
.profile-hero { background: #fff; color: #222; padding: 30px; border-radius: 4px; box-shadow: var(--card-shadow); border-top: 3px solid #ffae01; }
.profile-hero p, .profile-hero .text-secondary { color: #777 !important; }
.profile-hero .text-white-50 { color: #777 !important; }
.profile-hero .border-light { border-color: #e8e8e8 !important; background: #f8f8f8; }
.student-admission-form h6 { padding: 16px 0 8px; border-bottom: 1px solid #eee; font-size: 18px; }
.info-list { display: grid; gap: 16px; }
.info-list-item { border-bottom: 1px solid #eee; padding-bottom: 16px; }
.info-list-item:last-child { border: 0; padding-bottom: 0; }
.stat-card { min-height: 134px; }
.stat-card-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat-card-copy { text-align: right; min-width: 0; }
.card-title-soft { font-size: 14px; color: #777; margin-bottom: 6px; }
.stat-card-value { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; color: #222; font-weight: 500; overflow-wrap: anywhere; }
.stat-card-helper { font-size: 12px; color: #777; margin-top: 14px; }
.stat-card-icon { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; }
.stat-card-icon i { font-size: 30px !important; }
.stat-card--primary .stat-card-icon { color: #3f7af3; background: #e1f1ff; }
.stat-card--success .stat-card-icon { color: #35ad78; background: #d1f3e0; }
.stat-card--warning .stat-card-icon { color: #df9a00; background: #fff2d8; }
.stat-card--danger .stat-card-icon { color: #f04454; background: #ffeaec; }
.stat-card--info .stat-card-icon { color: #12aab0; background: #d8f5f5; }
.stat-card--secondary .stat-card-icon { color: #777; background: #eceef2; }
.chart-panel { position: relative; height: 320px; min-height: 320px; }
.chart-panel-sm { height: 260px; min-height: 260px; }
.chart-panel-lg { height: 360px; min-height: 360px; }
.chart-panel > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.surface-card canvas { max-width: 100%; }
.table-card-wrap { border: 0; background: #fff; }
.table { --bs-table-bg: transparent; --bs-table-color: #646464; --bs-table-border-color: #e8e8e8; --bs-table-hover-bg: #fff8e8; font-size: 14px; }
.table > :not(caption) > * > * { padding: 16px 14px; vertical-align: middle; }
.table thead th { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; color: #222; background: #fff; white-space: nowrap; border-bottom: 2px solid #e8e8e8; }
.table tbody tr:nth-child(odd) { background: #f8f8f8; }
.table td .small { font-size: 12px; }
.table-responsive { scrollbar-width: thin; }
.table .btn { padding: 6px 10px; font-size: 12px; }
.record-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #e1f1ff; color: #042954; flex-shrink: 0; }
.form-label { font-size: 14px; color: #646464; margin-bottom: 10px; font-weight: 400 !important; }
.form-control, .form-select { border: 1px solid #f0f1f3; background-color: #f0f1f3; border-radius: 4px; padding: 12px 16px; min-height: 46px; color: #444; font-size: 14px; }
.form-control::placeholder { color: #8b8b8b; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: #ffae01; box-shadow: 0 0 0 3px rgba(255,174,1,.15); }
.form-control:disabled, .form-select:disabled { opacity: .7; }
.form-control.is-invalid, .form-select.is-invalid, [aria-invalid="true"] { border-color: #d32f2f; }
.form-check-input:checked { background-color: #042954; border-color: #042954; }
.row.g-2 .mb-3, .row.g-3 .mb-3, .row.g-4 .mb-3 { margin-bottom: 0 !important; }
.btn { border-radius: 4px; font-size: 14px; font-weight: 500; padding: 11px 22px; box-shadow: none; transition: background .15s, color .15s; }
.btn-primary { --bs-btn-color: #222; --bs-btn-bg: #ffae01; --bs-btn-border-color: #ffae01; --bs-btn-hover-color: #222; --bs-btn-hover-bg: #ffc13e; --bs-btn-hover-border-color: #ffc13e; --bs-btn-active-color: #222; --bs-btn-active-bg: #e79d00; --bs-btn-active-border-color: #e79d00; --bs-btn-disabled-color: #222; --bs-btn-disabled-bg: #ffae01; --bs-btn-disabled-border-color: #ffae01; }
.btn-secondary { --bs-btn-bg: #042954; --bs-btn-border-color: #042954; --bs-btn-hover-bg: #06396f; --bs-btn-hover-border-color: #06396f; }
.btn-outline-primary { --bs-btn-color: #042954; --bs-btn-border-color: #d2d9e2; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #042954; --bs-btn-hover-border-color: #042954; }
.btn-light { background: #fff; border-color: #ddd; color: #555; }
.btn-sm { font-size: 12px; padding: 7px 12px; }
.btn-group { gap: 6px; flex-wrap: wrap; }
.btn-group > .btn { margin: 0 !important; border-radius: 4px !important; }
.badge { font-size: 11px; font-weight: 500 !important; letter-spacing: .02em; border-radius: 4px !important; }
.nav-tabs { border-color: #e8e8e8; gap: 12px; }
.nav-tabs .nav-link { color: #777; padding: 12px 16px; border: 0; border-bottom: 3px solid transparent; }
.nav-tabs .nav-link.active { background: transparent; color: #042954; border-bottom-color: #ffae01; }
.nav-pills .nav-link.active { background-color: #042954; }
.dropdown-menu { border: 1px solid #eee; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.1); padding: 8px; max-width: calc(100vw - 24px); }
.dropdown-item { padding: 10px 14px; font-size: 14px; border-radius: 3px; white-space: normal; }
.dropdown-item:hover, .dropdown-item:focus { color: #042954; background: #fff4d9; }
.alert { border-radius: 4px; font-size: 14px; }
.empty-state { background: #fafafa; border: 1px dashed #ddd; padding: 24px; border-radius: 4px; }
.accordion-item { border: 1px solid #e8e8e8; }
.accordion-button { color: #222; background: #fff; box-shadow: none !important; font-weight: 500; }
.accordion-button:not(.collapsed) { color: #042954; background: #fff8e8; }
.page-link { color: #555; border-color: #eee; padding: 8px 14px; }
.active > .page-link { background: #042954; border-color: #042954; }
.modal-content, .offcanvas { border-radius: 4px !important; }
.modal-header, .offcanvas-header { border-bottom: 1px solid #eee; padding: 22px 26px; }
.modal-body, .offcanvas-body { padding: 26px; }
.page-footer { color: #888; font-size: 13px; padding: 10px 30px 24px; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(4,41,84,.5); opacity: 0; visibility: hidden; z-index: 1035; }
.sidebar-overlay.show { opacity: 1; visibility: visible; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 38%) 1fr; }
.auth-side { background: #042954; color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: space-between; border-top: 8px solid #ffae01; }
.auth-side .sidebar-brand-title { font-size: 26px; }
.auth-side .sidebar-brand-subtitle { color: #b8c7d9; }
.auth-hero-card { padding: 28px 0; }
.auth-hero-card h2 { font-size: 32px; line-height: 1.4; }
.auth-stage { display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-card { max-width: 510px; width: 100%; }
.auth-card .surface-card { border-top: 4px solid #ffae01; }
.portal-label { display: inline-block; font-size: 12px; color: #805700; background: #fff4d9; padding: 6px 12px; border-radius: 4px; }
.site-navbar { border-top: 5px solid #ffae01; }
.site-card { color: #222; border-radius: 4px !important; box-shadow: var(--card-shadow) !important; border: 0 !important; }
.site-footer { border-top: 5px solid #ffae01; }
.hero-block { border-radius: 4px !important; box-shadow: var(--card-shadow) !important; }
@media (min-width: 1200px) {
    .student-admission-form > .col-md-4, .student-admission-form > .col-md-6 { width: 25%; }
    .sidebar-compact .app-sidebar { transform: translateX(-100%); }
    .sidebar-compact .content-pane { margin-left: 0; }
}
@media (min-width: 1200px) and (max-width: 1500px) {
    .stat-card-icon { width: 58px; height: 58px; flex-basis: 58px; }
    .stat-card-body { gap: 10px; }
    .stat-card-copy { flex: 1; }
}
@media (max-width: 1199.98px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.show { transform: translateX(0); }
    .content-pane { margin-left: 0; }
    body.sidebar-open { overflow: hidden; }
}
@media (max-width: 767.98px) {
    :root { --topbar-height: 68px; }
    .content-inner { padding: 20px 16px; }
    .workspace-topbar { padding: 12px 16px; gap: 12px; }
    .header-actions { gap: 8px; }
    .header-search i { font-size: 18px; }
    .header-search input { font-size: 12px; }
    .header-profile .profile-copy { display: none; }
    .header-avatar { width: 34px; height: 34px; font-size: 12px; }
    .header-chip { width: 26px; font-size: 18px; }
    .page-header h1, .content-header-card h1 { font-size: 22px; }
    .surface-card.p-4, .glass-card.p-4, .form-section-card, .side-info-card { padding: 20px !important; }
    .page-header > .d-flex { flex-wrap: wrap; }
    .stat-card { min-height: 110px; }
    .stat-card-icon { width: 56px; height: 56px; flex-basis: 56px; }
    .stat-card-value { font-size: 23px; }
    .chart-panel, .chart-panel-sm, .chart-panel-lg { height: 260px; min-height: 260px; }
    .auth-shell { display: block; }
    .auth-side { display: none; }
    .auth-stage { padding: 24px 16px; min-height: 100vh; }
    .page-footer { padding: 8px 16px 24px; }
}
.specialized-toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.parent-child-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #eaf0f6; color: #042954; font-weight: 700; }
.parent-child-copy { min-width: 0; overflow-wrap: anywhere; }
.parent-results-table .parent-result-name { white-space: normal; min-width: 140px; max-width: 240px; overflow-wrap: anywhere; }
.specialized-toolbar > div:first-child { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.specialized-toolbar > .btn { flex-shrink: 0; }
.specialized-toolbar .telemetry-filter { flex: 0 1 240px; max-width: 100%; }
.telemetry-panel { min-height: 300px; max-height: 560px; overflow: auto; }
.telemetry-record, .bi-measure, .designer-preview-canvas { overflow-wrap: anywhere; }
.bi-measure > span { min-width: 0; flex: 1 1 100px; }
.qr-camera-panel { height: clamp(220px, 32vw, 360px); }
.proctoring-payload { max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--border-color, #e5e5e5); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .app-sidebar, .header-blur, .page-footer, .skip-link, .sidebar-overlay { display: none !important; }
    .content-pane { margin-left: 0; }
    .content-inner { padding: 0; }
    body { background: #fff; }
    .surface-card, .glass-card { box-shadow: none; }
}
