html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #000000;
}

/* ─── Premium Scrollbar — student layouts ─── */
.student-school-layout ::-webkit-scrollbar,
.student-individual-layout ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.student-school-layout ::-webkit-scrollbar-track,
.student-individual-layout ::-webkit-scrollbar-track {
    background: transparent;
}
.student-school-layout ::-webkit-scrollbar-thumb,
.student-individual-layout ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}
.student-school-layout ::-webkit-scrollbar-thumb:hover,
.student-individual-layout ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
.student-school-layout ::-webkit-scrollbar-corner,
.student-individual-layout ::-webkit-scrollbar-corner {
    background: transparent;
}

@supports (scrollbar-width: thin) {
    .student-school-layout,
    .student-school-layout *,
    .student-individual-layout,
    .student-individual-layout * {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }
}

/* Light theme scrollbar override */
.student-school-layout.theme-light ::-webkit-scrollbar-thumb,
.student-individual-layout.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}
.student-school-layout.theme-light ::-webkit-scrollbar-thumb:hover,
.student-individual-layout.theme-light ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

@supports (scrollbar-width: thin) {
    .student-school-layout.theme-light,
    .student-school-layout.theme-light *,
    .student-individual-layout.theme-light,
    .student-individual-layout.theme-light * {
        scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Super Admin theme (global fallback) */
.superadmin-layout,
.schooladmin-layout,
.teacher-layout,
.student-school-layout,
.student-individual-layout {
    background: #18181b !important;
    color: #fafafa;
}
.superadmin-layout .sidebar,
.schooladmin-layout .sidebar,
.teacher-layout .sidebar,
.student-school-layout .sidebar,
.student-individual-layout .sidebar {
    background: #0f0f10 !important;
}
.superadmin-layout .nav-item.active,
.schooladmin-layout .nav-item.active,
.teacher-layout .nav-item.active,
.student-school-layout .nav-item.active,
.student-individual-layout .nav-item.active {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}
.superadmin-layout .main-content,
.schooladmin-layout .main-content,
.teacher-layout .main-content,
.student-school-layout .main-content,
.student-individual-layout .main-content {
    background: #18181b !important;
}
.dashboard-cards .card,
.card.card-wide {
    background: #2d2d2d !important;
    border-color: rgba(255,255,255,0.06);
}
.dashboard-cards .card-title,
.card-wide .card-title {
    color: #9ca3af;
}
.dashboard-cards .card-value,
.card-wide .card-value {
    color: #fff;
}

/* Shared card/table styles for admin pages */
.sa-card {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.sa-table-wrap {
    overflow-x: auto;
}
.sa-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8e8e8;
}
.sa-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sa-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sa-empty {
    text-align: center;
    color: #9ca3af;
    padding: 2rem !important;
}
.sa-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    text-align: center;
}
.sa-empty-state p {
    margin: 0 0 0.25rem;
    font-weight: 500;
    color: #a1a1aa;
}
.sa-actions {
    margin-top: 1rem;
}
.sa-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}
.sa-btn-primary {
    background: #22c55e;
    color: #fff;
}
.sa-btn-primary:hover {
    background: #16a34a;
}
.wizard-placeholder {
    color: #9ca3af;
}

/* Simple tab styling for School Admin pages */
.sa-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sa-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
}
.sa-tab.active {
    color: #fafafa;
    background: rgba(255,255,255,0.05);
}

.sa-table-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.sa-search {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #111827;
    color: #f9fafb;
    font-size: 0.85rem;
}
.sa-filter {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #111827;
    color: #f9fafb;
}

