:root {
    --forest-950: #06271d;
    --forest-900: #093a2a;
    --forest-800: #0d4935;
    --forest-700: #126044;
    --forest-600: #187553;
    --forest-100: #dff2e9;
    --forest-50: #f0f8f4;
    --gold-500: #d9aa45;
    --ink-900: #17231f;
    --ink-700: #40504a;
    --ink-500: #68756f;
    --line: #dfe7e3;
    --surface: #ffffff;
    --canvas: #f3f7f5;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --shadow-sm: 0 4px 16px rgba(15, 45, 35, 0.07);
    --shadow-md: 0 18px 50px rgba(13, 55, 41, 0.13);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body.account-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ink-900);
    background: var(--canvas);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

.account-page img,
.account-page svg {
    display: block;
}

.account-page a {
    color: inherit;
    text-decoration: none;
}

.account-page button,
.account-page input {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--forest-900);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Login */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
}

.login-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    color: #ffffff;
    background:
        linear-gradient(150deg, rgba(5, 38, 28, 0.96), rgba(11, 78, 55, 0.86)),
        url("../Images/green-blackboard-background-with-chalk.jpg") center / cover no-repeat;
}

.login-visual::before,
.login-visual::after {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.login-visual::before {
    right: -170px;
    bottom: 8%;
}

.login-visual::after {
    right: -90px;
    bottom: 1%;
    width: 220px;
    height: 220px;
    background: rgba(217, 170, 69, 0.08);
}

.login-brand {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.login-brand__logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand__mark {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    place-items: center;
    padding: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.login-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand__copy strong,
.login-brand__copy span {
    display: block;
}

.login-brand__copy strong {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.login-brand__copy span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
}

.login-visual__content {
    max-width: 590px;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-500);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-visual h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(2.35rem, 4.2vw, 4.6rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.login-visual__lead {
    max-width: 540px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.75;
}

.login-benefits {
    display: grid;
    max-width: 520px;
    margin: 34px 0 0;
    padding: 0;
    gap: 14px;
    list-style: none;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
}

.benefit-check {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: var(--forest-950);
    background: var(--gold-500);
    border-radius: 50%;
}

.benefit-check svg {
    width: 14px;
    height: 14px;
}

.login-visual__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

.login-visual__footer svg {
    width: 17px;
    height: 17px;
}

.login-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 84px);
    background:
        radial-gradient(circle at 88% 10%, rgba(24, 117, 83, 0.09), transparent 26%),
        var(--canvas);
}

.login-card {
    width: min(100%, 470px);
}

.login-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 11px;
    color: var(--forest-700);
    background: var(--forest-100);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-card__badge::before {
    width: 7px;
    height: 7px;
    content: "";
    background: var(--forest-600);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24, 117, 83, 0.12);
}

.login-card h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 720;
    letter-spacing: -0.035em;
}

.login-card__intro {
    margin: 12px 0 32px;
    color: var(--ink-500);
    font-size: 1rem;
}

.login-form {
    display: grid;
    gap: 21px;
}

.form-group {
    min-width: 0;
}

.field-label {
    display: block;
    margin: 0 0 8px;
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 700;
}

.input-shell {
    display: flex;
    min-height: 54px;
    align-items: center;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #ced9d4;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(15, 45, 35, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:hover {
    border-color: #a9bbb3;
}

.input-shell:focus-within {
    background: #ffffff;
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(24, 117, 83, 0.13);
}

.input-shell__icon {
    width: 20px;
    height: 20px;
    margin-left: 17px;
    flex: 0 0 20px;
    color: #718079;
}

.account-input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px 0 12px;
    color: var(--ink-900);
    background: transparent;
    border: 0;
    outline: 0;
}

.account-input::placeholder {
    color: #96a29d;
}

.account-input:-webkit-autofill,
.account-input:-webkit-autofill:hover,
.account-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--ink-900);
}

.password-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    margin-right: 3px;
    flex: 0 0 48px;
    place-items: center;
    color: var(--ink-500);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--forest-700);
    background: var(--forest-50);
}

.password-toggle:focus-visible,
.primary-action:focus-visible,
.logout-button:focus-visible,
.workspace-card:focus-visible {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 3px;
}

.password-toggle svg {
    width: 21px;
    height: 21px;
}

[hidden] {
    display: none !important;
}

.validation-message {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.78rem;
}

.validation-message:empty {
    min-height: 0;
    margin-top: 0;
}

.validation-summary-valid {
    display: none;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    color: #8f1d15;
    background: var(--danger-bg);
    border: 1px solid #f3c7c3;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.login-alert svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-top: 1px;
}

