@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: "Cairo";
    src: url("fonts/Cairo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("fonts/Cairo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("fonts/Cairo-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --school-navy-950: #09233a;
    --school-navy-900: #103451;
    --school-navy-800: #174868;
    --school-blue-700: #1769aa;
    --school-blue-600: #1d7fc1;
    --school-blue-100: #e8f3fb;
    --school-cyan-500: #1da7a5;
    --school-green-500: #28a678;
    --school-orange-500: #ed8d39;
    --school-violet-500: #7c68d6;
    --school-red-500: #db5b62;
    --school-ink: #162334;
    --school-muted: #6d7b8b;
    --school-line: #e2e8ef;
    --school-bg: #f4f7fa;
    --school-card: #ffffff;
    --school-shadow: 0 18px 50px rgba(20, 52, 81, .10);
    --school-shadow-soft: 0 8px 24px rgba(20, 52, 81, .08);
    --school-radius-xl: 24px;
    --school-radius-lg: 18px;
    --school-radius-md: 13px;
    --school-sidebar-width: 286px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--school-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0 !important;
    background: var(--school-bg) !important;
    color: var(--school-ink);
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.modern-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    flex: 0 0 auto;
}

/* Login */
.modern-login-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(29, 167, 165, .16), transparent 31%),
        radial-gradient(circle at 90% 70%, rgba(29, 127, 193, .16), transparent 31%),
        linear-gradient(135deg, #f6fbff 0%, #edf4f8 55%, #f9fbfd 100%) !important;
}

.login-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr);
    gap: 34px;
    align-items: stretch;
}

.login-showcase,
.login-panel {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--school-shadow);
}

.login-showcase {
    min-height: 660px;
    position: relative;
    padding: 58px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(9, 35, 58, .96), rgba(23, 72, 104, .92)),
        url("../images/header.png") center / cover no-repeat;
    isolation: isolate;
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: .52;
}

.login-showcase::before {
    width: 310px;
    height: 310px;
    top: -105px;
    left: -90px;
    background: linear-gradient(135deg, rgba(29, 167, 165, .8), rgba(29, 127, 193, .25));
}

.login-showcase::after {
    width: 410px;
    height: 410px;
    bottom: -240px;
    right: -130px;
    border: 55px solid rgba(255, 255, 255, .07);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.login-brand__mark,
.modern-sidebar__logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--school-cyan-500), #65d4cc);
    box-shadow: 0 12px 25px rgba(11, 37, 59, .25);
}

.login-brand__mark .modern-icon,
.modern-sidebar__logo .modern-icon {
    width: 30px;
    height: 30px;
}

.login-brand strong {
    display: block;
    font-size: 21px;
}

.login-brand small {
    display: block;
    color: rgba(255, 255, 255, .67);
    font-size: 12px;
}

.login-copy {
    max-width: 600px;
    margin-top: 80px;
}

.login-copy__eyebrow,
.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--school-blue-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.login-copy__eyebrow {
    color: #8de2da;
}

.login-copy h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.35;
    letter-spacing: -.03em;
}

.login-copy p {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 16px;
}

.login-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.login-feature {
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
}

.login-feature .modern-icon {
    margin-bottom: 12px;
    color: #8de2da;
}

.login-feature strong {
    display: block;
    font-size: 13px;
}

.login-feature small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
}

.login-panel {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .75);
    backdrop-filter: blur(16px);
}

.login-panel__top {
    margin-bottom: 28px;
}

.login-panel__top h2 {
    margin: 0;
    color: var(--school-navy-950);
    font-size: 30px;
}

.login-panel__top p {
    margin: 8px 0 0;
    color: var(--school-muted);
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #34475a;
    font-size: 13px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap > .modern-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    color: #8291a1;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input,
.input-wrap select {
    width: 100%;
    min-height: 52px;
    padding: 11px 48px 11px 15px;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    outline: none;
    color: var(--school-ink);
    background: #f9fbfd;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-wrap input:focus,
.input-wrap select:focus {
    border-color: var(--school-blue-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 127, 193, .10);
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #718193;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--school-blue-700);
    background: var(--school-blue-100);
}

.password-toggle .modern-icon {
    width: 19px;
    height: 19px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.login-options a {
    color: var(--school-blue-700);
    font-weight: 700;
    text-decoration: none;
}

.primary-button,
.login-submit {
    min-height: 50px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--school-blue-700), var(--school-blue-600));
    box-shadow: 0 12px 26px rgba(23, 105, 170, .25);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.primary-button:hover,
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(23, 105, 170, .30);
}

.primary-button--full {
    width: 100%;
}

.login-submit:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.button-spinner {
    width: 18px;
    height: 18px;
    display: none;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.login-submit.is-loading .button-spinner {
    display: inline-block;
}

.login-submit.is-loading .button-label {
    opacity: .75;
}

.login-message {
    min-height: 0;
    padding: 0;
    border-radius: 13px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: .2s ease;
}

.login-message.is-visible {
    min-height: 46px;
    padding: 11px 14px;
    opacity: 1;
    transform: translateY(0);
}

.login-message.is-error {
    color: #9b3238;
    background: #fff0f1;
    border: 1px solid #ffd4d7;
}

.login-message.is-info {
    color: #145d75;
    background: #ecf8fc;
    border: 1px solid #c7eaf4;
}

.login-footnote {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--school-line);
    color: #8794a3;
    text-align: center;
    font-size: 11px;
}

/* Modern dashboard */
.modern-dashboard-page {
    overflow-x: hidden;
}

.modern-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--school-sidebar-width) minmax(0, 1fr);
}

.modern-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 22px 17px;
    color: rgba(255, 255, 255, .82);
    background:
        radial-gradient(circle at 0 0, rgba(29, 167, 165, .20), transparent 28%),
        linear-gradient(180deg, var(--school-navy-950), #0d2d47 60%, #0a2439);
    box-shadow: -12px 0 35px rgba(9, 35, 58, .08);
}

.modern-sidebar--embedded {
    width: 100%;
    min-height: auto;
    position: relative;
    top: auto;
    padding: 14px 10px;
    border-radius: 0;
    box-shadow: none;
}

.modern-sidebar__brand {
    min-height: 66px;
    padding: 0 7px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modern-sidebar__logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
}

.modern-sidebar__logo .modern-icon {
    width: 26px;
    height: 26px;
}

.modern-sidebar__brand strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.modern-sidebar__brand small {
    display: block;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
}

.modern-nav {
    margin-top: 18px;
}

.modern-nav__group {
    margin-bottom: 7px;
}

.modern-nav__group-button {
    width: 100%;
    min-height: 45px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, .78);
    background: transparent;
    cursor: pointer;
    text-align: right;
    transition: background .2s ease, color .2s ease;
}