.student-school-layout select,
.student-individual-layout select {
    background-color: #111827;
    color: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    accent-color: #10b981;
    outline: none;
}
.student-school-layout select:focus,
.student-individual-layout select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.student-school-layout select option,
.student-individual-layout select option {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 0.5rem;
}
.student-school-layout select option:checked,
.student-individual-layout select option:checked {
    background: linear-gradient(0deg, #059669 0%, #059669 100%);
    color: #fff;
}
.student-school-layout.theme-light select,
.student-individual-layout.theme-light select {
    background-color: #ffffff;
    color: #111827;
    border-color: #d1d5db;
    accent-color: #059669;
}
.student-school-layout.theme-light select:focus,
.student-individual-layout.theme-light select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}
.student-school-layout.theme-light select option,
.student-individual-layout.theme-light select option {
    background-color: #ffffff;
    color: #111827;
    font-size: 0.85rem;
}
.student-school-layout.theme-light select option:checked,
.student-individual-layout.theme-light select option:checked {
    background: linear-gradient(0deg, #d1fae5 0%, #d1fae5 100%);
    color: #065f46;
}

/* ============ Auth pages (ChatGPT-style) ============ */
.qa-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2.5rem 1.25rem;
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(900px 500px at 90% 10%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(800px 500px at 40% 110%, rgba(244, 63, 94, 0.10), transparent 55%),
        #0b0b0f;
}

/* ============ Auth pages (Image-style split) ============ */
.qa-auth2 {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 3.25rem 1.5rem;
    background: #f5f6f8;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.qa-auth2-frame {
    width: min(1220px, 100%);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 720px;
}
@media (max-width: 980px) {
    .qa-auth2-frame { grid-template-columns: 1fr; min-height: auto; }
    .qa-auth2-right { min-height: 320px; }
}

.qa-auth2-left {
    padding: 3.25rem 3.75rem;
}
.qa-auth2-brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.75rem;
}
.qa-auth2-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #0b0b0f;
    background: linear-gradient(135deg, #22c55e 0%, #a3ffb8 70%);
}
.qa-auth2-title {
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}
.qa-auth2-sub {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    color: #64748b;
}

.qa-auth2-form { margin-top: 1.25rem; }
.qa-auth2-field { margin-bottom: 1rem; }
.qa-auth2-field label {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.qa-auth2-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    outline: none;
}
.qa-auth2-input::placeholder { color: #94a3b8; }
.qa-auth2-input:focus {
    border-color: rgba(17, 24, 39, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.10);
}

.qa-auth2-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
}
.qa-auth2-submit:hover:not(:disabled) { background: #1e293b; }
.qa-auth2-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.qa-auth2-minilinks {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: #64748b;
}
.qa-auth2-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 650;
}
.qa-auth2-link:hover { text-decoration: underline; }
.qa-auth2-switch {
    margin-top: 1.35rem;
    font-size: 0.95rem;
    color: #64748b;
}
.qa-auth2-dot { padding: 0 0.55rem; color: #cbd5e1; }

.qa-auth2-error {
    margin-top: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.06);
    color: #991b1b;
    font-weight: 600;
}

.qa-auth2-right {
    position: relative;
    background: #ffffff;
}
.qa-auth2-hero {
    position: absolute;
    inset: 18px;
    border-radius: 18px 18px 18px 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
    background:
        url('/auth-hero.jpg');
    background-size: cover;
    /* Bias to the right so we see the photo side */
    background-position: 78% 40%;
}
.qa-auth2-form {
    margin-top: 1.35rem;
}

.qa-auth2-social {
    margin-top: 0.25rem;
}
.qa-auth2-socialBtn {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    font-weight: 650;
}
.qa-auth2-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    margin: 1.2rem 0 1.0rem;
    color: #94a3b8;
    font-size: 0.9rem;
}
.qa-auth2-divider::before,
.qa-auth2-divider::after {
    content: "";
    height: 1px;
    background: #e5e7eb;
}

.qa-auth2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.15rem;
    margin-bottom: 0.9rem;
    color: #64748b;
    font-size: 0.92rem;
}
.qa-auth2-check {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    user-select: none;
}
.qa-auth2-check input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.qa-auth2-topLogo {
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2.0rem;
}
.qa-auth2-topLogo .dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #0f172a;
    display: inline-block;
}
.qa-auth2-heroText {
    max-width: 420px;
    text-align: center;
    padding: 1.05rem 1.1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}