.primary-action {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-700), var(--forest-900));
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 24px rgba(13, 73, 53, 0.2);
    cursor: pointer;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-action:hover {
    box-shadow: 0 16px 28px rgba(13, 73, 53, 0.27);
    transform: translateY(-1px);
}

.primary-action:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.primary-action svg {
    width: 18px;
    height: 18px;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    color: var(--ink-500);
    font-size: 0.8rem;
}

.login-security svg {
    width: 16px;
    height: 16px;
    color: var(--forest-600);
}

.login-copyright {
    margin: 34px 0 0;
    color: #8a9690;
    font-size: 0.76rem;
    text-align: center;
}

/* Dashboard */
.dashboard-page {
    background:
        radial-gradient(circle at 12% 0, rgba(24, 117, 83, 0.09), transparent 23rem),
        var(--canvas);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(207, 220, 214, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    display: flex;
    width: min(100% - 40px, 1240px);
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
}

.app-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.app-brand__logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.app-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-brand__text strong,
.app-brand__text span {
    display: block;
}

.app-brand__text strong {
    color: var(--forest-900);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.app-brand__text span {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 0.76rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #ffffff;
    background: var(--forest-800);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
}

.user-summary__copy strong,
.user-summary__copy span {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-summary__copy strong {
    color: var(--ink-900);
    font-size: 0.84rem;
}

.user-summary__copy span {
    color: var(--ink-500);
    font-size: 0.72rem;
}

.logout-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--ink-700);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.logout-button:hover {
    color: var(--forest-800);
    background: var(--forest-50);
    border-color: #b8d2c6;
}

.logout-button svg {
    width: 17px;
    height: 17px;
}

.dashboard-main {
    width: min(100% - 40px, 1240px);
    margin: 0 auto;
    padding: 42px 0 32px;
}

.dashboard-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 230px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    color: #ffffff;
    background: linear-gradient(135deg, var(--forest-950), var(--forest-700));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.dashboard-hero::before {
    position: absolute;
    z-index: -1;
    top: -170px;
    right: -80px;
    width: 420px;
    height: 420px;
    content: "";
    background: radial-gradient(circle, rgba(217, 170, 69, 0.3), rgba(217, 170, 69, 0) 68%);
}

.dashboard-hero::after {
    position: absolute;
    z-index: -1;
    right: 8%;
    bottom: -120px;
    width: 280px;
    height: 280px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.dashboard-hero__copy {
    max-width: 720px;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 720;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.dashboard-hero__lead {
    max-width: 650px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
}

.hero-date {
    display: grid;
    min-width: 190px;
    padding: 18px 20px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-date__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-date__label svg {
    width: 15px;
    height: 15px;
}

.hero-date strong {
    margin-top: 7px;
    font-size: 0.88rem;
    font-weight: 650;
}

.workspace-section {
    margin-top: 46px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--ink-500);
    font-size: 0.9rem;
}

.workspace-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--forest-700);
    background: var(--forest-100);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.academic-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-registration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-system-card {
    position: relative;
    display: grid;
    min-height: 272px;
    grid-template-columns: 178px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.school-system-card::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--school-accent, var(--forest-600));
}

.school-system-card:hover {
    border-color: #b9cec4;
    box-shadow: 0 19px 42px rgba(15, 57, 43, 0.13);
    transform: translateY(-4px);
}

.school-system-card:focus-visible {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 4px;
}

.school-system-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px 24px 26px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95) 0 4px, transparent 5px),
        radial-gradient(circle at 83% 78%, rgba(255, 255, 255, 0.8) 0 6px, transparent 7px),
        linear-gradient(145deg, #ffffff 0%, var(--school-soft, var(--forest-50)) 100%);
    border-right: 1px solid rgba(15, 57, 43, 0.08);
}

.school-system-card__visual::after {
    position: absolute;
    right: -35px;
    bottom: -38px;
    width: 118px;
    height: 118px;
    content: "";
    border: 1px solid rgba(15, 57, 43, 0.1);
    border-radius: 50%;
}

.school-system-card__tag {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 6px 9px;
    color: var(--school-accent, var(--forest-700));
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(28, 45, 38, 0.06);
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.school-system-card__logo {
    position: relative;
    z-index: 1;
    display: grid;
    width: 122px;
    height: 122px;
    place-items: center;
    padding: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(28, 45, 38, 0.1);
    border-radius: 25px;
    box-shadow: 0 13px 28px rgba(28, 45, 38, 0.13);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.school-system-card:hover .school-system-card__logo {
    box-shadow: 0 17px 34px rgba(28, 45, 38, 0.16);
    transform: translateY(-2px) scale(1.025);
}

.school-system-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 17px;
}

.school-system-card--azhar .school-system-card__logo img {
    transform: scale(1.04);
}

.school-system-card--international .school-system-card__logo img {
    transform: scale(1.08);
}

.school-system-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 28px 27px 25px;
}