.modern-nav__group-button:hover,
.modern-nav__group.is-open > .modern-nav__group-button {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.modern-nav__group-button > span {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    font-weight: 700;
}

.modern-nav__group-button .modern-icon {
    width: 19px;
    height: 19px;
    color: #75d8ce;
}

.modern-nav__arrow {
    width: 15px !important;
    height: 15px !important;
    color: rgba(255, 255, 255, .43) !important;
    transform: rotate(180deg);
    transition: transform .2s ease;
}

.modern-nav__group.is-open .modern-nav__arrow {
    transform: rotate(90deg);
}

.modern-nav__items {
    max-height: 0;
    padding: 0 23px 0 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
}

.modern-nav__group.is-open .modern-nav__items {
    max-height: 520px;
    padding-top: 5px;
    padding-bottom: 7px;
    opacity: 1;
}

.modern-nav__link {
    min-height: 37px;
    position: relative;
    padding: 8px 17px 8px 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .55) !important;
    font-size: 11px;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.modern-nav__link:hover,
.modern-nav__link.is-active {
    color: #fff !important;
    background: rgba(29, 167, 165, .16);
    transform: translateX(-2px);
}

.modern-nav__link.is-active::before {
    content: "";
    width: 3px;
    position: absolute;
    top: 8px;
    right: -1px;
    bottom: 8px;
    border-radius: 3px;
    background: #62d4c9;
}

.modern-nav__dot {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
}

.modern-sidebar__footer {
    margin-top: 18px;
    padding: 14px 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #50d49f;
    box-shadow: 0 0 0 4px rgba(80, 212, 159, .12);
}

.modern-app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.modern-topbar {
    min-height: 84px;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(219, 228, 237, .8);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(15px);
}

.modern-topbar__start,
.modern-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-topbar h1 {
    margin: 1px 0 0;
    color: var(--school-navy-950);
    font-size: 20px;
    line-height: 1.3;
}

.modern-breadcrumb {
    color: #98a5b2;
    font-size: 10px;
}

.icon-button {
    width: 43px;
    height: 43px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--school-line);
    border-radius: 13px;
    color: #506174;
    background: #fff;
    box-shadow: 0 4px 14px rgba(19, 52, 82, .05);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.icon-button:hover {
    color: var(--school-blue-700);
    border-color: #bdd7e9;
    transform: translateY(-1px);
}

.icon-button .modern-icon {
    width: 19px;
    height: 19px;
}

.notification-badge {
    width: 17px;
    height: 17px;
    position: absolute;
    top: -5px;
    left: -5px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--school-red-500);
    font-size: 8px;
    font-weight: 700;
}

.modern-menu-toggle {
    display: none;
}

.modern-user-chip {
    min-width: 190px;
    padding: 6px 8px 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--school-line);
    border-radius: 14px;
    background: #fff;
}

.modern-avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--school-blue-700);
    background: var(--school-blue-100);
}

.modern-avatar .modern-icon {
    width: 21px;
    height: 21px;
}

.modern-user-chip strong,
.modern-user-chip small {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-user-chip strong {
    color: #26384a;
    font-size: 11px;
}

.modern-user-chip small {
    color: #8b99a7;
    font-size: 9px;
}

.modern-content {
    width: min(100%, 1540px);
    padding: 28px;
    margin: 0 auto;
}

.welcome-card {
    min-height: 220px;
    position: relative;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    border-radius: var(--school-radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 18% 110%, rgba(29, 167, 165, .38), transparent 37%),
        linear-gradient(135deg, var(--school-navy-950), var(--school-navy-800));
    box-shadow: var(--school-shadow);
}

.welcome-card::after {
    content: "";
    width: 310px;
    height: 310px;
    position: absolute;
    top: -176px;
    left: -70px;
    border: 44px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.welcome-card .eyebrow {
    color: #7de0d5;
}

.welcome-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.4;
}

.welcome-card p {
    max-width: 580px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.welcome-card__meta {
    margin-top: 21px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.welcome-card__meta span {
    min-height: 33px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .06);
    font-size: 10px;
}

.welcome-card__meta .modern-icon {
    width: 15px;
    height: 15px;
    color: #73d8cf;
}

.welcome-card__art {
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 42px;
    color: #7de0d5;
    background: rgba(255, 255, 255, .06);
    transform: rotate(-5deg);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, .04);
}

.welcome-card__art .modern-icon {
    width: 82px;
    height: 82px;
    stroke-width: 1.2;
}

.stats-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    min-height: 140px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(221, 229, 237, .9);
    border-radius: var(--school-radius-lg);
    background: var(--school-card);
    box-shadow: var(--school-shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(20, 52, 81, .12);
}

.stat-card__icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
}

.stat-card__icon .modern-icon {
    width: 26px;
    height: 26px;
}

.stat-card--blue .stat-card__icon {
    color: var(--school-blue-700);
    background: #e9f4fc;
}

.stat-card--green .stat-card__icon {
    color: var(--school-green-500);
    background: #e8f8f2;
}

.stat-card--violet .stat-card__icon {
    color: var(--school-violet-500);
    background: #f0edfc;
}

.stat-card--orange .stat-card__icon {
    color: var(--school-orange-500);
    background: #fff1e5;
}

.stat-card__label,
.stat-card__note {
    display: block;
}

.stat-card__label {
    color: #6d7b8b;
    font-size: 10px;
    font-weight: 600;
}

.stat-card__value {
    display: block;
    margin-top: 3px;
    color: var(--school-navy-950);
    font-size: 29px;
    line-height: 1.2;
}

.stat-card__note {
    margin-top: 6px;
    color: #a0aab5;
    font-size: 9px;
}

.dashboard-grid {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.dashboard-grid--main {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
}

.dashboard-grid--lower {
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
}

.panel {
    min-width: 0;
    padding: 23px;
    border: 1px solid rgba(221, 229, 237, .9);
    border-radius: var(--school-radius-lg);
    background: var(--school-card);
    box-shadow: var(--school-shadow-soft);
}

.panel__header {
    min-height: 43px;
    margin-bottom: 19px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.panel__header h3 {
    margin: 0;
    color: var(--school-navy-950);
    font-size: 17px;
}

.panel__header .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
}

.panel__header > a {
    color: var(--school-blue-700);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.quick-action {
    min-height: 87px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5ebf1;
    border-radius: 14px;
    color: var(--school-ink) !important;
    background: #fbfcfd;
    text-decoration: none !important;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.quick-action:hover {
    border-color: #bed8e8;
    background: #f5fafe;
    transform: translateY(-2px);
}

.quick-action__icon,
.activity-item__icon,
.assignment-item__icon,
.marks-item__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--school-blue-700);
    background: var(--school-blue-100);
}

.quick-action__icon .modern-icon,
.activity-item__icon .modern-icon,
.assignment-item__icon .modern-icon,
.marks-item__icon .modern-icon {
    width: 20px;
    height: 20px;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    color: #2b3b4d;
    font-size: 11px;
}

.quick-action small {
    margin-top: 3px;
    color: #929eaa;
    font-size: 9px;
}

.quick-action__arrow {
    width: 15px;
    height: 15px;
    margin-right: auto;
    color: #9eabb8;
}

.bar-list,
.activity-list,
.assignment-list,
.marks-list,
.system-list {
    display: grid;
    gap: 12px;
}

.bar-list__item > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #506174;
    font-size: 10px;
}

.bar-list__item strong {
    color: var(--school-navy-950);
}

.bar-track {
    height: 8px;
    margin-top: 7px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.bar-track i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--school-blue-700), var(--school-cyan-500));
    transform-origin: right;
    animation: growBar .75s ease both;
}

.activity-item,
.assignment-item,
.marks-item {
    min-height: 58px;
    padding: 9px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #edf1f4;
}

.activity-item:last-child,
.assignment-item:last-child,
.marks-item:last-child {
    border-bottom: 0;
}

.activity-item__icon,
.assignment-item__icon,
.marks-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.activity-item strong,
.activity-item small,
.assignment-item strong,
.assignment-item small,
.marks-item strong,
.marks-item small {
    display: block;
}