.qa-auth2-heroHeadline {
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #ffffff;
}
.qa-auth2-heroBody {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.98rem;
    line-height: 1.45;
}
.qa-auth2-heroBadges {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.qa-auth2-badge {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(15, 23, 42, 0.22);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.qa-auth2-frame--select .qa-auth2-roleList {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}
.qa-auth2-frame--select .qa-auth2-left { padding-top: 3.25rem; }
.qa-auth2-role {
    display: block;
    padding: 1rem 1rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.qa-auth2-role:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.10);
}
.qa-auth2-roleName {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.qa-auth2-roleDesc {
    margin-top: 0.25rem;
    color: #64748b;
}

/* ============ Student auth  ============ */
.qs-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #121212;
    color: #e5e7eb;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow: hidden;
}
.qs-auth::before {
    content: "";
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(800px 420px at 15% 20%, rgba(255,255,255,0.06), transparent 55%),
        radial-gradient(680px 360px at 85% 30%, rgba(34,197,94,0.08), transparent 60%),
        radial-gradient(520px 320px at 70% 90%, rgba(99,102,241,0.07), transparent 60%);
    pointer-events: none;
}
.qs-auth-stage {
    width: min(980px, 100%);
    padding: 3rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

/* Student entry split layout */
.qs-auth-split {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 2.25rem;
    align-items: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 980px) {
    .qs-auth-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
.qs-auth-left .qs-auth-stage {
    width: auto;
    padding: 0;
}
.qs-auth-right {
    position: relative;
    min-height: 720px;
    border-radius: 0;
    background: transparent;
    border: none;
    overflow: visible;
}
.qs-auth-illustration {
    position: absolute;
    inset: 0;
    background: transparent url('/questifystudent.png') no-repeat center;
    background-size: contain;
    filter: none;
}
.qs-auth-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}
.qs-auth-shirtBrand {
    position: absolute;
    /* Approximate hoodie chest area */
    left: 58%;
    top: 58%;
    transform: translate(-50%, -50%) rotate(-4deg);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.92);
    font-weight: 750;
    letter-spacing: -0.02em;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    mix-blend-mode: screen;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.qs-auth-brand {
    font-weight: 650;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.02em;
}
.qs-auth-headline {
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    margin-top: 0.25rem;
}
.qs-auth-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 0.5rem;
}
.qs-auth-card {
    width: 260px;
    height: 120px;
    border-radius: 18px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.10);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.4rem;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
    position: relative;
}
.qs-auth-card::after {
    content: "→";
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: rgba(255,255,255,0.55);
    font-size: 1.15rem;
    transform: translateX(-2px);
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 0.75;
}
.qs-auth-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.18);
}
.qs-auth-card:hover::after {
    transform: translateX(2px);
    opacity: 1;
}
.qs-auth-cardTitle {
    font-style: italic;
    font-weight: 650;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.05;
}

.qs-auth-headline {
    position: relative;
}
.qs-auth-headline::after {
    content: "";
    display: block;
    margin-top: 0.85rem;
    width: 76px;
    height: 2px;
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}