.school-system-card__eyebrow {
    color: var(--school-accent, var(--forest-700));
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.school-system-card h3 {
    margin: 10px 0 0;
    color: var(--ink-900);
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.school-system-card p {
    margin: 9px 0 0;
    color: var(--ink-500);
    font-size: 0.84rem;
    line-height: 1.62;
}

.school-system-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    gap: 14px;
    color: var(--school-accent, var(--forest-700));
    font-size: 0.77rem;
    font-weight: 800;
}

.school-system-card__arrow {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    background: var(--school-soft, var(--forest-50));
    border-radius: 50%;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.school-system-card__arrow svg {
    width: 17px;
    height: 17px;
}

.school-system-card:hover .school-system-card__arrow {
    color: #ffffff;
    background: var(--school-accent, var(--forest-700));
    transform: translateX(2px);
}

.workspace-card {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    overflow: hidden;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.workspace-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--card-accent, var(--forest-600));
}

.workspace-card:hover {
    border-color: #c4d5cd;
    box-shadow: 0 18px 38px rgba(15, 57, 43, 0.12);
    transform: translateY(-4px);
}

.workspace-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.workspace-card__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--card-accent, var(--forest-700));
    background: var(--forest-50);
    border: 1px solid rgba(18, 96, 68, 0.1);
    border-radius: 15px;
}

.workspace-card__icon svg {
    width: 25px;
    height: 25px;
}

.workspace-card__tag {
    padding: 5px 8px;
    color: var(--ink-500);
    background: #f5f7f6;
    border-radius: 7px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.workspace-card h3 {
    margin: 24px 0 0;
    color: var(--ink-900);
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.workspace-card p {
    margin: 8px 0 0;
    color: var(--ink-500);
    font-size: 0.85rem;
    line-height: 1.6;
}

.workspace-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    color: var(--forest-700);
    font-size: 0.78rem;
    font-weight: 800;
}

.workspace-card__footer svg {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
}

.workspace-card:hover .workspace-card__footer svg {
    transform: translateX(4px);
}

.dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding-top: 22px;
    color: var(--ink-500);
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
}

.dashboard-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-footer__status::before {
    width: 7px;
    height: 7px;
    content: "";
    background: #1f9d67;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(31, 157, 103, 0.11);
}

/* User management */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.users-main {
    padding-top: 30px;
}

.account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--ink-500);
    font-size: 0.8rem;
}

.account-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--forest-700);
    font-weight: 700;
}

.account-breadcrumb a:hover {
    color: var(--forest-900);
}

.account-breadcrumb svg {
    width: 15px;
    height: 15px;
}

.account-breadcrumb__separator {
    color: #a0aca6;
}

.users-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 34px;
    background: linear-gradient(135deg, #ffffff, #f7fbf9);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.users-page-header__copy {
    max-width: 690px;
}

.users-page-header h1 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    letter-spacing: -0.035em;
}

.users-page-header p {
    margin: 9px 0 0;
    color: var(--ink-500);
    font-size: 0.92rem;
    line-height: 1.65;
}

.add-user-button {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    color: #ffffff !important;
    background: var(--forest-800);
    border: 1px solid var(--forest-800);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(13, 73, 53, 0.18);
    font-size: 0.84rem;
    font-weight: 750;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.add-user-button:hover {
    background: var(--forest-950);
    box-shadow: 0 14px 27px rgba(13, 73, 53, 0.25);
    transform: translateY(-1px);
}

.add-user-button:focus-visible,
.edit-user-button:focus-visible,
.user-search input:focus-visible {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 3px;
}

.add-user-button svg {
    width: 18px;
    height: 18px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.user-stat {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 19px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 45, 35, 0.04);
}

.user-stat__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--stat-color, var(--forest-700));
    background: var(--stat-bg, var(--forest-50));
    border-radius: 12px;
}

.user-stat__icon svg {
    width: 21px;
    height: 21px;
}

.user-stat__copy strong,
.user-stat__copy span {
    display: block;
}

.user-stat__copy strong {
    color: var(--ink-900);
    font-size: 1.35rem;
    line-height: 1.1;
}