.activity-item strong,
.assignment-item strong,
.marks-item strong {
    color: #34475a;
    font-size: 10px;
}

.activity-item small,
.assignment-item small,
.marks-item small {
    margin-top: 2px;
    color: #96a2ae;
    font-size: 8px;
}

.activity-item time {
    margin-right: auto;
    color: #a0abb5;
    font-size: 8px;
    white-space: nowrap;
}

.marks-item b {
    min-width: 44px;
    margin-right: auto;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--school-blue-700);
    background: var(--school-blue-100);
    text-align: center;
    font-size: 11px;
}

.system-card {
    background:
        radial-gradient(circle at 90% 0, rgba(29, 167, 165, .08), transparent 33%),
        #fff;
}

.system-list > div {
    min-height: 37px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed #e4e9ee;
    font-size: 10px;
}

.system-list > div:last-child {
    border-bottom: 0;
}

.system-list span {
    color: #7f8c99;
}

.system-list strong {
    color: #314356;
}

.status-good {
    color: var(--school-green-500) !important;
}

.system-card .primary-button {
    margin-top: 19px;
    min-height: 43px;
    font-size: 10px;
}

.empty-state {
    min-height: 110px;
    padding: 22px;
    display: grid;
    place-items: center;
    border: 1px dashed #d8e0e8;
    border-radius: 14px;
    color: #94a0ac;
    background: #fafcfd;
    text-align: center;
    font-size: 11px;
}

.modern-dashboard-footer {
    margin-top: auto;
    padding: 22px 28px 28px;
    color: #94a0ac;
    text-align: center;
    font-size: 9px;
}

.reveal-card {
    opacity: 0;
    transform: translateY(13px);
}

body.is-ready .reveal-card {
    animation: revealCard .55s ease forwards;
}

body.is-ready .stats-grid .stat-card {
    animation: revealCard .5s ease both;
}

body.is-ready .stats-grid .stat-card:nth-child(2) { animation-delay: .06s; }
body.is-ready .stats-grid .stat-card:nth-child(3) { animation-delay: .12s; }
body.is-ready .stats-grid .stat-card:nth-child(4) { animation-delay: .18s; }

.sidebar-backdrop {
    display: none;
}

/* Header/footer used by legacy pages */
.legacy-app-header {
    width: 100%;
    min-height: 104px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 16% 0, rgba(29, 167, 165, .25), transparent 30%),
        linear-gradient(135deg, var(--school-navy-950), var(--school-navy-800));
}

.legacy-app-header__brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.legacy-app-header__mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--school-cyan-500), #5ed5cb);
}

.legacy-app-header__mark .modern-icon {
    width: 28px;
    height: 28px;
}

.legacy-app-header strong,
.legacy-app-header small {
    display: block;
}

.legacy-app-header strong {
    font-size: 19px;
}

.legacy-app-header small {
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
}

.legacy-app-header__links {
    display: flex;
    gap: 8px;
}

.legacy-app-header__links a {
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    color: rgba(255, 255, 255, .8) !important;
    background: rgba(255, 255, 255, .06);
    text-decoration: none !important;
    font-size: 10px;
}

.legacy-app-footer {
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .65);
    background: var(--school-navy-950);
    text-align: center;
    font-size: 10px;
}

/* Legacy interface enhancement */
body:not(.modern-dashboard-page):not(.modern-login-page) {
    padding: 18px 0;
    background:
        radial-gradient(circle at 10% 0, rgba(29, 127, 193, .08), transparent 27%),
        var(--school-bg) !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) > table {
    width: min(1420px, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    height: auto !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 22px;
    background: #fff !important;
    box-shadow: var(--school-shadow);
}

body:not(.modern-dashboard-page):not(.modern-login-page) table[width="1150"],
body:not(.modern-dashboard-page):not(.modern-login-page) table[width="1350"],
body:not(.modern-dashboard-page):not(.modern-login-page) table[width="1300"],
body:not(.modern-dashboard-page):not(.modern-login-page) table[width="900"] {
    max-width: 100% !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) td {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) font {
    font-family: inherit !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) input[type="text"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="password"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="email"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="number"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="date"],
body:not(.modern-dashboard-page):not(.modern-login-page) select,
body:not(.modern-dashboard-page):not(.modern-login-page) textarea,
.text_input_style,
.text_input_style-main {
    min-height: 40px !important;
    padding: 8px 11px !important;
    border: 1px solid #d9e2ea !important;
    border-radius: 10px !important;
    outline: none !important;
    color: #293a4c !important;
    background-color: #fff !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) input:focus,
body:not(.modern-dashboard-page):not(.modern-login-page) select:focus,
body:not(.modern-dashboard-page):not(.modern-login-page) textarea:focus {
    border-color: var(--school-blue-600) !important;
    box-shadow: 0 0 0 3px rgba(29, 127, 193, .10) !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) input[type="submit"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="button"],
body:not(.modern-dashboard-page):not(.modern-login-page) button,
.button {
    min-height: 39px !important;
    padding: 7px 15px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--school-blue-700), var(--school-blue-600)) !important;
    box-shadow: 0 7px 16px rgba(23, 105, 170, .18) !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) a {
    transition: color .2s ease, opacity .2s ease;
}

body:not(.modern-dashboard-page):not(.modern-login-page) td[bgcolor="#2E86C1"],
body:not(.modern-dashboard-page):not(.modern-login-page) td[bgcolor="#006699"],
body:not(.modern-dashboard-page):not(.modern-login-page) .table_caption_bg {
    color: #fff !important;
    background: linear-gradient(135deg, var(--school-navy-800), var(--school-blue-700)) !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) table[bgcolor="#ffffff"],
