:root {
    --student-navy: #12384f;
    --student-blue: #00699b;
    --student-teal: #168f91;
    --student-green: #198754;
    --student-amber: #b76b00;
    --student-red: #b42318;
    --student-ink: #172b3a;
    --student-muted: #637785;
    --student-line: #d9e5e9;
    --student-soft: #edf7f7;
    --student-bg: #f5f8f9;
    --student-white: #ffffff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body, button, input { font-family: "Inter", "Segoe UI", sans-serif; letter-spacing: 0; }
.student-body { background: var(--student-bg); color: var(--student-ink); }
.student-app { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.student-sidebar { background: var(--student-navy); color: #fff; display: flex; flex-direction: column; min-height: 100vh; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.student-brand { align-items: center; color: #fff; display: flex; gap: 12px; padding: 0 8px 22px; text-decoration: none; }
.student-brand img { background: #fff; border-radius: 8px; height: 52px; object-fit: contain; padding: 4px; width: 52px; }
.student-brand span { display: grid; gap: 2px; }
.student-brand strong { font-size: 1.12rem; }
.student-brand small { color: #b7d9df; font-size: .72rem; font-weight: 600; }
.student-nav { display: grid; gap: 5px; }
.student-nav__link { align-items: center; border-radius: 6px; color: #d8ebee; display: flex; font-size: .88rem; font-weight: 650; gap: 11px; min-height: 43px; padding: 9px 12px; text-decoration: none; }
.student-nav__link i { color: #7ed2ce; font-size: 1.05rem; width: 20px; }
.student-nav__link:hover, .student-nav__link.is-active { background: #fff; color: var(--student-navy); }
.student-nav__link:hover i, .student-nav__link.is-active i { color: var(--student-teal); }
.student-sidebar__account { align-items: center; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 8px; grid-template-columns: 30px minmax(0,1fr) auto; margin-top: auto; padding: 18px 6px 0; }
.student-sidebar__account > i { color: #7ed2ce; font-size: 1.45rem; }
.student-sidebar__account > span { display: grid; min-width: 0; }
.student-sidebar__account strong, .student-sidebar__account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-sidebar__account strong { font-size: .78rem; }
.student-sidebar__account small { color: #b7d9df; font-size: .68rem; margin-top: 2px; }
.student-sidebar__account form { margin: 0; }
.student-sidebar__account button, .student-document-actions a, .student-document-actions button { align-items: center; background: transparent; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; color: #fff; cursor: pointer; display: inline-flex; height: 36px; justify-content: center; padding: 0; width: 36px; }
.student-sidebar__account button span { display: none; }
.student-sidebar__account button:hover { background: rgba(255,255,255,.12); }
.student-workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.student-topbar { align-items: center; background: #fff; border-bottom: 1px solid var(--student-line); display: flex; justify-content: space-between; min-height: 68px; padding: 12px clamp(18px, 3vw, 42px); }
.student-topbar > div:first-child { display: grid; gap: 2px; }
.student-topbar span { color: var(--student-muted); font-size: .72rem; font-weight: 650; }
.student-topbar strong { color: var(--student-navy); font-size: .87rem; }
.student-topbar__user { align-items: center; display: flex; gap: 8px; }
.student-topbar__user i { color: var(--student-teal); font-size: 1.2rem; }
.student-topbar__user span { color: var(--student-ink); font-size: .82rem; font-weight: 700; }
.student-main { flex: 1; margin: 0 auto; max-width: 1400px; padding: 28px clamp(18px, 3vw, 42px) 42px; width: 100%; }
.student-footer { border-top: 1px solid var(--student-line); color: var(--student-muted); display: flex; font-size: .72rem; gap: 16px; justify-content: center; padding: 14px; }
.student-page { display: grid; gap: 20px; }
.student-page-heading { align-items: end; display: flex; justify-content: space-between; gap: 16px; }
.student-page-heading > div { display: grid; gap: 4px; }
.student-page-heading span, .student-section__header > div > span, .student-paper header span { color: var(--student-teal); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.student-page-heading h1 { color: var(--student-navy); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; margin: 0; }
.student-page-heading p { color: var(--student-muted); font-size: .87rem; margin: 0; }
.student-status { background: #e8f6ef; border: 1px solid #a9d9c1; border-radius: 999px; color: var(--student-green); display: inline-flex; font-size: .75rem; font-weight: 800; padding: 6px 10px; white-space: nowrap; }
.student-status--small { font-size: .68rem; padding: 4px 8px; }
.student-summary { background: #fff; border: 1px solid var(--student-line); border-radius: 8px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.student-summary--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.student-summary > div { display: grid; gap: 6px; min-width: 0; padding: 17px 20px; }
.student-summary > div + div { border-left: 1px solid var(--student-line); }
.student-summary span { color: var(--student-muted); font-size: .72rem; font-weight: 650; }
.student-summary strong { color: var(--student-navy); font-size: .94rem; overflow-wrap: anywhere; }
.student-metrics { display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.student-metrics article { background: #fff; border: 1px solid var(--student-line); border-radius: 8px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; padding: 15px; }
.student-metrics i { align-items: center; background: var(--student-soft); border-radius: 6px; color: var(--student-teal); display: flex; font-size: 1.05rem; grid-row: 1 / 3; height: 38px; justify-content: center; margin-right: 12px; width: 38px; }
.student-metrics span { color: var(--student-muted); font-size: .7rem; font-weight: 650; }
.student-metrics strong { color: var(--student-navy); font-size: 1.28rem; margin-top: 3px; }
.student-dashboard-grid { display: grid; gap: 16px; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); }
.student-section { background: #fff; border: 1px solid var(--student-line); border-radius: 8px; overflow: hidden; }
.student-section__header { align-items: center; border-bottom: 1px solid var(--student-line); display: flex; gap: 16px; justify-content: space-between; min-height: 66px; padding: 13px 18px; }
.student-section__header > div { display: grid; gap: 2px; }
.student-section__header h2 { color: var(--student-navy); font-size: 1rem; margin: 0; }
.student-section__header a { color: var(--student-blue); font-size: .75rem; font-weight: 750; text-decoration: none; }
.student-section__header a i { margin-left: 4px; }
.student-counter { color: var(--student-muted); font-size: .72rem; font-weight: 700; }
.student-list { display: grid; }
.student-list-row { align-items: center; display: grid; gap: 12px; grid-template-columns: auto minmax(0,1fr) auto; min-height: 62px; padding: 10px 18px; }
.student-list-row + .student-list-row { border-top: 1px solid var(--student-line); }
.student-list-row > div { display: grid; gap: 3px; min-width: 0; }
.student-list-row > div strong { color: var(--student-ink); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-list-row > div span { color: var(--student-muted); font-size: .7rem; }
.student-code { background: var(--student-soft); border-radius: 5px; color: var(--student-teal); font-size: .68rem; font-weight: 800; padding: 6px 7px; }
.student-grade { color: var(--student-navy); font-size: .92rem; font-weight: 800; }
.student-date { align-items: center; background: #fff7e8; border: 1px solid #f2cf8f; border-radius: 6px; color: var(--student-amber); display: grid; height: 42px; justify-items: center; width: 42px; }
.student-date strong { font-size: .85rem; line-height: 1; }
.student-date small { font-size: .55rem; text-transform: uppercase; }
.student-empty { align-items: center; color: var(--student-muted); display: flex; flex-direction: column; gap: 6px; justify-content: center; min-height: 190px; padding: 30px; text-align: center; }
.student-empty i { color: #8ab8bd; font-size: 1.7rem; }
.student-empty strong { color: var(--student-navy); font-size: .88rem; }
.student-empty span { font-size: .75rem; max-width: 420px; }
.student-empty--compact { min-height: 90px; }
.student-table-wrap { max-width: 100%; overflow-x: auto; }
.student-table { border-collapse: collapse; font-size: .76rem; width: 100%; }
.student-table th { background: #f0f7f8; color: #476778; font-size: .66rem; text-align: left; text-transform: uppercase; }
.student-table th, .student-table td { border-bottom: 1px solid var(--student-line); padding: 11px 14px; vertical-align: middle; }
.student-table tbody tr:last-child td { border-bottom: 0; }
.student-table td span:not(.student-status) { color: var(--student-muted); font-size: .68rem; }
.student-grade-inline { color: var(--student-blue); }
.student-schedule { display: grid; }
.student-schedule-row { align-items: start; display: grid; gap: 18px; grid-template-columns: 1fr 1fr 1fr 1.4fr; padding: 16px 18px; }
.student-schedule-row + .student-schedule-row { border-top: 1px solid var(--student-line); }
.student-schedule-row > div { display: grid; gap: 4px; }
.student-schedule-row span { color: var(--student-muted); font-size: .66rem; font-weight: 650; text-transform: uppercase; }
.student-schedule-row strong { color: var(--student-ink); font-size: .78rem; }
.student-schedule-row small { color: var(--student-muted); font-size: .68rem; }
.student-document-list { display: grid; gap: 12px; }
.student-document-list article { align-items: center; background: #fff; border: 1px solid var(--student-line); border-radius: 8px; display: grid; gap: 16px; grid-template-columns: 48px minmax(0,1fr) 38px; padding: 18px; }
.student-document-list article > i { align-items: center; background: var(--student-soft); border-radius: 7px; color: var(--student-teal); display: flex; font-size: 1.25rem; height: 48px; justify-content: center; width: 48px; }
.student-document-list article > div { display: grid; gap: 4px; }
.student-document-list h2 { color: var(--student-navy); font-size: .94rem; margin: 0; }
.student-document-list p { color: var(--student-muted); font-size: .75rem; margin: 0; }
.student-document-list article > div span { color: var(--student-blue); font-size: .68rem; font-weight: 750; }
.student-document-list a { align-items: center; border: 1px solid var(--student-line); border-radius: 6px; color: var(--student-blue); display: flex; height: 36px; justify-content: center; text-decoration: none; width: 36px; }
.student-document-actions { display: flex; gap: 8px; justify-content: flex-end; }
.student-document-actions a, .student-document-actions button { background: #fff; border-color: var(--student-line); color: var(--student-blue); }
.student-paper { background: #fff; border: 1px solid var(--student-line); border-radius: 6px; margin: 0 auto; max-width: 1050px; padding: clamp(24px,4vw,52px); width: 100%; }
.student-paper > header { align-items: center; border-bottom: 2px solid var(--student-navy); display: flex; gap: 18px; padding-bottom: 18px; }
.student-paper > header img { height: 70px; object-fit: contain; width: 70px; }
.student-paper > header div { display: grid; gap: 3px; }
.student-paper > header h1 { color: var(--student-navy); font-size: 1.35rem; margin: 0; }
.student-paper > header p { color: var(--student-muted); font-size: .72rem; margin: 0; }
.student-paper > h2 { color: var(--student-navy); font-size: .92rem; margin: 28px 0 10px; }
.student-paper__grid { display: grid; gap: 0; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 22px; }
.student-paper__grid div { border-bottom: 1px solid var(--student-line); display: grid; gap: 4px; padding: 12px 8px; }
.student-paper__grid span { color: var(--student-muted); font-size: .66rem; text-transform: uppercase; }
.student-paper__grid strong { color: var(--student-ink); font-size: .76rem; overflow-wrap: anywhere; }
.student-paper--letter { min-height: 850px; }
.student-declaration-text { color: #263c49; font-family: Georgia, serif; font-size: 1rem; line-height: 1.9; margin: 70px auto; max-width: 780px; text-align: justify; }
.student-paper__signature { align-items: end; display: flex; justify-content: space-between; margin-top: 90px; }
.student-paper__signature > span { color: var(--student-muted); font-size: .76rem; }
.student-paper__signature > div { border-top: 1px solid var(--student-ink); display: grid; gap: 4px; min-width: 260px; padding-top: 8px; text-align: center; }
.student-paper__signature strong { font-size: .8rem; }
.student-paper__signature small { color: var(--student-muted); font-size: .68rem; }

.student-login-body { background: #eaf2f3; color: var(--student-ink); }
.student-login-shell { background: #fff; display: grid; grid-template-columns: minmax(360px,1fr) minmax(380px,520px); min-height: 100vh; }
.student-login-intro { background-color: #16495c; background-image: url('/images/login-campus.jpeg'); background-blend-mode: multiply; background-position: center; background-size: cover; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; padding: clamp(36px,6vw,90px); }
.student-login-intro img { background: #fff; border-radius: 8px; height: 74px; margin-bottom: 28px; object-fit: contain; padding: 5px; width: 74px; }
.student-login-intro span { color: #9be0d8; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.student-login-intro h1 { font-size: clamp(2rem,4vw,3.6rem); line-height: 1.05; margin: 8px 0 14px; max-width: 650px; }
.student-login-intro p { color: #d7ecee; font-size: .95rem; line-height: 1.6; margin: 0; max-width: 540px; }
.student-login-form { align-content: center; display: grid; gap: 17px; min-width: 0; padding: clamp(30px,6vw,70px); }
.student-login-form__heading { display: grid; gap: 5px; margin-bottom: 8px; }
.student-login-form__heading > span { color: var(--student-teal); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.student-login-form__heading h2 { color: var(--student-navy); font-size: 1.55rem; margin: 0; }
.student-login-form__heading p { color: var(--student-muted); font-size: .78rem; margin: 0; }
.student-login-field { display: grid; gap: 7px; }
.student-login-field > span:first-child { color: var(--student-ink); font-size: .75rem; font-weight: 750; }
.student-login-field__control { align-items: center; border: 1px solid #bfd0d6; border-radius: 6px; display: grid; grid-template-columns: 20px 1fr; min-height: 46px; padding: 0 12px; }
.student-login-field__control:focus-within { border-color: var(--student-teal); box-shadow: 0 0 0 3px rgba(22,143,145,.12); }
.student-login-field__control i { color: var(--student-teal); }
.student-login-field__control input { border: 0; color: var(--student-ink); font-size: .82rem; height: 42px; min-width: 0; outline: 0; padding: 0 8px; width: 100%; }
.student-login-field small { color: var(--student-red); font-size: .68rem; }
.student-check { align-items: center; color: var(--student-muted); display: flex; font-size: .73rem; gap: 8px; }
.student-check input { accent-color: var(--student-teal); height: 16px; width: 16px; }
.student-primary-button { align-items: center; background: var(--student-blue); border: 0; border-radius: 6px; color: #fff; cursor: pointer; display: flex; font-size: .82rem; font-weight: 750; gap: 8px; justify-content: center; min-height: 46px; padding: 10px 16px; }
.student-primary-button:hover { background: #005985; }
.student-secondary-link { color: var(--student-blue); display: inline-flex; font-size: .73rem; font-weight: 700; gap: 7px; justify-content: center; text-decoration: none; }
.student-login-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.student-login-form--activation { gap: 13px; padding: clamp(24px, 4vw, 52px); }
.student-login-fields-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-alert { border-radius: 6px; font-size: .73rem; padding: 10px 12px; }
.student-alert:empty { display: none; }
.student-alert--error { background: #fff0ee; border: 1px solid #efb7b0; color: var(--student-red); }
.student-alert--success { background: #e8f6ef; border: 1px solid #a9d9c1; color: #0b6843; }

@media (max-width: 980px) {
    .student-app { grid-template-columns: 1fr; }
    .student-sidebar { height: auto; min-height: 0; padding: 12px 16px; position: static; }
    .student-brand { padding: 0 0 12px; }
    .student-brand img { height: 42px; width: 42px; }
    .student-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .student-nav__link { flex: 0 0 auto; min-height: 38px; padding: 7px 10px; }
    .student-sidebar__account { display: none; }
    .student-topbar { min-height: 58px; }
    .student-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .student-topbar__user span { display: none; }
    .student-main { padding: 20px 12px 32px; }
    .student-page-heading { align-items: start; flex-direction: column; }
    .student-summary, .student-summary--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .student-summary > div + div { border-left: 0; }
    .student-summary > div:nth-child(even) { border-left: 1px solid var(--student-line); }
    .student-summary > div:nth-child(n+3) { border-top: 1px solid var(--student-line); }
    .student-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .student-schedule-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .student-paper__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .student-login-shell { grid-template-columns: 1fr; }
    .student-login-intro { min-height: 240px; padding: 26px; }
    .student-login-intro img { height: 54px; margin-bottom: 18px; width: 54px; }
    .student-login-intro h1 { font-size: 2rem; }
    .student-login-form { padding: 32px 24px; }
    .student-login-fields-row { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .student-nav__link span { display: none; }
    .student-nav__link i { text-align: center; width: 20px; }
    .student-summary, .student-summary--three, .student-metrics { grid-template-columns: 1fr; }
    .student-summary > div:nth-child(even) { border-left: 0; }
    .student-summary > div + div { border-top: 1px solid var(--student-line); }
    .student-list-row { padding: 10px 12px; }
    .student-schedule-row, .student-paper__grid { grid-template-columns: 1fr; }
    .student-document-list article { grid-template-columns: 42px minmax(0,1fr) 34px; gap: 10px; padding: 14px; }
    .student-document-list article > i { height: 42px; width: 42px; }
    .student-paper { padding: 20px 14px; }
    .student-paper > header img { height: 52px; width: 52px; }
    .student-paper > header h1 { font-size: 1.05rem; }
    .student-paper__signature { align-items: stretch; flex-direction: column; gap: 70px; }
}

@media print {
    .student-sidebar, .student-topbar, .student-footer, .student-document-actions { display: none !important; }
    .student-app { display: block; }
    .student-main { max-width: none; padding: 0; }
    .student-paper { border: 0; max-width: none; padding: 0; }
    .student-document-page { display: block; }
    .student-table-wrap { overflow: visible; }
}