.user-stat__copy span {
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 0.75rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-panel {
    margin-top: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.users-toolbar {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.users-toolbar__title h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.users-toolbar__title span {
    display: block;
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 0.76rem;
}

.user-search {
    position: relative;
    width: min(100%, 330px);
}

.user-search svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #7b8982;
    pointer-events: none;
    transform: translateY(-50%);
}

.user-search input {
    width: 100%;
    height: 44px;
    padding: 0 42px;
    color: var(--ink-900);
    background: #f8faf9;
    border: 1px solid #d7e1dc;
    border-radius: 11px;
    outline: 0;
    font-size: 0.84rem;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.user-search input::placeholder {
    color: #8d9993;
}

.user-search input:focus {
    background: #ffffff;
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(24, 117, 83, 0.11);
}

.user-search__clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: none;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    color: var(--ink-500);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transform: translateY(-50%);
}

.user-search__clear.is-visible {
    display: grid;
}

.user-search__clear:hover {
    color: var(--ink-900);
    background: #eaf1ed;
}

.user-search__clear svg {
    position: static;
    width: 15px;
    height: 15px;
    transform: none;
}

.users-table-shell {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    border-spacing: 0;
}

.users-table th {
    padding: 13px 18px;
    color: #69766f;
    background: #f7faf8;
    border-bottom: 1px solid var(--line);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.users-table td {
    padding: 16px 18px;
    color: var(--ink-700);
    border-bottom: 1px solid #eaf0ed;
    font-size: 0.82rem;
    vertical-align: middle;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-table tbody tr[data-user-row] {
    transition: background 140ms ease;
}

.users-table tbody tr[data-user-row]:hover {
    background: #fbfdfc;
}

.user-id {
    color: #89968f;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.user-identity {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 12px;
}

.user-identity__avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--forest-800);
    background: var(--forest-100);
    border: 1px solid rgba(18, 96, 68, 0.1);
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 850;
}

.user-identity__copy strong,
.user-identity__copy span {
    display: block;
}

.user-identity__copy strong {
    max-width: 240px;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-identity__copy span {
    margin-top: 2px;
    color: #8b9791;
    font-size: 0.7rem;
}

.user-email {
    max-width: 270px;
    overflow: hidden;
    color: var(--ink-700);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
    white-space: nowrap;
}

.role-badge {
    color: #55416f;
    background: #f1ebf7;
}

.role-badge--unassigned {
    color: #6f6250;
    background: #f6f1e8;
}

.status-badge::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
}

.status-badge--active {
    color: #176344;
    background: #e5f5ed;
}

.status-badge--active::before {
    background: #249666;
}

.status-badge--inactive {
    color: #81514b;
    background: #f8eae8;
}

.status-badge--inactive::before {
    background: #c26a5f;
}

.edit-user-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    color: var(--forest-700) !important;
    background: var(--forest-50);
    border: 1px solid #cce1d7;
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 750;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.edit-user-button:hover {
    color: #ffffff !important;
    background: var(--forest-700);
    border-color: var(--forest-700);
}

.edit-user-button svg {
    width: 14px;
    height: 14px;
}

.users-empty {
    padding: 64px 24px;
    text-align: center;
}

.users-empty__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 17px;
    place-items: center;
    color: var(--forest-700);
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: 18px;
}

.users-empty__icon svg {
    width: 29px;
    height: 29px;
}

.users-empty h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.05rem;
}

.users-empty p {
    max-width: 420px;
    margin: 8px auto 0;
    color: var(--ink-500);
    font-size: 0.84rem;
}

.users-no-results td {
    padding: 38px 20px;
    color: var(--ink-500);
    text-align: center;
}

.school-access-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.school-access-field legend { margin-bottom: 4px; border: 0; }
.school-access-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.school-access-choice { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--forest-100); border-radius: 10px; cursor: pointer; background: #fff; }
.school-access-choice:has(input:checked) { background: var(--forest-50); border-color: var(--forest-700); }
.school-access-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--forest-700); }
.school-access-choice strong, .school-access-choice small { display: block; }
.school-access-choice strong { color: var(--forest-700); font-size: 0.9rem; }
.school-access-choice small { color: var(--ink-500); font-size: 0.75rem; margin-top: 4px; line-height: 1.5; }
@media (max-width: 600px) { .school-access-options { grid-template-columns: 1fr; } }

/* Academic language directory */
.language-table {
    min-width: 680px;
}

.language-table .language-reference-cell {
    width: 120px;
}

.language-table .language-name-cell {
    min-width: 260px;
}

.language-table .language-usage-cell {
    width: 190px;
}

.language-table .language-actions-cell {
    width: 120px;
    text-align: right;
}

.language-table th:last-child {
    text-align: right;
}

/* Interview status directory and bilingual fields */
.interview-table {
    min-width: 920px;
}