.qs-phone {
    width: 360px;
    height: 640px;
    border-radius: 22px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
}
.qs-phone-top {
    text-align: center;
    font-weight: 650;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
}
.qs-searchRow {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #efeff4;
    border-radius: 999px;
    padding: 10px 12px;
    color: #111827;
}
.qs-search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
}
.qs-clear {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(17,24,39,0.10);
    color: #111827;
    font-size: 1.1rem;
    line-height: 1;
}
.qs-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding-right: 4px;
}
.qs-listItem {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.85);
    text-align: left;
}
.qs-listItem.muted { color: rgba(255,255,255,0.55); }
.qs-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
}
.qs-avatar-img {
    object-fit: contain;
    background: rgba(255,255,255,0.92);
    padding: 2px;
}
.qs-schoolName {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qs-footnote {
    margin-top: auto;
    padding-top: 18px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.74rem;
}

.qs-login {
    width: 360px;
    height: 640px;
    border-radius: 22px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
}
.qs-login-brand {
    text-align: center;
    font-weight: 650;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
}
.qs-login-logoWrap {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}
.qs-login-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    padding: 8px;
}
.qs-login-school {
    margin-top: 28px;
    text-align: center;
    font-weight: 650;
    color: rgba(255,255,255,0.92);
}
.qs-login-form {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.qs-login-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
}
.qs-login-input {
    width: 100%;
    border-radius: 999px;
    border: none;
    outline: none;
    padding: 12px 14px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
}
.qs-login-mini {
    text-align: right;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    margin-top: -6px;
}
.qs-login-btn {
    margin-top: 4px;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.95);
    font-weight: 650;
}
.qs-login-error {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #fecaca;
}
.qs-login-footer {
    margin-top: auto;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-weight: 650;
}

.qa-auth-shell {
    width: min(980px, 100%);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 15, 16, 0.78);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.04) inset;
}

.qa-auth-header,
.qa-auth-footer {
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.qa-auth-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
}
.qa-auth-body {
    padding: 1.4rem;
}

.qa-brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}
.qa-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b0b0f;
    background: linear-gradient(135deg, #22c55e 0%, #a3ffb8 60%, #ffffff 140%);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18);
}
.qa-brand-name {
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #fafafa;
}
.qa-brand-sub {
    color: #a1a1aa;
    font-size: 0.92rem;
    margin-top: 0.15rem;
}

.qa-role-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}
@media (max-width: 980px) {
    .qa-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .qa-role-grid { grid-template-columns: 1fr; }
}

.qa-role {
    text-align: left;
    padding: 0.9rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #e5e7eb;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.qa-role:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(34, 197, 94, 0.25);
}
.qa-role.active {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.45);
}
.qa-role-title {
    font-weight: 650;
    color: #fafafa;
    letter-spacing: -0.01em;
}
.qa-role-desc {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    color: #a1a1aa;
}

.qa-field { margin-bottom: 0.9rem; }
.qa-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: #d4d4d8;
    font-size: 0.9rem;
}
.qa-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(10,10,12,0.7);
    color: #fafafa;
    outline: none;
}
.qa-input:focus {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.qa-btn {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: #fafafa;
    font-weight: 650;
}
.qa-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.qa-btn-primary {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(22,163,74,0.9));
    box-shadow: 0 14px 36px rgba(34, 197, 94, 0.18);
}
.qa-btn-primary:hover { filter: brightness(1.03); }
.qa-btn-ghost {
    width: auto;
    padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,0.04);
}

.qa-inline-help {
    margin-top: 0.55rem;
    color: #a1a1aa;
    font-size: 0.9rem;
}
.qa-link {
    color: #a3ffb8;
    text-decoration: none;
}
.qa-link:hover { text-decoration: underline; }
.qa-error {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.08);
    color: #fecaca;
}
.qa-footnote {
    color: #71717a;
    font-size: 0.85rem;
}
.qa-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #e5e7eb;
}