body:not(.modern-dashboard-page):not(.modern-login-page) table[bgcolor="white"] {
    background: #fff !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) .message,
body:not(.modern-dashboard-page):not(.modern-login-page) .message2 {
    color: var(--school-blue-700) !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) .font3 {
    color: #415365 !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: 10px !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) .links5,
body:not(.modern-dashboard-page):not(.modern-login-page) .links {
    color: var(--school-blue-700) !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) img {
    max-width: 100%;
}

/* Animations */
@keyframes revealCard {
    from { opacity: 0; transform: translateY(13px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes growBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
    .login-shell {
        grid-template-columns: 1fr 410px;
    }

    .login-showcase {
        padding: 42px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid--main,
    .dashboard-grid--lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .login-shell {
        width: min(650px, calc(100% - 28px));
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 420px;
    }

    .login-copy {
        margin-top: 45px;
    }

    .modern-app-shell {
        grid-template-columns: 1fr;
    }

    .modern-sidebar:not(.modern-sidebar--embedded) {
        width: min(var(--school-sidebar-width), 86vw);
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform .28s ease;
    }

    body.sidebar-open .modern-sidebar:not(.modern-sidebar--embedded) {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        background: rgba(8, 28, 45, .44);
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .modern-menu-toggle {
        display: inline-grid;
    }
}

@media (max-width: 680px) {
    .login-shell {
        padding: 14px 0;
    }

    .login-showcase,
    .login-panel {
        border-radius: 22px;
    }

    .login-showcase {
        min-height: 380px;
        padding: 28px;
    }

    .login-copy h1 {
        font-size: 32px;
    }

    .login-features {
        grid-template-columns: 1fr;
    }

    .login-feature {
        min-height: auto;
    }

    .login-panel {
        padding: 30px 24px;
    }

    .modern-topbar {
        padding: 12px 16px;
    }

    .modern-topbar__actions > .icon-button {
        display: none;
    }

    .modern-user-chip {
        min-width: 0;
        padding-left: 8px;
    }

    .modern-user-chip > span:last-child {
        display: none;
    }

    .modern-content {
        padding: 16px;
    }

    .welcome-card {
        min-height: 260px;
        padding: 28px 24px;
        align-items: flex-start;
    }

    .welcome-card__art {
        width: 88px;
        height: 88px;
        position: absolute;
        left: 20px;
        bottom: 20px;
        border-radius: 25px;
        opacity: .75;
    }

    .welcome-card__art .modern-icon {
        width: 49px;
        height: 49px;
    }

    .stats-grid,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 112px;
    }

    .panel {
        padding: 18px;
    }

    .legacy-app-header {
        padding: 16px;
    }

    .legacy-app-header__links {
        display: none;
    }

    body:not(.modern-dashboard-page):not(.modern-login-page) > table {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   SADA PROFESSIONAL UI — 2026 visual system
   ========================================================= */
:root {
    --school-navy-950: #081b2d;
    --school-navy-900: #0b233a;
    --school-navy-800: #123b5b;
    --school-blue-700: #275fcf;
    --school-blue-600: #3778ea;
    --school-blue-100: #edf4ff;
    --school-cyan-500: #13b8a6;
    --school-green-500: #18a979;
    --school-orange-500: #f0a63b;
    --school-violet-500: #7766d8;
    --school-red-500: #e35f69;
    --school-gold: #f2b84b;
    --school-ink: #17283a;
    --school-muted: #627589;
    --school-line: #dce6ef;
    --school-bg: #f3f7fb;
    --school-card: #ffffff;
    --school-shadow: 0 24px 70px rgba(8, 31, 52, .12);
    --school-shadow-soft: 0 12px 34px rgba(8, 31, 52, .08);
    --school-radius-xl: 28px;
    --school-radius-lg: 20px;
    --school-radius-md: 14px;
    --school-sidebar-width: 310px;
}

body {
    font-size: 16px;
    line-height: 1.75;
}

.modern-icon { width: 23px; height: 23px; }

/* Brand identity */
.login-brand__mark,
.modern-sidebar__logo,
.legacy-app-header__mark {
    overflow: hidden;
    padding: 0;
    background: transparent !important;
    box-shadow: 0 13px 30px rgba(4, 20, 35, .25);
}
.login-brand__mark img,
.modern-sidebar__logo img,
.legacy-app-header__mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Login refinement */
.modern-login-page {
    background:
        radial-gradient(circle at 12% 12%, rgba(19, 184, 166, .14), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(55, 120, 234, .13), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef5fb 54%, #fafcff 100%) !important;
}
.login-shell { width: min(1280px, calc(100% - 48px)); gap: 40px; }
.login-showcase {
    padding: 64px;
    background:
        linear-gradient(145deg, rgba(8, 27, 45, .97), rgba(18, 59, 91, .94)),
        url("../images/header.png") center / cover no-repeat;
}
.login-brand__mark { width: 62px; height: 62px; border-radius: 19px; }
.login-brand strong { font-size: 24px; }
.login-brand small { font-size: 14px; }
.login-copy__eyebrow, .eyebrow { font-size: 13px; }
.login-copy h1 { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.32; }
.login-copy p { font-size: 18px; line-height: 1.9; }
.login-feature strong { font-size: 15px; }
.login-feature small { font-size: 13px; line-height: 1.7; }
.login-panel { padding: 54px; border-radius: 32px; }
.login-panel__top h2 { font-size: 32px; }
.login-panel__top p { font-size: 15px; }
.form-field label { margin-bottom: 9px; font-size: 14px; font-weight: 700; color: #294258; }
.input-wrap input,
.input-wrap select {
    min-height: 56px;
    padding: 12px 48px 12px 46px;
    border-radius: 15px;
    font-size: 15px;
    background: #f9fbfd;
}
.input-wrap:focus-within { transform: translateY(-1px); }
.login-options { font-size: 13px; }
.login-submit { min-height: 58px; border-radius: 16px; font-size: 16px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; }
.login-footnote img { width: 178px; height: auto; }

/* Navigation */
.modern-sidebar {
    padding: 24px 18px;
    background:
        radial-gradient(circle at 0 0, rgba(19, 184, 166, .24), transparent 28%),
        radial-gradient(circle at 100% 75%, rgba(55, 120, 234, .17), transparent 30%),
        linear-gradient(180deg, #081b2d 0%, #0b2942 58%, #071827 100%);
    box-shadow: -14px 0 45px rgba(8, 27, 45, .10);
}
.modern-sidebar__brand { min-height: 78px; gap: 14px; padding-bottom: 22px; }
.modern-sidebar__logo { width: 54px; height: 54px; border-radius: 17px; }
.modern-sidebar__brand strong { font-size: 20px; letter-spacing: -.02em; }
.modern-sidebar__brand small { font-size: 12px; color: rgba(255,255,255,.58); }
.modern-nav { margin-top: 21px; }
.modern-nav__group { margin-bottom: 9px; }
.modern-nav__group-button { min-height: 50px; padding: 11px 13px; border-radius: 14px; }
.modern-nav__group-button > span { gap: 12px; font-size: 14px; }
.modern-nav__group-button .modern-icon { width: 21px; height: 21px; color: #62d8cc; }
.modern-nav__group-button:hover,
.modern-nav__group.is-open > .modern-nav__group-button {
    background: linear-gradient(90deg, rgba(19, 184, 166, .15), rgba(55, 120, 234, .08));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}
.modern-nav__items { padding-right: 27px; }
.modern-nav__link { min-height: 42px; padding: 9px 18px 9px 10px; font-size: 13px; border-radius: 11px; }
.modern-nav__link:hover,
.modern-nav__link.is-active { background: linear-gradient(90deg, rgba(19, 184, 166, .22), rgba(55, 120, 234, .10)); }
.modern-nav__link.is-active::before { width: 4px; background: linear-gradient(#61e0d3, #f2b84b); }
.modern-sidebar__footer { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; }
.modern-sidebar__footer > span { display: flex; align-items: center; gap: 9px; }
.modern-sidebar__footer small { color: rgba(255,255,255,.34); font-size: 10px; }

/* Top bar */
.modern-topbar { min-height: 94px; padding: 16px 32px; background: rgba(255,255,255,.92); }
.modern-topbar h1 { font-size: 24px; }
.modern-breadcrumb { font-size: 12px; }
.icon-button { width: 47px; height: 47px; border-radius: 14px; }
.modern-avatar { width: 45px; height: 45px; }
.modern-user-chip strong { font-size: 13px; }
.modern-user-chip small { font-size: 11px; }
.topbar-search {
    width: min(330px, 27vw);
    height: 47px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--school-line);
    border-radius: 14px;
    background: #f8fafc;
    transition: .2s ease;
}
.topbar-search:focus-within { border-color: #9bbdf4; box-shadow: 0 0 0 4px rgba(55,120,234,.09); background: #fff; }
.topbar-search .modern-icon { width: 19px; color: #8394a5; }
.topbar-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--school-ink); font-size: 13px; }
.topbar-search button { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; color: #fff; background: var(--school-navy-800); font-size: 11px; cursor: pointer; }
.topbar-report-button { color: var(--school-cyan-500); }

/* Dashboard scale and cards */
.modern-content { padding: 30px 32px 42px; }
.welcome-card { padding: 34px 38px; border-radius: 26px; }
.welcome-card h2 { font-size: 30px; }
.welcome-card p { font-size: 15px; }
.welcome-card__meta { font-size: 12px; }
.stats-grid { gap: 18px; }
.stat-card { min-height: 146px; padding: 23px; border-radius: 20px; }
.stat-card__label { font-size: 13px; }
.stat-card__value { font-size: 34px; }
.stat-card__note { font-size: 11px; }
.stat-card__icon { width: 54px; height: 54px; border-radius: 16px; }
.panel { padding: 27px; border-radius: 21px; }
.panel__header h3 { font-size: 20px; }
.panel__header .eyebrow { font-size: 11px; }
.panel__header > a { font-size: 12px; }
.quick-action { min-height: 98px; padding: 16px; border-radius: 16px; }
.quick-action strong { font-size: 14px; }
.quick-action small { font-size: 11px; }
.quick-action__icon { width: 48px; height: 48px; border-radius: 14px; }
.bar-list__item > div { font-size: 13px; }
.activity-item strong, .assignment-item strong, .marks-item strong { font-size: 13px; }
.activity-item small, .assignment-item small, .marks-item small { font-size: 11px; }
.activity-item time { font-size: 10px; }
.system-list > div { min-height: 44px; font-size: 13px; }
.empty-state { font-size: 13px; }
.modern-dashboard-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; }
.modern-dashboard-footer strong { color: #6a8194; }

/* Live insight strip */
.insight-strip {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.insight-item {
    min-height: 82px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #e1e9f0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(8,31,52,.055);
    color: var(--school-ink) !important;
    text-decoration: none !important;
    transition: .2s ease;
}
.insight-item:hover { transform: translateY(-3px); box-shadow: var(--school-shadow-soft); }
.insight-item > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; }
.insight-item small, .insight-item strong { display: block; }
.insight-item small { color: #75889a; font-size: 11px; }
.insight-item strong { margin-top: 2px; font-size: 15px; }
.insight-item--danger > span { color: #d94c5a; background: #fff0f2; }
.insight-item--warning > span { color: #c98213; background: #fff7e7; }
.insight-item--violet > span { color: #6855c9; background: #f2efff; }
.insight-item--blue > span { color: #2c6cdb; background: #edf4ff; }

/* Legacy pages and forms */
.legacy-app-header { min-height: 112px; padding: 20px 30px; }
.legacy-app-header__mark { width: 58px; height: 58px; border-radius: 18px; }
.legacy-app-header strong { font-size: 22px; }
.legacy-app-header small { font-size: 12px; }
.legacy-app-header__links a { min-height: 43px; padding: 9px 15px; font-size: 12px; }
.legacy-app-footer { font-size: 12px; }
body:not(.modern-dashboard-page):not(.modern-login-page) { font-size: 14px; }
body:not(.modern-dashboard-page):not(.modern-login-page) > table { border-radius: 24px; }
body:not(.modern-dashboard-page):not(.modern-login-page) td { padding-top: 6px; padding-bottom: 6px; font-size: 14px !important; }
body:not(.modern-dashboard-page):not(.modern-login-page) font { font-size: 13px !important; }
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="text"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="password"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="email"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="number"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="date"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="search"],
body:not(.modern-dashboard-page):not(.modern-login-page) select,
body:not(.modern-dashboard-page):not(.modern-login-page) textarea,
.text_input_style,
.text_input_style-main {
    min-height: 49px !important;
    padding: 10px 14px !important;
    border: 1px solid #cfdae5 !important;
    border-radius: 13px !important;
    color: #21364a !important;
    background: #f9fbfd !important;
    font-size: 14px !important;
    box-shadow: inset 0 1px 2px rgba(8,31,52,.025);
}
body:not(.modern-dashboard-page):not(.modern-login-page) textarea { min-height: 110px !important; resize: vertical; }
body:not(.modern-dashboard-page):not(.modern-login-page) input:focus,
body:not(.modern-dashboard-page):not(.modern-login-page) select:focus,
body:not(.modern-dashboard-page):not(.modern-login-page) textarea:focus {
    background: #fff !important;
    border-color: #6c9bed !important;
    box-shadow: 0 0 0 4px rgba(55,120,234,.11) !important;
}
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="submit"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="button"],
body:not(.modern-dashboard-page):not(.modern-login-page) button,
.button {
    min-height: 46px !important;
    padding: 9px 18px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #1f55c5, #3778ea) !important;
    font-size: 13px !important;
}
body:not(.modern-dashboard-page):not(.modern-login-page) tr:nth-child(even) td:not([bgcolor]) { background-color: #f8fafc; }
body:not(.modern-dashboard-page):not(.modern-login-page) td[bgcolor="#2E86C1"],
body:not(.modern-dashboard-page):not(.modern-login-page) td[bgcolor="#006699"],
body:not(.modern-dashboard-page):not(.modern-login-page) .table_caption_bg {
    padding: 14px !important;
    background: linear-gradient(135deg, #0b2942, #275fcf) !important;
    font-size: 15px !important;
}
body:not(.modern-dashboard-page):not(.modern-login-page) .font3 { font-size: 13px !important; }

/* Reports center */
.reports-hero {
    min-height: 190px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 8% 10%, rgba(19,184,166,.34), transparent 27%),
        radial-gradient(circle at 92% 110%, rgba(242,184,75,.20), transparent 30%),
        linear-gradient(125deg, #081b2d, #123b5b 70%, #174d6f);
    box-shadow: var(--school-shadow);
}
.reports-hero::after { content:""; width: 240px; height: 240px; position:absolute; left:-90px; bottom:-155px; border:38px solid rgba(255,255,255,.055); border-radius:50%; }
.reports-hero > div { position: relative; z-index: 1; }
.reports-hero .eyebrow { color: #76e4d8; }
.reports-hero h2 { margin: 0; font-size: 32px; }
.reports-hero p { max-width: 750px; margin: 13px 0 0; color: rgba(255,255,255,.73); font-size: 14px; }
.reports-hero__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.primary-button, .secondary-button { min-height: 48px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.primary-button { color: #fff !important; background: linear-gradient(135deg, #13a996, #20c3b0); box-shadow: 0 10px 25px rgba(19,184,166,.24); }
.secondary-button { color: #fff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.17); }
.primary-button .modern-icon, .secondary-button .modern-icon { width: 19px; height: 19px; }
.report-kpi-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.report-kpi { min-height: 125px; padding: 21px; display: flex; align-items: center; gap: 15px; border: 1px solid #e1e9f0; border-radius: 19px; background: #fff; box-shadow: var(--school-shadow-soft); }
.report-kpi__icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; }
.report-kpi__icon--blue { color:#2b68d6; background:#edf4ff; }
.report-kpi__icon--danger { color:#d94d5a; background:#fff0f2; }
.report-kpi__icon--warning { color:#c98213; background:#fff7e8; }
.report-kpi__icon--violet { color:#6d58cc; background:#f2efff; }
.report-kpi small, .report-kpi strong, .report-kpi em { display:block; }
.report-kpi small { color:#748698; font-size:11px; }
.report-kpi strong { margin-top: 1px; color:var(--school-navy-950); font-size:28px; line-height:1.35; }
.report-kpi em { color:#9aa7b3; font-size:10px; font-style:normal; }
.reports-layout { margin-top: 20px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr); gap:18px; }
.reports-layout--compact { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.report-chip { padding:6px 10px; border-radius:999px; color:#2e67c9; background:#edf4ff; font-size:10px; font-weight:700; }
.performance-list { display:grid; gap:15px; }
.performance-row__title { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:12px; }
.performance-row__title span { font-size:13px; font-weight:700; color:#2b4054; }
.performance-row__title small { font-size:10px; color:#8b9aa8; }
.performance-row__title strong { min-width:48px; text-align:left; color:#205fc8; font-size:13px; }
.performance-track { height:10px; margin-top:7px; display:block; overflow:hidden; border-radius:999px; background:#edf2f6; }
.performance-track i { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#13b8a6,#3778ea); animation:growBar .8s ease both; }
.summary-stack { display:grid; gap:10px; }
.summary-stack > a { min-height:70px; padding:12px; display:flex; align-items:center; gap:12px; border:1px solid #e5ebf1; border-radius:14px; color:inherit!important; background:#fafcfd; text-decoration:none!important; transition:.2s ease; }
.summary-stack > a:hover { border-color:#bed2e5; transform:translateX(-2px); background:#fff; }
.summary-stack__icon { width:42px; height:42px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:#2f6edb; background:#edf4ff; }
.summary-stack div { flex:1; }
.summary-stack small, .summary-stack strong { display:block; }
.summary-stack small { color:#7f8e9d; font-size:10px; }
.summary-stack strong { margin-top:2px; color:#2b4054; font-size:13px; }
.summary-stack > a > .modern-icon { width:16px; color:#9aa8b6; }
.gender-card { margin-top:17px; padding-top:17px; display:flex; align-items:center; gap:20px; border-top:1px solid #ebf0f4; }
.gender-card__chart { width:112px; height:112px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#3778ea 0 var(--male), #f2b84b var(--male) 100%); position:relative; }
.gender-card__chart::after { content:""; width:72px; height:72px; position:absolute; border-radius:50%; background:#fff; }
.gender-card__chart span { position:relative; z-index:1; text-align:center; color:#21364a; font-size:18px; font-weight:700; }
.gender-card__chart small { display:block; color:#8a99a7; font-size:8px; font-weight:400; }
.gender-card__legend { flex:1; display:grid; gap:10px; }
.gender-card__legend > div { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; font-size:11px; }
.gender-card__legend i { width:9px; height:9px; border-radius:50%; }
.gender-card__legend .is-male { background:#3778ea; }
.gender-card__legend .is-female { background:#f2b84b; }
.gender-card__legend span { color:#708295; }
.gender-card__legend strong { color:#31475b; }
.risk-panel { margin-top:20px; }
.responsive-table-wrap { overflow:auto; border:1px solid #e5ebf1; border-radius:15px; }
.modern-data-table { width:100%; border-collapse:collapse; background:#fff; }
.modern-data-table th { padding:14px 16px; color:#627689; background:#f4f8fb; border-bottom:1px solid #dfe7ee; text-align:right; font-size:11px; white-space:nowrap; }
.modern-data-table td { padding:14px 16px; border-bottom:1px solid #edf1f4; color:#526578; font-size:12px; }
.modern-data-table tbody tr:last-child td { border-bottom:0; }
.modern-data-table tbody tr:hover td { background:#fbfdff; }
.modern-data-table td strong { color:#263c50; }
.risk-score { padding:6px 10px; border-radius:999px; color:#c83f4c; background:#fff0f2; font-weight:700; }
.table-action { padding:7px 11px; border-radius:9px; color:#275fcf!important; background:#edf4ff; text-decoration:none!important; font-size:10px; font-weight:700; }
.absence-class-list { display:grid; gap:9px; }
.absence-class-list > div { min-height:48px; padding:10px 13px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-radius:12px; background:#f8fafc; font-size:12px; }
.absence-class-list span { color:#52677a; }
.absence-class-list strong { color:#ce4e5a; }
.report-note { display:flex; align-items:center; gap:20px; background:linear-gradient(135deg,#fff,#f3fbfa); }
.report-note__icon { width:66px; height:66px; display:grid; place-items:center; flex:0 0 auto; border-radius:20px; color:#0f9c8c; background:#ddf7f3; }
.report-note h3 { margin:0; color:#173047; font-size:20px; }
.report-note p { margin:7px 0 0; color:#708295; font-size:12px; }
.report-library { margin-top:30px; }
.section-heading { margin-bottom:17px; display:flex; align-items:end; justify-content:space-between; gap:20px; }
.section-heading h2 { margin:0; color:#142c42; font-size:25px; }
.section-heading p { max-width:440px; margin:0; color:#8292a0; font-size:12px; text-align:left; }
.report-groups-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.report-group { overflow:hidden; border:1px solid #e1e8ef; border-radius:20px; background:#fff; box-shadow:var(--school-shadow-soft); }
.report-group > header { min-height:72px; padding:16px 20px; display:flex; align-items:center; gap:12px; border-bottom:1px solid #e9eef3; }
.report-group > header > span { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; }
.report-group > header h3 { margin:0; color:#253b50; font-size:17px; }
.report-group--blue > header > span { color:#2c67d1; background:#edf4ff; }
.report-group--green > header > span { color:#12957f; background:#e8f9f6; }
.report-group--violet > header > span { color:#6b58c9; background:#f2efff; }
.report-group--orange > header > span { color:#bd7913; background:#fff6e5; }
.report-group__items { padding:9px; }
.report-group__items a { min-height:66px; padding:11px 12px; display:flex; align-items:center; gap:12px; border-radius:13px; color:inherit!important; text-decoration:none!important; transition:.2s ease; }
.report-group__items a:hover { background:#f6f9fb; transform:translateX(-2px); }
.report-group__items a > div { flex:1; }
.report-group__items strong, .report-group__items small { display:block; }
.report-group__items strong { color:#334a5f; font-size:13px; }
.report-group__items small { margin-top:2px; color:#8998a6; font-size:10px; }
.report-group__items a > .modern-icon { width:16px; color:#a0adba; }

@media (max-width: 1180px) {
    .topbar-search { display:none; }
    .insight-strip, .report-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .reports-layout { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
    .modern-content { padding:20px 16px 30px; }
    .modern-topbar { padding:12px 16px; }
    .modern-topbar h1 { font-size:19px; }
    .modern-user-chip > span:last-child { display:none; }
    .insight-strip, .report-kpi-grid, .report-groups-grid { grid-template-columns:1fr; }
    .reports-hero { padding:27px 23px; align-items:flex-start; flex-direction:column; }
    .reports-hero h2 { font-size:26px; }
    .reports-hero__actions { width:100%; flex-wrap:wrap; }
    .reports-hero__actions > * { flex:1; }
    .reports-layout--compact { grid-template-columns:1fr; }
    .section-heading { align-items:flex-start; flex-direction:column; }
    .section-heading p { text-align:right; }
    .gender-card { align-items:flex-start; }
    .login-footnote { flex-direction:column; }
}

@media print {
    .modern-sidebar, .modern-topbar, .sidebar-backdrop, .reports-hero__actions, .modern-dashboard-footer, .report-library { display:none!important; }
    .modern-app-shell { display:block; }
    .modern-content { padding:0; }
    .reports-hero { min-height:auto; box-shadow:none; }
    .report-kpi, .panel { box-shadow:none; break-inside:avoid; }
}

/* Quick student search */
.search-hero { min-height: 150px; }
.search-panel { margin-top: 20px; }
.advanced-search-form {
    min-height: 68px;
    margin-bottom: 22px;
    padding: 8px 10px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dbe5ed;
    border-radius: 18px;
    background: #f7fafc;
}
.advanced-search-form > span { width: 45px; display: grid; place-items: center; color: #74879a; }
.advanced-search-form input { min-width: 0; flex: 1; height: 50px; border: 0; outline: 0; color: #20364a; background: transparent; font-family: inherit; font-size: 14px; }
.advanced-search-form .primary-button { min-width: 120px; }
.search-result-meta { margin-bottom: 14px; color: #74879a; font-size: 12px; }
.search-result-meta strong { color: #275fcf; }
.status-pill { padding: 6px 10px; display: inline-flex; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-pill.is-active { color: #10866f; background: #e7f8f4; }
.status-pill.is-inactive { color: #c04450; background: #fff0f2; }
.table-actions { display: flex; gap: 6px; }
.table-action--soft { color: #66798a!important; background: #eef2f5; }
@media (max-width: 680px) {
    .advanced-search-form { align-items: stretch; flex-wrap: wrap; }
    .advanced-search-form > span { display: none; }
    .advanced-search-form input { width: 100%; flex: 1 0 100%; padding: 0 10px; }
    .advanced-search-form .primary-button { width: 100%; }
}

/* =========================================================
   SADA BRAND UPDATE — supplied corporate logo + form refresh
   ========================================================= */
:root {
    --sada-yellow: #ffca28;
    --sada-yellow-deep: #e4a900;
    --sada-black: #111318;
}

/* Use the supplied full SCS logo without cropping or distortion. */
.login-brand__mark,
.modern-sidebar__logo--sada,
.legacy-app-header__mark {
    display: grid;
    place-items: center;
    height: auto;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(2, 14, 25, .25);
}

.login-brand__mark img,
.modern-sidebar__logo--sada img,
.legacy-app-header__mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain !important;
    background: #fff;
}

.login-brand {
    align-items: center;
    flex-wrap: wrap;
}

.login-brand__mark {
    width: 188px;
    height: 116px;
    border-radius: 20px;
}

.login-brand > span:last-child {
    min-width: 190px;
}

.modern-sidebar__brand {
    min-height: 104px;
    align-items: center;
}

.modern-sidebar__logo--sada {
    width: 108px;
    height: 66px;
    flex: 0 0 108px;
    border-radius: 14px;
}

.modern-sidebar__brand-copy {
    min-width: 0;
}

.modern-sidebar__brand-copy strong {
    font-size: 18px;
}

.modern-sidebar__brand-copy small {
    line-height: 1.55;
}

.legacy-app-header__mark {
    width: 128px;
    height: 78px;
    flex: 0 0 128px;
    border-radius: 15px;
}

.login-footnote img {
    width: 165px;
    max-height: 88px;
    padding: 5px;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

/* Yellow accent inspired by the supplied logo. */
.login-copy__eyebrow,
.modern-nav__group-button .modern-icon {
    color: #ffe17a;
}

.login-submit,
.primary-button,
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="submit"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="button"],
body:not(.modern-dashboard-page):not(.modern-login-page) button,
.button,
.button2 {
    border: 1px solid rgba(255, 255, 255, .16) !important;
    background: linear-gradient(135deg, #0b233a 0%, #174868 72%, #205f80 100%) !important;
    box-shadow: 0 13px 26px rgba(8, 31, 52, .22) !important;
}

.login-submit::after,
.primary-button::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sada-yellow);
    box-shadow: 0 0 0 4px rgba(255, 202, 40, .14);
}

.modern-nav__link.is-active::before {
    background: linear-gradient(var(--sada-yellow), #f6a800);
}

/* More polished legacy forms while preserving old table-based pages. */
body:not(.modern-dashboard-page):not(.modern-login-page) form > table {
    max-width: min(960px, calc(100% - 24px));
    margin: 24px auto !important;
    border: 1px solid #dce6ef !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 18px 45px rgba(8, 31, 52, .09);
}

body:not(.modern-dashboard-page):not(.modern-login-page) form > table > tbody > tr > td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #edf1f5;
}

body:not(.modern-dashboard-page):not(.modern-login-page) form > table > tbody > tr:last-child > td {
    border-bottom: 0;
}

body:not(.modern-dashboard-page):not(.modern-login-page) input[type="text"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="password"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="email"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="number"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="date"],
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="search"],
body:not(.modern-dashboard-page):not(.modern-login-page) select,
body:not(.modern-dashboard-page):not(.modern-login-page) textarea,
.text,
.text_input_style,
.text_input_style-main {
    min-height: 52px !important;
    padding: 11px 15px !important;
    border: 1px solid #cfdbe6 !important;
    border-radius: 14px !important;
    color: #17283a !important;
    background: linear-gradient(180deg, #fff, #f8fbfd) !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) input:focus,
body:not(.modern-dashboard-page):not(.modern-login-page) select:focus,
body:not(.modern-dashboard-page):not(.modern-login-page) textarea:focus,
.text:focus,
.text_input_style:focus,
.text_input_style-main:focus {
    border-color: #dda900 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 202, 40, .17), 0 8px 20px rgba(8, 31, 52, .06) !important;
    transform: translateY(-1px);
}

body:not(.modern-dashboard-page):not(.modern-login-page) label,
body:not(.modern-dashboard-page):not(.modern-login-page) .table_item {
    color: #24394d !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body:not(.modern-dashboard-page):not(.modern-login-page) input[type="submit"]:hover,
body:not(.modern-dashboard-page):not(.modern-login-page) input[type="button"]:hover,
body:not(.modern-dashboard-page):not(.modern-login-page) button:hover,
.button:hover,
.button2:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 34px rgba(8, 31, 52, .27) !important;
}

/* Branded shared footer. */
.legacy-app-footer--sada {
    min-height: 92px;
    padding: 14px 24px;
    background:
        radial-gradient(circle at 18% 0, rgba(255, 202, 40, .13), transparent 27%),
        linear-gradient(135deg, #071827, #0b2942);
}

.legacy-app-footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.legacy-app-footer__brand img {
    width: 120px;
    height: 68px;
    padding: 5px;
    border-radius: 11px;
    object-fit: contain;
    background: #fff;
}

.legacy-app-footer__brand strong,
.legacy-app-footer__brand small {
    display: block;
}

.legacy-app-footer__brand strong {
    color: #fff;
    font-size: 13px;
}

.legacy-app-footer__brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}

/* Password recovery page. */
.recovery-page {
    min-height: 100vh;
}

.recovery-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
    gap: 34px;
    align-items: stretch;
}

.recovery-visual,
.recovery-card {
    border-radius: 30px;
    box-shadow: var(--school-shadow);
}

.recovery-visual {
    position: relative;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 202, 40, .24), transparent 27%),
        radial-gradient(circle at 90% 86%, rgba(19, 184, 166, .19), transparent 29%),
        linear-gradient(145deg, #071827, #0d3553 66%, #174868);
    isolation: isolate;
}

.recovery-visual::after {
    content: "";
    position: absolute;
    left: -130px;
    bottom: -170px;
    width: 350px;
    height: 350px;
    border: 52px solid rgba(255,255,255,.05);
    border-radius: 50%;
    z-index: -1;
}

.recovery-logo {
    width: 215px;
    padding: 9px;
    display: block;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.recovery-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.recovery-visual__copy {
    max-width: 560px;
    margin: 70px 0 50px;
}

.recovery-visual__copy h1 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1.35;
    letter-spacing: -.035em;
}

.recovery-visual__copy p {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 17px;
    line-height: 1.9;
}

.recovery-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.recovery-steps > div {
    min-height: 126px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    background: rgba(255,255,255,.065);
    backdrop-filter: blur(10px);
}

.recovery-steps span {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #10263b;
    background: var(--sada-yellow);
    font-weight: 800;
}

.recovery-steps strong,
.recovery-steps small {
    display: block;
}

.recovery-steps strong {
    font-size: 14px;
}

.recovery-steps small {
    margin-top: 4px;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    line-height: 1.65;
}

.recovery-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.82);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
}

.recovery-card__header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.recovery-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border-radius: 17px;
    color: #163e5d;
    background: linear-gradient(135deg, #fff1b5, var(--sada-yellow));
    box-shadow: 0 12px 24px rgba(228,169,0,.18);
}

.recovery-card__header h2 {
    margin: 0;
    color: #081b2d;
    font-size: 30px;
}

.recovery-card__header p {
    margin: 7px 0 0;
    color: var(--school-muted);
    font-size: 14px;
    line-height: 1.75;
}

.recovery-form {
    display: grid;
    gap: 19px;
}

.recovery-form .form-field label b {
    color: #d84e58;
}

.field-hint {
    color: #7a8b9b;
    font-size: 11px;
}

.recovery-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 2px;
    font-size: 15px;
}

.recovery-submit .modern-icon {
    width: 20px;
    height: 20px;
}

.recovery-alert {
    min-height: 52px;
    margin-bottom: 20px;
    padding: 13px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.7;
}

.recovery-alert .modern-icon {
    width: 21px;
    height: 21px;
    margin-top: 1px;
    flex: 0 0 21px;
}

.recovery-alert--error {
    color: #96363d;
    border: 1px solid #ffd1d5;
    background: #fff1f2;
}

.recovery-alert--success {
    color: #147052;
    border: 1px solid #c9ebdf;
    background: #effbf7;
}

.recovery-student-note {
    margin-top: 21px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    color: #54697c;
    background: #f6f9fc;
    font-size: 12px;
    line-height: 1.7;
}

.recovery-student-note .modern-icon {
    width: 20px;
    height: 20px;
    color: #2f70c9;
    flex: 0 0 20px;
}

.recovery-back {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #245f94;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.recovery-back .modern-icon {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
}

.recovery-footer {
    margin-top: 27px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-top: 1px solid #e5ebf1;
    color: #7b8c9c;
    text-align: center;
    font-size: 10px;
}

.recovery-footer img {
    width: 104px;
    height: 62px;
    padding: 4px;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 1020px) {
    .recovery-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .recovery-visual {
        min-height: 560px;
    }

    .login-brand__mark {
        width: 170px;
        height: 104px;
    }
}

@media (max-width: 720px) {
    .recovery-shell {
        width: min(100% - 22px, 650px);
        padding: 14px 0;
        gap: 16px;
    }

    .recovery-visual,
    .recovery-card {
        border-radius: 22px;
    }

    .recovery-visual {
        min-height: auto;
        padding: 30px 23px;
    }

    .recovery-logo {
        width: 170px;
    }

    .recovery-visual__copy {
        margin: 42px 0 34px;
    }

    .recovery-visual__copy h1 {
        font-size: 36px;
    }

    .recovery-steps {
        grid-template-columns: 1fr;
    }

    .recovery-steps > div {
        min-height: auto;
    }

    .recovery-card {
        padding: 30px 22px;
    }

    .recovery-card__header h2 {
        font-size: 25px;
    }

    .recovery-footer,
    .legacy-app-footer__brand {
        flex-direction: column;
    }

    .legacy-app-header__mark {
        width: 108px;
        height: 66px;
    }
}

.modern-dashboard-footer {
    align-items: center;
}

.modern-dashboard-footer__logo {
    width: 92px;
    height: 54px;
    padding: 4px;
    border: 1px solid #e0e7ee;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
}

.login-footnote > span strong,
.login-footnote > span small {
    display: block;
}

.login-footnote > span strong {
    color: #536779;
    font-size: 11px;
}

.login-footnote > span small {
    margin-top: 2px;
    color: #94a0ac;
    font-size: 10px;
}

/* =========================================================
   SCHOOL IDENTITY UPDATE v4.2 — Rosary Sisters' School
   ========================================================= */
.sada-brand-link {
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.sada-brand-link:hover {
    transform: translateY(-2px);
}

.login-brand__mark--school {
    width: 118px;
    height: 118px;
    flex: 0 0 118px;
    padding: 5px;
    border-radius: 50%;
    border-color: rgba(255, 255, 255, .3);
    background: #fff !important;
}

.login-brand__mark--school img {
    border-radius: 50%;
}

.login-brand > span:last-child strong {
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.45;
}

.login-brand > span:last-child small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.login-footnote .sada-brand-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modern-sidebar__brand {
    gap: 12px;
}

.modern-sidebar__logo--school {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: grid;
    place-items: center;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.modern-sidebar__logo--school img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.modern-sidebar__brand-copy strong {
    font-size: 15px;
    line-height: 1.55;
}

.modern-sidebar__brand-copy small {
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
}

.modern-sidebar__footer {
    gap: 10px;
}

.modern-sidebar__sada-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .045);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.modern-sidebar__sada-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: translateY(-1px);
}

.modern-sidebar__sada-link img {
    width: 62px;
    height: 34px;
    flex: 0 0 62px;
    padding: 2px;
    border-radius: 7px;
    object-fit: contain;
    background: #fff;
}

.modern-sidebar__sada-link small {
    font-size: 9px;
    line-height: 1.55;
}

.legacy-app-header__mark--school {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    padding: 4px;
    border-radius: 50%;
}

.legacy-app-header__mark--school img {
    border-radius: 50%;
}

.legacy-app-footer__brand.sada-brand-link {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.modern-dashboard-footer {
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.modern-dashboard-footer__school,
.modern-dashboard-footer__sada {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-dashboard-footer__school-logo {
    width: 46px;
    height: 46px;
    padding: 2px;
    border: 1px solid #dbe5ed;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

.modern-dashboard-footer__sada {
    color: inherit;
    text-decoration: none;
}

.modern-dashboard-footer__sada strong {
    font-size: 10px;
}

.recovery-school-brand {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
}

.recovery-school-brand img {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.recovery-school-brand span,
.recovery-school-brand strong,
.recovery-school-brand small {
    display: block;
}

.recovery-school-brand strong {
    font-size: 19px;
    line-height: 1.6;
}

.recovery-school-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
}

.recovery-footer .sada-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

@media (max-width: 720px) {
    .login-brand {
        justify-content: center;
        text-align: center;
    }

    .login-brand__mark--school {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
    }

    .modern-dashboard-footer,
    .modern-dashboard-footer__school,
    .modern-dashboard-footer__sada {
        justify-content: center;
        text-align: center;
    }

    .modern-dashboard-footer__school,
    .modern-dashboard-footer__sada {
        width: 100%;
    }

    .recovery-school-brand {
        align-items: center;
    }

    .recovery-school-brand img {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .recovery-school-brand strong {
        font-size: 16px;
    }

    .login-footnote .sada-brand-link,
    .recovery-footer .sada-brand-link {
        flex-direction: column;
        text-align: center;
    }
}