.interview-table .interview-reference-cell {
    width: 105px;
}

.interview-table .interview-name-cell {
    min-width: 235px;
}

.interview-table .interview-arabic-cell {
    min-width: 210px;
}

.interview-arabic-text {
    display: inline-block;
    max-width: 240px;
    overflow-wrap: anywhere;
    color: var(--ink-900);
    font-size: 0.88rem;
    line-height: 1.55;
    unicode-bidi: plaintext;
}

.interview-table .interview-usage-cell {
    width: 180px;
}

.interview-table .interview-actions-cell {
    width: 110px;
    text-align: right;
}

.interview-table th:last-child {
    text-align: right;
}

.interview-arabic-input {
    direction: rtl;
    text-align: right;
}

/* Activity logs */
.logs-page-header {
    overflow: hidden;
    position: relative;
}

.logs-page-header::after {
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 240px;
    height: 240px;
    content: "";
    background: radial-gradient(circle, rgba(24, 117, 83, 0.09), rgba(24, 117, 83, 0) 68%);
    pointer-events: none;
}

.log-header-note {
    z-index: 1;
    display: flex;
    min-width: 225px;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--forest-900);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d7e6df;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 45, 35, 0.07);
}

.log-header-note__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: var(--forest-700);
    background: var(--forest-50);
    border-radius: 11px;
}

.log-header-note__icon svg {
    width: 20px;
    height: 20px;
}

.log-header-note strong,
.log-header-note small {
    display: block;
}

.log-header-note strong {
    font-size: 0.82rem;
}

.log-header-note small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 0.69rem;
}

.logs-toolbar__filters {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.log-search {
    width: min(100%, 350px);
}

.log-controller-filter {
    position: relative;
    width: 175px;
    flex: 0 0 175px;
}

.log-controller-filter svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    color: #7b8982;
    pointer-events: none;
    transform: translateY(-50%);
}

.log-controller-filter select {
    width: 100%;
    height: 44px;
    padding: 0 34px 0 39px;
    color: var(--ink-700);
    background-color: #f8faf9;
    border: 1px solid #d7e1dc;
    border-radius: 11px;
    outline: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.log-controller-filter select:focus {
    background: #ffffff;
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(24, 117, 83, 0.11);
}

.log-controller-filter select:focus-visible {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 3px;
}

.logs-table {
    min-width: 1120px;
}

.logs-table tbody tr[data-log-row] {
    transition: background 140ms ease;
}

.logs-table tbody tr[data-log-row]:hover {
    background: #fbfdfc;
}

.users-table tr[hidden] {
    display: none !important;
}

.log-identity {
    min-width: 175px;
}

.log-identity .user-identity__copy strong {
    max-width: 185px;
}

.log-activity-cell {
    min-width: 160px;
}

.log-action-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    color: #315f78;
    background: #e9f3f8;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 780;
    white-space: nowrap;
}

.log-action-badge--success {
    color: #176344;
    background: #e5f5ed;
}

.log-action-badge--warning {
    color: #8a5a17;
    background: #fbf1df;
}

.log-action-badge--danger {
    color: #81514b;
    background: #f8eae8;
}

.log-controller-name {
    display: block;
    margin-top: 6px;
    color: #7b8982;
    font-size: 0.7rem;
    font-weight: 650;
}

.log-ip {
    display: inline-flex;
    padding: 6px 9px;
    color: #52625a;
    background: #f3f6f4;
    border: 1px solid #e2e9e5;
    border-radius: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.7rem;
    white-space: nowrap;
}

.log-device {
    display: block;
    max-width: 170px;
    overflow: hidden;
    color: var(--ink-500);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-date strong,
.log-date span {
    display: block;
    white-space: nowrap;
}

.log-date strong {
    color: var(--ink-800);
    font-size: 0.78rem;
}

.log-date span {
    margin-top: 3px;
    color: #89968f;
    font-size: 0.69rem;
}

.log-date--empty {
    color: #89968f;
}

.view-log-button {
    min-width: 72px;
}

.logs-empty .users-empty__icon {
    color: #315f78;
    background: #e9f3f8;
    border-color: #d8e8f0;
}

.logs-pagination {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    background: #fbfdfc;
    border-top: 1px solid var(--line);
}

.logs-page-size {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-500);
    font-size: 0.72rem;
    font-weight: 650;
}

.logs-page-size select {
    height: 35px;
    padding: 0 27px 0 10px;
    color: var(--ink-700);
    background: #ffffff;
    border: 1px solid #d7e1dc;
    border-radius: 8px;
    outline: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
}