.qa-school-picker {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}
.qa-school-results {
    margin-top: 0.55rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,10,12,0.6);
    border-radius: 12px;
    overflow: hidden;
}
.qa-school-item {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: transparent;
    color: #e5e7eb;
}
.qa-school-item:hover { background: rgba(255,255,255,0.04); }
.qa-school-item.selected { background: rgba(34, 197, 94, 0.10); }
.qa-school-name { font-weight: 650; color: #fafafa; }
.qa-school-code { font-size: 0.82rem; color: #a1a1aa; margin-top: 0.15rem; }
.sa-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}
.sa-link-btn {
    background: none;
    border: none;
    color: #22c55e;
    cursor: pointer;
    font-size: 0.85rem;
}
.sa-link-btn:hover { text-decoration: underline; }
.sa-link-btn.sa-danger {
    color: #f97373;
}

/* Status badges for student/test tables */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-badge.status-scheduled,
.status-badge.status-available { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-badge.status-completed { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.status-badge.status-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-badge.status-easy { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-badge.status-medium { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-badge.status-hard { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.sa-btn-outline {
    background: transparent;
    color: #22c55e;
    border: 1px solid #22c55e;
}
.sa-btn-outline:hover {
    background: rgba(34, 197, 94, 0.1);
}
.sa-quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.sa-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sa-activity-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e4e4e7;
}
.sa-activity-list li:last-child { border-bottom: none; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.form-field label {
    display: block;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}
.form-field .form-control,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(30, 41, 59, 0.8);
    color: #f9fafb;
    font-size: 0.9rem;
}
.form-field .form-control:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Settings info cards - readable display */
.settings-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.settings-info-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 1rem;
}
.settings-info-card .label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.settings-info-card .value {
    font-size: 0.95rem;
    color: #f9fafb;
}
.settings-info-card .value:empty::before { content: "—"; color: #6b7280; }

/* Modal overlay and content for teacher pages */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}
.modal-content {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-content h3 {
    margin: 0 0 1rem;
    color: #fafafa;
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}
.modal-err {
    color: #ef4444;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

/* Shared icon set - real SVG, no emojis */
.icon-empty-book {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cpath d='M8 7h8'/%3E%3Cpath d='M8 11h8'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.6;
}
.icon-empty-clipboard {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.6;
}
.icon-empty-inbox {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.6;
}
.chat-icon-refresh,
.chat-icon-attach,
.chat-icon-send,
.chat-icon-user,
.chat-icon-copy {
    display: block;
}
.chat-icon-refresh {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16'/%3E%3Cpath d='M16 21h5v-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chat-icon-attach {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chat-icon-send {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chat-icon-user {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chat-icon-copy {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========== Student layouts: Light theme (white background, black text) ========== */
.student-school-layout.theme-light,
.student-individual-layout.theme-light {
    background: #fafafa !important;
    color: #111827;
}
.student-school-layout.theme-light .sidebar,
.student-individual-layout.theme-light .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb;
}
.student-school-layout.theme-light .sidebar-app-title,
.student-individual-layout.theme-light .sidebar-app-title { color: #111827; }
.student-school-layout.theme-light .sidebar-icon-btn,
.student-individual-layout.theme-light .sidebar-icon-btn {
    color: #374151;
}
.student-school-layout.theme-light .sidebar-icon-btn:hover,
.student-individual-layout.theme-light .sidebar-icon-btn:hover {
    background: #f3f4f6;
}
.student-school-layout.theme-light .nav-section-title,
.student-individual-layout.theme-light .nav-section-title { color: #9ca3af; }
.student-school-layout.theme-light .nav-item,
.student-individual-layout.theme-light .nav-item { color: #374151; }
.student-school-layout.theme-light .nav-item .nav-icon,
.student-individual-layout.theme-light .nav-item .nav-icon { color: #9ca3af; }
.student-school-layout.theme-light .nav-item:hover,
.student-individual-layout.theme-light .nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}
.student-school-layout.theme-light .nav-item.active,
.student-individual-layout.theme-light .nav-item.active {
    background: rgba(5, 150, 105, 0.08) !important;
    color: #059669 !important;
}
.student-school-layout.theme-light .nav-item.active .nav-icon,
.student-individual-layout.theme-light .nav-item.active .nav-icon {
    color: #059669 !important;
}
.student-school-layout.theme-light .nav-item.active:hover,
.student-individual-layout.theme-light .nav-item.active:hover {
    background: rgba(5, 150, 105, 0.12) !important;
}
.student-school-layout.theme-light .sidebar-user,
.student-individual-layout.theme-light .sidebar-user {
    border-top-color: #e5e7eb;
    background: #ffffff;
}
.student-school-layout.theme-light .sidebar-username,
.student-individual-layout.theme-light .sidebar-username { color: #111827; }
.student-school-layout.theme-light .sidebar-user-role,
.student-individual-layout.theme-light .sidebar-user-role { color: #9ca3af; }
.student-school-layout.theme-light .sidebar-logout-btn,
.student-individual-layout.theme-light .sidebar-logout-btn {
    border-color: #e5e7eb;
    color: #9ca3af;
}
.student-school-layout.theme-light .sidebar-logout-btn:hover,
.student-individual-layout.theme-light .sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.student-school-layout.theme-light .main-content,
.student-individual-layout.theme-light .main-content {
    background: #fafafa !important;
}
.student-school-layout.theme-light .page-title,
.student-individual-layout.theme-light .page-title { color: #111827; }
.student-school-layout.theme-light .dashboard-cards .card,
.student-individual-layout.theme-light .dashboard-cards .card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
}
.student-school-layout.theme-light .dashboard-cards .card-title,
.student-individual-layout.theme-light .dashboard-cards .card-title { color: #6b7280; }
.student-school-layout.theme-light .dashboard-cards .card-value,
.student-individual-layout.theme-light .dashboard-cards .card-value { color: #111827; }
.student-school-layout.theme-light .sa-card,
.student-individual-layout.theme-light .sa-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}
.student-school-layout.theme-light .sa-table,
.student-individual-layout.theme-light .sa-table { color: #374151; }
.student-school-layout.theme-light .sa-table th,
.student-individual-layout.theme-light .sa-table th {
    color: #6b7280;
    border-bottom-color: #e5e7eb;
}
.student-school-layout.theme-light .sa-table td,
.student-individual-layout.theme-light .sa-table td { border-bottom-color: #f3f4f6; }
.student-school-layout.theme-light .sa-search,
.student-school-layout.theme-light .sa-filter,
.student-individual-layout.theme-light .sa-search,
.student-individual-layout.theme-light .sa-filter {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}
.student-school-layout.theme-light .sa-btn-outline,
.student-individual-layout.theme-light .sa-btn-outline {
    color: #059669;
    border-color: #059669;
}
.student-school-layout.theme-light .sa-btn-outline:hover,
.student-individual-layout.theme-light .sa-btn-outline:hover {
    background: #ecfdf5;
}
.student-school-layout.theme-light .sa-link-btn,
.student-individual-layout.theme-light .sa-link-btn { color: #059669; }
.student-school-layout.theme-light .sa-activity-list li,
.student-individual-layout.theme-light .sa-activity-list li {
    color: #374151;
    border-bottom-color: #f3f4f6;
}
.student-school-layout.theme-light .sidebar-open,
.student-individual-layout.theme-light .sidebar-open {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
}
.student-school-layout.theme-light .fab,
.student-individual-layout.theme-light .fab {
    background: #111827;
    color: #ffffff;
}
.student-school-layout.theme-light .fab:hover,
.student-individual-layout.theme-light .fab:hover {
    background: #1f2937;
}
.student-school-layout.theme-light .sa-tab,
.student-individual-layout.theme-light .sa-tab { color: #6b7280; }
.student-school-layout.theme-light .sa-tab.active,
.student-individual-layout.theme-light .sa-tab.active {
    color: #111827;
    background: #f3f4f6;
}
.student-school-layout.theme-light .sa-tabs,
.student-individual-layout.theme-light .sa-tabs {
    border-bottom-color: #e5e7eb;
}

/* Page subtitle – works in both themes */
.page-subtitle {
    margin: -0.5rem 0 1.5rem;
    font-size: 0.9375rem;
}
.student-school-layout .page-subtitle,
.student-individual-layout .page-subtitle { color: #9ca3af; }
.student-school-layout.theme-light .page-subtitle,
.student-individual-layout.theme-light .page-subtitle { color: #6b7280; }

.student-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.card-desc {
    color: #71717a;
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
}
.student-school-layout.theme-light .card-desc,
.student-individual-layout.theme-light .card-desc { color: #6b7280; }
.student-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.section-title { margin-bottom: 1rem; }
.sa-empty-item { color: #71717a; }
.student-school-layout.theme-light .sa-empty-item,
.student-individual-layout.theme-light .sa-empty-item { color: #6b7280; }
.sa-empty-hint { font-size: 0.9rem; color: #71717a; }
.student-school-layout.theme-light .sa-empty-hint,
.student-individual-layout.theme-light .sa-empty-hint { color: #6b7280; }

/* Chat / Learn With AI in light theme */
.student-school-layout.theme-light .chat-container.learn-ai,
.student-individual-layout.theme-light .chat-container.learn-ai {
    background: #fafafa;
}
.student-school-layout.theme-light .chat-model,
.student-individual-layout.theme-light .chat-model { color: #111827; }
.student-school-layout.theme-light .chat-ready-text,
.student-individual-layout.theme-light .chat-ready-text { color: #374151; }
.student-school-layout.theme-light .chat-message.assistant .chat-bubble,
.student-individual-layout.theme-light .chat-message.assistant .chat-bubble { color: #374151; }
.student-school-layout.theme-light .chat-message.user .chat-bubble,
.student-individual-layout.theme-light .chat-message.user .chat-bubble { background: #e5e7eb; color: #111827; }
.student-school-layout.theme-light .chat-input-inner,
.student-individual-layout.theme-light .chat-input-inner {
    background: #ffffff;
    border-color: #d1d5db;
}
.student-school-layout.theme-light .chat-input,
.student-individual-layout.theme-light .chat-input { color: #111827; }
.student-school-layout.theme-light .chat-disclaimer,
.student-individual-layout.theme-light .chat-disclaimer { color: #6b7280; }

/* Theme toggle button in main content – light theme */
.student-school-layout.theme-light .theme-toggle-btn,
.student-individual-layout.theme-light .theme-toggle-btn {
    border-color: #d1d5db;
    background: #ffffff;
    color: #374151;
}
.student-school-layout.theme-light .theme-toggle-btn:hover,
.student-individual-layout.theme-light .theme-toggle-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

/* Student Dashboard – sleek cards and sections */
.student-dashboard-cards .card {
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.student-school-layout .student-dashboard-cards .card,
.student-individual-layout .student-dashboard-cards .card {
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.student-school-layout.theme-light .student-dashboard-cards .card,
.student-individual-layout.theme-light .student-dashboard-cards .card {
    border-color: #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.student-dashboard-cards .card:hover {
    transform: translateY(-1px);
}
.student-school-layout.theme-light .student-dashboard-cards .card:hover,
.student-individual-layout.theme-light .student-dashboard-cards .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.student-dashboard-cards .card-value {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 0.25rem;
}
.sa-quick-actions {
    margin: 1.75rem 0;
}
.sa-quick-actions .sa-btn {
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
}
.section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.student-panel {
    border-radius: 12px;
}
.student-school-layout.theme-light .student-panel,
.student-individual-layout.theme-light .student-panel {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Learn With AI – tools strip and welcome */
.learn-ai-tools {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.learn-ai-tools .sa-btn {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}
.learn-ai-welcome-desc {
    font-size: 0.9375rem;
    color: #71717a;
    margin: 0.25rem 0 0;
}
.student-school-layout.theme-light .learn-ai-welcome-desc,
.student-individual-layout.theme-light .learn-ai-welcome-desc { color: #6b7280; }
.learn-ai-upload-hint {
    font-size: 0.8125rem;
    color: #71717a;
    margin-top: 0.75rem;
}
.student-school-layout.theme-light .learn-ai-upload-hint,
.student-individual-layout.theme-light .learn-ai-upload-hint { color: #6b7280; }
.chat-quick-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.chat-quick-row .chat-quick-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

/* Question Editor - Word-document style */
.question-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}
.question-editor-page {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #2d2d2d;
}
.question-editor-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #2d2d2d;
}
.question-editor-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}
.question-editor-body {
    padding: 1.5rem 2rem;
    flex: 1;
    overflow: auto;
}
.question-editor-textarea {
    width: 100%;
    min-height: 400px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    color: #fafafa;
    resize: vertical;
}
.question-editor-textarea::placeholder {
    color: #71717a;
}
.question-editor-textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.question-editor-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Word-like Quill editor - ribbon toolbar + document */
.question-editor-body .ql-toolbar.ql-snow {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-bottom: none;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.question-editor-body .ql-toolbar .ql-formats {
    margin-right: 16px;
    padding-right: 12px;
    border-right: 1px solid #ced4da;
}
.question-editor-body .ql-toolbar .ql-formats:last-child {
    border-right: none;
}
.question-editor-body .ql-container.ql-snow {
    border: 1px solid #dee2e6;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}
.question-editor-body .ql-editor {
    min-height: 420px;
    font-family: Calibri, 'Segoe UI', Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
    padding: 1in;
    background: #fff;
}
.question-editor-body .ql-editor.ql-blank::before {
    color: #adb5bd;
    font-style: normal;
}
.question-editor-body .ql-snow .ql-stroke {
    stroke: #868e96;
}
.question-editor-body .ql-snow .ql-fill {
    fill: #495057;
}
.question-editor-body .ql-snow button:hover .ql-stroke {
    stroke: #22c55e;
}
.question-editor-body .ql-snow button.ql-active .ql-stroke {
    stroke: #22c55e;
}
.question-editor-body .ql-snow .ql-picker-label:hover .ql-stroke {
    stroke: #22c55e;
}

/* Light theme: My Subjects section */
.student-school-layout.theme-light .section-header h3 { color: #111827; }
.student-school-layout.theme-light .subject-card { background: #ffffff; border-color: #e5e7eb; }
.student-school-layout.theme-light .subject-card:hover { border-color: #059669; }
.student-school-layout.theme-light .subject-name { color: #111827; }
.student-school-layout.theme-light .subject-teacher { color: #6b7280; }
.student-school-layout.theme-light .subjects-empty { background: #f9fafb; border-color: #d1d5db; }
.student-school-layout.theme-light .subjects-empty p { color: #6b7280; }
.student-school-layout.theme-light .subjects-empty span { color: #9ca3af; }

/* ── Legal pages (Privacy & Terms) ── */
.legal-page {
    min-height: 100vh;
    background: #f9fafb;
    padding: 2rem 1rem;
    font-family: inherit;
}
.legal-container {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.legal-header {
    margin-bottom: 2rem;
}
.legal-logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
.legal-logo-q {
    width: 36px; height: 36px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.legal-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .25rem;
}
.legal-updated {
    color: #6b7280;
    font-size: .875rem;
    margin-bottom: 2rem;
}
.legal-page section {
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid #e5e7eb;
}
.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 1rem 0 .4rem;
}
.legal-page p, .legal-page li {
    color: #374151;
    line-height: 1.7;
    font-size: .95rem;
}
.legal-page ul {
    padding-left: 1.4rem;
}
.legal-page li { margin-bottom: .3rem; }
.legal-page a { color: #16a34a; }
.legal-page a:hover { text-decoration: underline; }
.legal-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.legal-footer a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 640px) {
    .legal-container { padding: 1.5rem 1.25rem; }
    .legal-page h1 { font-size: 1.5rem; }
}