.logs-page-size select:focus-visible,
.logs-page-controls button:focus-visible {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 2px;
}

.logs-page-summary {
    color: var(--ink-500);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.logs-page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logs-page-controls span {
    min-width: 88px;
    color: var(--ink-700);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.logs-page-controls button {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    padding: 0;
    color: var(--forest-700);
    background: #ffffff;
    border: 1px solid #d3dfd9;
    border-radius: 9px;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.logs-page-controls button:hover:not(:disabled) {
    color: #ffffff;
    background: var(--forest-700);
    border-color: var(--forest-700);
}

.logs-page-controls button:disabled {
    color: #aab4af;
    background: #f2f5f3;
    cursor: not-allowed;
}

.logs-page-controls svg {
    width: 16px;
    height: 16px;
}

/* User create and edit forms */
.user-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(270px, 0.75fr);
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.user-form-card,
.form-side-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.user-form-card {
    overflow: hidden;
}

.user-form-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 25px;
    background: linear-gradient(135deg, #ffffff, #f7fbf9);
    border-bottom: 1px solid var(--line);
}

.user-form-card__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: var(--forest-700);
    background: var(--forest-100);
    border-radius: 13px;
}

.user-form-card__icon svg {
    width: 22px;
    height: 22px;
}

.user-form-card__title h2,
.user-form-card__title p {
    margin: 0;
}

.user-form-card__title h2 {
    color: var(--ink-900);
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.user-form-card__title p {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 0.76rem;
}

.user-form-body {
    padding: 26px;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}

.user-form-field {
    min-width: 0;
}

.user-form-field--full {
    grid-column: 1 / -1;
}

.user-form-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px;
    color: var(--ink-700);
    font-size: 0.8rem;
    font-weight: 750;
}

.required-mark {
    color: #b94d42;
}

.optional-label {
    margin-left: auto;
    color: #8c9892;
    font-size: 0.68rem;
    font-weight: 650;
}

.user-control-shell {
    position: relative;
    display: flex;
    min-height: 50px;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d1dcd6;
    border-radius: 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.user-control-shell:hover {
    border-color: #aebfb7;
}

.user-control-shell:focus-within {
    background: #ffffff;
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(24, 117, 83, 0.11);
}

.user-control-shell__icon {
    width: 19px;
    height: 19px;
    margin-left: 15px;
    flex: 0 0 19px;
    color: #75847d;
}

.user-form-input,
.user-form-select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px 0 11px;
    color: var(--ink-900);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 0.86rem;
}

.user-form-input::placeholder {
    color: #9aa59f;
}

.user-form-input:-webkit-autofill,
.user-form-input:-webkit-autofill:hover,
.user-form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--ink-900);
}

.user-form-select {
    padding-right: 38px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.select-shell::after {
    position: absolute;
    right: 17px;
    width: 8px;
    height: 8px;
    content: "";
    border-right: 2px solid #718079;
    border-bottom: 2px solid #718079;
    pointer-events: none;
    transform: translateY(-3px) rotate(45deg);
}

.user-password-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    margin-right: 3px;
    flex: 0 0 44px;
    place-items: center;
    color: var(--ink-500);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.user-password-toggle:hover {
    color: var(--forest-700);
    background: var(--forest-50);
}

.user-password-toggle:focus-visible,
.save-user-button:focus-visible,
.cancel-user-button:focus-visible {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 3px;
}

.user-password-toggle svg {
    width: 19px;
    height: 19px;
}

.user-form-hint {
    margin: 7px 0 0;
    color: #7c8983;
    font-size: 0.72rem;
    line-height: 1.5;
}

.user-field-validation {
    display: block;
    min-height: 17px;
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.72rem;
}

.user-field-validation:empty {
    min-height: 0;
    margin-top: 0;
}

.user-form-summary {
    margin: 0 0 22px;
    padding: 13px 15px;
    color: #8f1d15;
    background: var(--danger-bg);
    border: 1px solid #f3c7c3;
    border-radius: 11px;
    font-size: 0.8rem;
}

.user-form-summary ul {
    margin: 0;
    padding-left: 19px;
}

.user-form-summary li + li {
    margin-top: 4px;
}

.account-status-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 17px;
    background: #f8fbf9;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.account-status-control__copy strong,
.account-status-control__copy span {
    display: block;
}

.account-status-control__copy strong {
    color: var(--ink-900);
    font-size: 0.84rem;
}

.account-status-control__copy span {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 0.72rem;
}

.status-switch {
    position: relative;
    width: 48px;
    height: 27px;
    flex: 0 0 48px;
    cursor: pointer;
}

.status-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.status-switch__track {
    position: absolute;
    inset: 0;
    background: #c7d0cc;
    border-radius: 999px;
    transition: background 160ms ease;
}

.status-switch__track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    content: "";
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(22, 44, 36, 0.24);
    transition: transform 160ms ease;
}

.status-switch__input:checked ~ .status-switch__track {
    background: var(--forest-600);
}

.status-switch__input:checked ~ .status-switch__track::after {
    transform: translateX(21px);
}

.status-switch__input:focus-visible ~ .status-switch__track {
    outline: 3px solid rgba(217, 170, 69, 0.75);
    outline-offset: 3px;
}

.user-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 26px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
}

.save-user-button,
.cancel-user-button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 750;
}

.save-user-button {
    color: #ffffff;
    background: var(--forest-800);
    border: 1px solid var(--forest-800);
    box-shadow: 0 9px 20px rgba(13, 73, 53, 0.17);
    cursor: pointer;
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.save-user-button:hover {
    background: var(--forest-950);
    box-shadow: 0 12px 24px rgba(13, 73, 53, 0.23);
    transform: translateY(-1px);
}

.save-user-button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.cancel-user-button {
    color: var(--ink-700) !important;
    background: #ffffff;
    border: 1px solid #d1dcd6;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.cancel-user-button:hover {
    color: var(--forest-800) !important;
    background: var(--forest-50);
    border-color: #bdd3c9;
}

.save-user-button svg,
.cancel-user-button svg {
    width: 16px;
    height: 16px;
}

.user-form-aside {
    display: grid;
    gap: 16px;
}

.form-side-panel {
    padding: 22px;
}

.form-side-panel__icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    place-items: center;
    color: var(--forest-700);
    background: var(--forest-100);
    border-radius: 12px;
}

.form-side-panel__icon svg {
    width: 21px;
    height: 21px;
}

.form-side-panel h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 0.98rem;
}

.form-side-panel > p {
    margin: 8px 0 0;
    color: var(--ink-500);
    font-size: 0.77rem;
    line-height: 1.6;
}

.form-guidance-list {
    display: grid;
    margin: 19px 0 0;
    padding: 0;
    gap: 13px;
    list-style: none;
}

.form-guidance-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-700);
    font-size: 0.75rem;
    line-height: 1.5;
}

.form-guidance-list svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    color: var(--forest-600);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.user-profile-summary__avatar {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    color: var(--forest-800);
    background: var(--forest-100);
    border-radius: 13px;
    font-size: 0.9rem;
    font-weight: 850;
}

.user-profile-summary__copy {
    min-width: 0;
}

.user-profile-summary__copy strong,
.user-profile-summary__copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-summary__copy strong {
    color: var(--ink-900);
    font-size: 0.83rem;
}

.user-profile-summary__copy span {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 0.7rem;
}

@media (max-width: 1020px) {
    .workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-registration-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .login-shell {
        display: block;
    }

    .login-visual {
        min-height: 320px;
        padding: 30px clamp(22px, 6vw, 52px) 78px;
    }

    .login-visual__content {
        padding: 48px 0 0;
    }

    .login-visual h1 {
        max-width: 680px;
        font-size: clamp(2.15rem, 8vw, 3.5rem);
    }

    .login-visual__lead,
    .login-benefits,
    .login-visual__footer {
        display: none;
    }

    .login-panel {
        position: relative;
        z-index: 1;
        min-height: auto;
        padding: 0 22px 48px;
        background: var(--canvas);
    }

    .login-card {
        width: min(100%, 560px);
        margin-top: -48px;
        padding: clamp(28px, 6vw, 44px);
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 680px) {
    .topbar-inner,
    .dashboard-main {
        width: min(100% - 28px, 1240px);
    }

    .topbar-inner {
        min-height: 70px;
    }

    .app-brand__text span,
    .user-summary__copy,
    .logout-button span {
        display: none;
    }

    .topbar-actions {
        gap: 10px;
    }

    .logout-button {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .dashboard-main {
        padding-top: 26px;
    }

    .dashboard-hero {
        min-height: 0;
        padding: 28px 24px;
        border-radius: 22px;
    }

    .hero-date {
        width: 100%;
        min-width: 0;
    }

    .workspace-section {
        margin-top: 36px;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .workspace-card {
        min-height: 220px;
    }

    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .school-system-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .school-system-card__visual {
        min-height: 180px;
        padding: 50px 24px 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(15, 57, 43, 0.08);
    }

    .school-system-card__logo {
        width: 112px;
        height: 112px;
        border-radius: 23px;
    }

    .school-system-card__body {
        min-height: 225px;
        padding: 24px 22px 22px;
    }
}

@media (max-width: 480px) {
    .login-visual {
        min-height: 290px;
    }

    .login-brand__mark {
        width: 62px;
        height: 62px;
        border-radius: 15px;
    }

    .login-brand__copy strong {
        font-size: 1.15rem;
    }

    .login-card {
        padding: 27px 22px;
        border-radius: 20px;
    }

    .login-card__intro {
        margin-bottom: 26px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .user-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .users-page-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 24px;
    }

    .users-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .user-search {
        width: 100%;
    }

    .users-table-shell {
        overflow: visible;
    }

    .users-table {
        display: block;
        min-width: 0;
    }

    .users-table thead {
        display: none;
    }

    .users-table tbody {
        display: grid;
        padding: 14px;
        gap: 12px;
    }

    .users-table tbody tr[data-user-row] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 16px;
        gap: 15px 18px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(15, 45, 35, 0.04);
    }

    .users-table tbody tr[data-user-row]:hover {
        background: #ffffff;
    }

    .users-table td {
        display: flex;
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 0;
        gap: 5px;
        border: 0;
    }

    .users-table td::before {
        content: attr(data-label);
        color: #89968f;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .users-table .user-cell {
        grid-column: 1 / -1;
        padding-bottom: 14px;
        border-bottom: 1px solid #e7eeea;
    }

    .users-table .user-cell::before {
        display: none;
    }

    .users-table .user-email-cell,
    .users-table .user-actions-cell {
        grid-column: 1 / -1;
    }

    .language-table .language-name-cell {
        order: -1;
    }

    .language-table .language-actions-cell {
        width: auto;
        text-align: left;
    }

    .interview-table .interview-name-cell {
        order: -2;
    }

    .interview-table .interview-arabic-cell {
        grid-column: 1 / -1;
        order: -1;
        padding-bottom: 14px;
        border-bottom: 1px solid #e7eeea;
    }

    .interview-table .interview-arabic-text {
        max-width: none;
    }

    .interview-table .interview-actions-cell {
        width: auto;
        text-align: left;
    }

    .user-email {
        width: 100%;
        max-width: none;
    }

    .edit-user-button {
        width: 100%;
    }

    .users-no-results {
        display: block;
    }

    .users-no-results td {
        display: block;
        padding: 28px 14px;
    }

    .users-no-results td::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .users-main {
        padding-top: 22px;
    }

    .users-page-header {
        border-radius: 18px;
    }

    .add-user-button {
        width: 100%;
    }

    .user-stats {
        gap: 10px;
    }

    .user-stat {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .user-stat__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .users-panel {
        border-radius: 17px;
    }
}

@media (max-width: 1020px) {
    .user-form-layout {
        grid-template-columns: 1fr;
    }

    .user-form-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .user-form-grid,
    .user-form-aside {
        grid-template-columns: 1fr;
    }

    .user-form-field--full {
        grid-column: auto;
    }

    .user-form-body {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .user-form-card,
    .form-side-panel {
        border-radius: 17px;
    }

    .user-form-card__header {
        align-items: flex-start;
        padding: 20px;
    }

    .user-form-body {
        padding: 20px;
    }

    .account-status-control {
        align-items: flex-start;
    }

    .user-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .save-user-button,
    .cancel-user-button {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .logs-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .logs-toolbar__filters {
        width: 100%;
        justify-content: flex-start;
    }

    .log-search {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 760px) {
    .log-header-note {
        width: 100%;
        min-width: 0;
    }

    .logs-toolbar__filters {
        align-items: stretch;
        flex-direction: column;
    }

    .log-search,
    .log-controller-filter {
        width: 100%;
        flex: none;
    }

    .logs-table tbody tr[data-log-row] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 16px;
        gap: 15px 18px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(15, 45, 35, 0.04);
    }

    .logs-table tbody tr[data-log-row]:hover {
        background: #ffffff;
    }

    .logs-table .log-user-cell {
        grid-column: 1 / -1;
        padding-bottom: 14px;
        border-bottom: 1px solid #e7eeea;
    }

    .logs-table .log-user-cell::before {
        display: none;
    }

    .logs-table .log-device-cell,
    .logs-table .log-actions-cell {
        grid-column: 1 / -1;
    }

    .log-device {
        width: 100%;
        max-width: none;
    }

    .view-log-button {
        width: 100%;
    }

    .logs-pagination {
        flex-wrap: wrap;
    }

    .logs-page-summary {
        width: 100%;
        order: 3;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .log-header-note {
        padding: 12px 13px;
    }

    .logs-panel {
        border-radius: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
