﻿
/* =========================================================
   E_LEARNP - APPLICATION DESIGN SYSTEM
   ========================================================= */
:root {
    --sidebar-width: 265px;
    --page-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text-primary: #172033;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e6eaf0;
    --sidebar-bg: #111827;
    --sidebar-bg-soft: #182234;
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #8290a5;
    --tenant-primary: #2563eb;
    --tenant-secondary: #64748b;
    --tenant-theme: #f5f7fb;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}


/* =========================================================
   BASE
   ========================================================= */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: inherit;
        text-decoration: none;
    }

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   APPLICATION SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--page-bg);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient( 180deg, #111827 0%, #101827 100% );
    color: var(--sidebar-text);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
}

    .app-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .app-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 10px;
    }


/* =========================================================
   SIDEBAR BRAND
   ========================================================= */

.sidebar-brand {
    min-height: 76px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-link {
    min-width: 0;
    display: flex;
    align-items: center;
    color: #ffffff;
}

    .brand-link:hover {
        color: #ffffff;
    }

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--tenant-primary);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tenant-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-logo-text {
    font-size: 21px;
    font-weight: 800;
}

.brand-details {
    min-width: 0;
    margin-left: 11px;
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-school {
    margin-top: 2px;
    color: #8996aa;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 155px;
}

.sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}


/* =========================================================
   TENANT PANEL
   ========================================================= */

.sidebar-tenant {
    margin: 16px 14px 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.tenant-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
}

    .tenant-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.tenant-details {
    min-width: 0;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.tenant-label {
    color: #718096;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.tenant-details strong {
    margin-top: 2px;
    color: #f8fafc;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-details small {
    color: #7d8aa0;
    font-size: 10px;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-navigation {
    padding: 8px 10px 20px;
}

.nav-section-label {
    margin: 19px 9px 7px;
    color: var(--sidebar-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.sidebar-nav-link {
    min-height: 40px;
    margin: 2px 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-radius: 7px;
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .sidebar-nav-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.075);
    }

    .sidebar-nav-link.active {
        color: #ffffff;
        background: linear-gradient( 90deg, var(--tenant-primary), rgba(37, 99, 235, 0.72) );
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.nav-icon {
    width: 29px;
    min-width: 29px;
    margin-right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ba8ba;
    font-size: 15px;
}

.sidebar-nav-link:hover .nav-icon,
.sidebar-nav-link.active .nav-icon {
    color: #ffffff;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    margin-top: auto;
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-badge {
    margin-bottom: 13px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.premium-icon {
    width: 28px;
    height: 28px;
    margin-right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.premium-badge strong {
    display: block;
    color: #e5e7eb;
    font-size: 11px;
}

.premium-badge small {
    color: #718096;
    font-size: 9px;
}

.sidebar-version {
    color: #64748b;
    font-size: 10px;
    text-align: center;
}

    .sidebar-version span {
        margin-left: 4px;
        color: #475569;
    }


/* =========================================================
   MAIN AREA
   ========================================================= */

.app-main {
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.app-topbar {
    height: 70px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    margin-right: 14px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
}

    .sidebar-toggle span {
        display: block;
        height: 2px;
        margin: 4px 0;
        background: #475569;
        border-radius: 2px;
    }

.page-context {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.page-context-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.page-context-separator {
    margin: 0 9px;
    color: #cbd5e1;
}

.page-context-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.topbar-school {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

.school-status {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10);
}

.topbar-school strong {
    display: block;
    color: var(--text-primary);
    font-size: 11px;
}

.topbar-school small {
    display: block;
    margin-top: 1px;
    color: var(--text-muted);
    font-size: 9px;
}

.user-menu {
    display: flex;
    align-items: center;
    padding-left: 18px;
    border-left: 1px solid var(--border-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tenant-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.user-details {
    margin-left: 9px;
}

    .user-details strong {
        display: block;
        color: var(--text-primary);
        font-size: 11px;
    }

    .user-details small {
        display: block;
        margin-top: 1px;
        color: var(--text-muted);
        font-size: 9px;
    }

.user-chevron {
    margin-left: 9px;
    color: #94a3b8;
    font-size: 16px;
}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.app-content {
    flex: 1;
    padding: 30px;
    background: var(--page-bg);
}

.content-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}


/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.dashboard-page {
    width: 100%;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.page-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--tenant-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.page-header-actions {
    padding-top: 5px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    color: #ffffff;
    background-color: var(--tenant-primary);
    border-color: var(--tenant-primary);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        color: #ffffff;
        background-color: var(--tenant-primary);
        border-color: var(--tenant-primary);
        filter: brightness(0.94);
    }

.btn {
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stat-card {
    min-height: 126px;
    padding: 20px;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.stat-card-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.stat-icon-primary {
    color: var(--tenant-primary);
    background: rgba(37, 99, 235, 0.09);
}

.stat-icon-success {
    color: var(--success);
    background: rgba(22, 163, 74, 0.09);
}

.stat-icon-warning {
    color: var(--warning);
    background: rgba(217, 119, 6, 0.09);
}

.stat-icon-info {
    color: var(--info);
    background: rgba(2, 132, 199, 0.09);
}

.stat-card-content {
    min-width: 0;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.stat-value {
    margin: 4px 0 1px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.stat-description {
    color: var(--text-muted);
    font-size: 10px;
}


/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.dashboard-card {
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.dashboard-card-header {
    min-height: 76px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    display: block;
    margin-bottom: 3px;
    color: var(--tenant-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dashboard-card-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}

.section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-soft);
    font-size: 16px;
}


/* =========================================================
   DASHBOARD ACTION LIST
   ========================================================= */

.dashboard-action-list {
    padding: 6px 10px;
}

.dashboard-action {
    min-height: 67px;
    padding: 10px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    .dashboard-action:hover {
        background: #f8fafc;
        transform: translateX(2px);
    }

.action-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--tenant-primary);
    font-size: 9px;
    font-weight: 800;
}

.action-content {
    min-width: 0;
    flex: 1;
}

    .action-content strong {
        display: block;
        color: var(--text-primary);
        font-size: 12px;
        font-weight: 600;
    }

    .action-content span {
        display: block;
        margin-top: 3px;
        color: var(--text-muted);
        font-size: 10px;
    }

.action-arrow {
    margin-left: 10px;
    color: #c0c9d5;
    font-size: 20px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.app-footer {
    min-height: 54px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
}

    .app-footer strong {
        color: var(--text-secondary);
    }

.footer-divider {
    margin: 0 7px;
    color: #cbd5e1;
}


/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 1040;
}

    .sidebar-overlay.overlay-visible {
        display: block;
    }

body.sidebar-is-open {
    overflow: hidden;
}


/* =========================================================
   PUBLIC / AUTHENTICATION SHELL
   ========================================================= */

.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient( circle at top right, rgba(37, 99, 235, 0.08), transparent 35% ), var(--page-bg);
}

.public-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.public-footer {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
}

    .public-footer strong {
        margin-left: 4px;
        color: var(--text-secondary);
    }


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control,
.custom-select {
    min-height: 38px;
    border-color: #dbe1e8;
    border-radius: 7px;
    color: var(--text-primary);
    font-size: 12px;
}

    .form-control:focus,
    .custom-select:focus {
        border-color: var(--tenant-primary);
        box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.10);
    }

label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   GENERAL CARDS
   ========================================================= */

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: #ffffff;
    border-bottom-color: var(--border-color);
}


/* =========================================================
   TABLES
   ========================================================= */

.table {
    color: var(--text-primary);
    font-size: 12px;
}

    .table thead th {
        border-top: 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-secondary);
        background: #f8fafc;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .table td {
        vertical-align: middle;
        border-color: var(--border-color);
    }


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    font-weight: 600;
    border-radius: 5px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .app-content {
        padding: 25px;
    }

    .app-topbar {
        padding: 0 25px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 991px) {

    :root {
        --sidebar-width: 265px;
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 8px 0 25px rgba(15, 23, 42, 0.15);
    }

        .app-sidebar.sidebar-open {
            transform: translateX(0);
        }

    .sidebar-close {
        display: block;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .topbar-school {
        display: none;
    }
}


/* =========================================================
   RESPONSIVE - SMALL TABLET / PHONE
   ========================================================= */

@media (max-width: 767px) {

    .app-topbar {
        height: 62px;
        padding: 0 16px;
    }

    .app-content {
        padding: 20px 15px;
    }

    .page-header {
        display: block;
    }

    .page-title {
        font-size: 22px;
    }

    .page-header-actions {
        margin-top: 15px;
    }

        .page-header-actions .btn {
            width: 100%;
        }

    .page-context-label,
    .page-context-separator {
        display: none;
    }

    .user-details,
    .user-chevron {
        display: none;
    }

    .user-menu {
        padding-left: 0;
        border-left: 0;
    }

    .app-footer {
        padding: 14px 15px;
        display: block;
        text-align: center;
        line-height: 1.8;
    }

    .stat-card {
        min-height: 110px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

    .page-title {
        font-size: 20px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .dashboard-card-header {
        padding: 15px;
    }

    .dashboard-action {
        min-height: 62px;
    }
}

/* =========================================================
TEACHER DASHBOARD
========================================================= */

.teacher-dashboard {
    width: 100%;
}

/* ---------------------------------------------------------
Dashboard Header
--------------------------------------------------------- */

.dashboard-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--tenant-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.dashboard-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tenant-primary);
    display: inline-block;
}

.dashboard-title {
    margin: 0;
    color: var(--text-dark, #111827);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.dashboard-subtitle {
    margin: 7px 0 10px;
    color: var(--text-muted, #6b7280);
    font-size: 14px;
}

.dashboard-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--text-muted, #6b7280);
    font-size: 12px;
}

    .dashboard-context strong {
        color: var(--text-dark, #374151);
    }

.context-divider {
    color: #cbd5e1;
}

.teacher-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.teacher-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tenant-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.teacher-profile-name {
    color: var(--text-dark, #111827);
    font-size: 13px;
    font-weight: 700;
}

.teacher-profile-role {
    margin-top: 2px;
    color: var(--text-muted, #6b7280);
    font-size: 11px;
}

/* ---------------------------------------------------------
Academic Context
--------------------------------------------------------- */

.teacher-context-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 72px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-left: 4px solid var(--tenant-primary);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.context-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(37, 99, 235, .09);
    color: var(--tenant-primary);
    font-size: 17px;
    font-weight: 700;
}

.context-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.context-card-label {
    margin-bottom: 3px;
    color: var(--text-muted, #6b7280);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.context-card-content strong {
    color: var(--text-dark, #111827);
    font-size: 14px;
}

.context-card-session {
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid var(--border-color, #e5e7eb);
    text-align: right;
}

    .context-card-session span {
        display: block;
        color: var(--text-dark, #374151);
        font-size: 12px;
        font-weight: 600;
    }

    .context-card-session small {
        display: block;
        margin-top: 2px;
        color: var(--text-muted, #6b7280);
        font-size: 11px;
    }

/* ---------------------------------------------------------
Teacher Statistics
--------------------------------------------------------- */

.teacher-stat-row {
    margin-right: -8px;
    margin-left: -8px;
}

    .teacher-stat-row > [class*="col-"] {
        padding-right: 8px;
        padding-left: 8px;
    }

.teacher-stat-card {
    height: 100%;
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .teacher-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
    }

.teacher-stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 20px;
}

.teacher-stat-icon-primary {
    background: rgba(37, 99, 235, .10);
}

.teacher-stat-icon-info {
    background: rgba(14, 165, 233, .10);
}

.teacher-stat-icon-success {
    background: rgba(16, 185, 129, .10);
}

.teacher-stat-content {
    min-width: 0;
}

.teacher-stat-label {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted, #6b7280);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.teacher-stat-content strong {
    display: block;
    color: var(--text-dark, #111827);
    font-size: 25px;
    line-height: 1.1;
}

.teacher-stat-content small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted, #9ca3af);
    font-size: 10px;
}

/* ---------------------------------------------------------
Section Headers
--------------------------------------------------------- */

.dashboard-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

    .dashboard-section-header h2 {
        margin: 0;
        color: var(--text-dark, #111827);
        font-size: 18px;
        font-weight: 700;
    }

    .dashboard-section-header p {
        margin: 4px 0 0;
        color: var(--text-muted, #6b7280);
        font-size: 12px;
    }

.dashboard-section-link {
    color: var(--tenant-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

    .dashboard-section-link:hover {
        color: var(--tenant-primary);
        text-decoration: none;
        opacity: .8;
    }

/* ---------------------------------------------------------
Quick Actions
--------------------------------------------------------- */

.quick-action-row {
    margin-right: -7px;
    margin-left: -7px;
}

    .quick-action-row > [class*="col-"] {
        padding-right: 7px;
        padding-left: 7px;
    }

.teacher-action-card {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .teacher-action-card:hover {
        color: inherit;
        text-decoration: none;
        transform: translateY(-2px);
        border-color: var(--tenant-primary);
        box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
    }

.teacher-action-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(37, 99, 235, .09);
    color: var(--tenant-primary);
    font-size: 18px;
    font-weight: 600;
}

.teacher-action-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .teacher-action-content strong {
        color: var(--text-dark, #111827);
        font-size: 12px;
    }

    .teacher-action-content small {
        margin-top: 3px;
        color: var(--text-muted, #6b7280);
        font-size: 10px;
    }

.teacher-action-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 15px;
    transition: transform .18s ease;
}

.teacher-action-card:hover .teacher-action-arrow {
    transform: translateX(3px);
    color: var(--tenant-primary);
}

/* ---------------------------------------------------------
Dashboard Cards
--------------------------------------------------------- */

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

    .dashboard-card-header h3 {
        margin: 0;
        color: var(--text-dark, #111827);
        font-size: 14px;
        font-weight: 700;
    }

    .dashboard-card-header p {
        margin: 4px 0 0;
        color: var(--text-muted, #6b7280);
        font-size: 11px;
    }

.dashboard-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 25px;
    padding: 0 9px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
}

/* ---------------------------------------------------------
Exam Filters
--------------------------------------------------------- */

#examFilterForm {
    padding: 20px;
}

.dashboard-form-label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#examFilterForm .form-control {
    height: 38px;
    border-color: #dbe2ea;
    border-radius: 7px;
    color: #374151;
    font-size: 12px;
    box-shadow: none;
}

    #examFilterForm .form-control:focus {
        border-color: var(--tenant-primary);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
    }

.teacher-primary-button {
    background: var(--tenant-primary);
    border-color: var(--tenant-primary);
    color: #fff;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    transition: opacity .18s ease, transform .18s ease;
}

    .teacher-primary-button:hover,
    .teacher-primary-button:focus {
        background: var(--tenant-primary);
        border-color: var(--tenant-primary);
        color: #fff;
        opacity: .9;
        transform: translateY(-1px);
    }

.dashboard-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 18px;
    color: var(--text-muted, #6b7280);
    font-size: 11px;
}

.dashboard-spinner {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 2px solid #dbe2ea;
    border-top-color: var(--tenant-primary);
    border-radius: 50%;
    animation: teacher-dashboard-spin .7s linear infinite;
}

@keyframes teacher-dashboard-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
Exam Results
--------------------------------------------------------- */

.exam-results {
    padding: 0 20px 20px;
}

.exam-result-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .exam-result-item:last-child {
        border-bottom: 0;
    }

.teacher-exam-button {
    min-width: 105px;
    background: var(--tenant-primary);
    border-color: var(--tenant-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

    .teacher-exam-button:hover,
    .teacher-exam-button:focus {
        background: var(--tenant-primary);
        border-color: var(--tenant-primary);
        color: #fff;
        opacity: .9;
    }

.dashboard-empty-inline {
    padding: 18px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-muted, #64748b);
    text-align: center;
    font-size: 12px;
}

/* ---------------------------------------------------------
Question Preview
--------------------------------------------------------- */

.question-preview {
    margin: 0 20px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    overflow: hidden;
}

.question-preview-header {
    padding: 13px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

    .question-preview-header strong {
        display: block;
        color: #374151;
        font-size: 12px;
    }

    .question-preview-header small {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
        font-size: 10px;
    }

.question-preview-item {
    display: flex;
    gap: 12px;
    padding: 15px 16px 8px;
}

.question-number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(37, 99, 235, .09);
    color: var(--tenant-primary);
    font-size: 10px;
    font-weight: 700;
}

.question-content {
    padding-top: 5px;
    color: #374151;
    font-size: 12px;
    line-height: 1.6;
}

.question-options {
    padding: 0 16px 15px 56px;
}

.question-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
    padding: 7px 9px;
    background: #f8fafc;
    border-radius: 6px;
    color: #475569;
    font-size: 11px;
}

.question-option-letter {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 9px;
    font-weight: 700;
}

/* ---------------------------------------------------------
Content Management
--------------------------------------------------------- */

.content-action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.content-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.content-heading-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.notes-icon {
    background: rgba(14, 165, 233, .09);
}

.videos-icon {
    background: rgba(16, 185, 129, .09);
}

.content-management-card {
    overflow: hidden;
}

.content-list {
    padding: 0 20px;
}

.content-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .content-list-item:last-child {
        border-bottom: 0;
    }

.content-list-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.content-item-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 15px;
}

.content-list-main strong {
    display: block;
    overflow: hidden;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}

.content-list-main small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.content-list-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

    .content-list-actions .btn {
        font-size: 10px;
        border-radius: 5px;
    }

/* ---------------------------------------------------------
Video Cards
--------------------------------------------------------- */

.video-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
}

.teacher-video-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.teacher-video-preview {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #111827;
}

    .teacher-video-preview video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.teacher-video-body {
    padding: 15px;
}

    .teacher-video-body h4 {
        margin: 0 0 5px;
        color: #374151;
        font-size: 13px;
        font-weight: 700;
    }

.teacher-video-subject {
    color: var(--tenant-primary);
    font-size: 10px;
    font-weight: 600;
}

.teacher-video-meta {
    display: flex;
    gap: 6px;
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
}

.teacher-video-body small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
}

.teacher-video-actions .btn {
    font-size: 10px;
    border-radius: 5px;
}

/* ---------------------------------------------------------
Empty States
--------------------------------------------------------- */

.dashboard-empty-state {
    padding: 38px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 20px;
}

.dashboard-empty-state strong {
    display: block;
    color: #374151;
    font-size: 13px;
}

.dashboard-empty-state p {
    max-width: 400px;
    margin: 5px auto 15px;
    color: #94a3b8;
    font-size: 11px;
}

/* ---------------------------------------------------------
Teacher Dashboard Responsive
--------------------------------------------------------- */

@media (max-width: 991px) {

    
    .dashboard-page-header {
        align-items: flex-start;
    }

    .teacher-profile-summary {
        flex-shrink: 0;
    }

    .video-content-grid {
        grid-template-columns: 1fr;
    }

    .teacher-video-preview {
        height: 230px;
    }

   
}

@media (max-width: 767px) {

    
    .dashboard-page-header {
        display: block;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .teacher-profile-summary {
        width: fit-content;
        margin-top: 18px;
    }

    .dashboard-context {
        line-height: 1.8;
    }

    .teacher-context-card {
        align-items: flex-start;
    }

    .context-card-session {
        margin-left: auto;
    }

    .dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-action-buttons {
        width: 100%;
    }

        .content-action-buttons .btn {
            margin-bottom: 6px;
        }

    .content-list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-list-actions {
        width: 100%;
    }

    .video-content-grid {
        padding: 14px;
    }

    .teacher-video-preview {
        height: 210px;
    }

    
}

@media (max-width: 575px) {

    
    .dashboard-title {
        font-size: 22px;
    }

    .dashboard-subtitle {
        font-size: 12px;
    }

    .teacher-context-card {
        padding: 12px;
    }

    .context-card-session {
        padding-left: 10px;
    }

    .teacher-stat-card {
        min-height: 92px;
    }

    .dashboard-card-header {
        padding: 15px;
    }

    #examFilterForm {
        padding: 15px;
    }

    .exam-results {
        padding: 0 15px 15px;
    }

    .question-preview {
        margin-right: 15px;
        margin-left: 15px;
    }

    .question-options {
        padding-left: 16px;
    }

    .exam-result-item {
        align-items: flex-start;
        flex-direction: column;
    }

        .exam-result-item .btn {
            margin-left: 0 !important;
        }

    
}

/* =========================================================
   E_LEARNP — STUDENT DASHBOARD
   Append to the existing site.css
   ========================================================= */

.student-dashboard {
    padding-bottom: 40px;
}


    /* =========================================================
   PAGE HEADER
   ========================================================= */

    .student-dashboard .dashboard-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        margin-bottom: 24px;
    }

    .student-dashboard .dashboard-eyebrow {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: var(--tenant-primary);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.2px;
    }

    .student-dashboard .dashboard-eyebrow-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--tenant-primary);
    }

    .student-dashboard .dashboard-title {
        margin: 0;
        color: #172033;
        font-size: 28px;
        font-weight: 750;
        line-height: 1.25;
    }

    .student-dashboard .dashboard-subtitle {
        margin: 7px 0 10px;
        color: #718096;
        font-size: 14px;
    }

    .student-dashboard .dashboard-context {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 9px;
        color: #718096;
        font-size: 13px;
    }

        .student-dashboard .dashboard-context strong {
            color: #293548;
            font-weight: 700;
        }

    .student-dashboard .context-divider {
        color: #cbd5e1;
    }

    .student-dashboard .student-profile-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border: 1px solid #e6eaf0;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    }

    .student-dashboard .student-profile-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 12px;
        background: var(--tenant-primary);
        color: #ffffff;
        font-size: 18px;
        font-weight: 800;
    }

    .student-dashboard .student-profile-name {
        color: #1f2937;
        font-size: 13px;
        font-weight: 750;
    }

    .student-dashboard .student-profile-role {
        margin-top: 2px;
        color: #8792a4;
        font-size: 12px;
    }


    /* =========================================================
   ACADEMIC PERIOD FILTER
   ========================================================= */

    .student-dashboard .student-period-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
        margin-bottom: 22px;
        padding: 18px 20px;
        border: 1px solid #e7ebf1;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
    }

    .student-dashboard .student-period-info {
        display: flex;
        align-items: center;
        gap: 13px;
    }

    .student-dashboard .student-period-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 11px;
        background: rgba(37, 99, 235, 0.09);
        color: var(--tenant-primary);
        font-size: 20px;
    }

    .student-dashboard .student-period-info strong {
        display: block;
        margin-top: 3px;
        color: #293548;
        font-size: 13px;
        font-weight: 650;
    }

    .student-dashboard .student-period-label {
        display: block;
        color: #98a2b3;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .student-dashboard .student-period-form {
        display: flex;
        align-items: flex-end;
        gap: 10px;
    }

    .student-dashboard .student-period-field label {
        display: block;
        margin-bottom: 5px;
        color: #697586;
        font-size: 11px;
        font-weight: 700;
    }

    .student-dashboard .student-period-field .form-control {
        min-width: 145px;
        height: 38px;
        border-color: #dfe4eb;
        border-radius: 8px;
        color: #374151;
        font-size: 12px;
        box-shadow: none;
    }

        .student-dashboard .student-period-field .form-control:focus {
            border-color: var(--tenant-primary);
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
        }

    .student-dashboard .student-primary-button {
        height: 38px;
        padding: 0 17px;
        border: 0;
        border-radius: 8px;
        background: var(--tenant-primary);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        transition: all 0.2s ease;
    }

        .student-dashboard .student-primary-button:hover {
            color: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
        }


    /* =========================================================
   STATISTICS
   ========================================================= */

    .student-dashboard .student-stat-row {
        margin-bottom: 14px;
    }

    .student-dashboard .student-stat-card {
        display: flex;
        align-items: center;
        min-height: 108px;
        padding: 18px;
        border: 1px solid #e7ebf1;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .student-dashboard .student-stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 9px 24px rgba(15, 23, 42, 0.07);
        }

    .student-dashboard .student-stat-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        flex: 0 0 45px;
        margin-right: 14px;
        border-radius: 12px;
        font-size: 18px;
    }

    .student-dashboard .student-stat-icon-primary {
        background: rgba(37, 99, 235, 0.10);
    }

    .student-dashboard .student-stat-icon-warning {
        background: rgba(245, 158, 11, 0.11);
    }

    .student-dashboard .student-stat-icon-success {
        background: rgba(16, 185, 129, 0.11);
    }

    .student-dashboard .student-stat-icon-info {
        background: rgba(99, 102, 241, 0.11);
    }

    .student-dashboard .student-stat-content span {
        display: block;
        color: #98a2b3;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.8px;
    }

    .student-dashboard .student-stat-content strong {
        display: block;
        margin-top: 2px;
        color: #1f2937;
        font-size: 23px;
        font-weight: 800;
        line-height: 1.25;
    }

    .student-dashboard .student-stat-content small {
        display: block;
        margin-top: 2px;
        color: #8a94a6;
        font-size: 11px;
    }


    /* =========================================================
   ACTIVE EXAM
   ========================================================= */

    .student-dashboard .student-active-exam-alert {
        display: flex;
        align-items: center;
        gap: 13px;
        margin: 8px 0 25px;
        padding: 14px 16px;
        border: 1px solid #f4d99b;
        border-radius: 12px;
        background: #fffaf0;
    }

    .student-dashboard .student-active-exam-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 10px;
        background: #f59e0b;
        color: #ffffff;
        font-size: 17px;
        font-weight: 800;
    }

    .student-dashboard .student-active-exam-content {
        flex: 1;
    }

        .student-dashboard .student-active-exam-content strong {
            display: block;
            color: #7c5700;
            font-size: 13px;
        }

        .student-dashboard .student-active-exam-content span {
            display: block;
            margin-top: 2px;
            color: #96752e;
            font-size: 12px;
        }

    .student-dashboard .student-resume-button {
        padding: 8px 13px;
        border: 0;
        border-radius: 7px;
        background: #f59e0b;
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
    }

        .student-dashboard .student-resume-button:hover {
            background: #d97706;
            color: #ffffff;
        }


    /* =========================================================
   SECTION HEADERS
   ========================================================= */

    .student-dashboard .dashboard-section-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 12px;
    }

        .student-dashboard .dashboard-section-header h2 {
            margin: 0;
            color: #263244;
            font-size: 17px;
            font-weight: 750;
        }

        .student-dashboard .dashboard-section-header p {
            margin: 3px 0 0;
            color: #8a94a6;
            font-size: 12px;
        }

    .student-dashboard .dashboard-section-link {
        white-space: nowrap;
        color: var(--tenant-primary);
        font-size: 11px;
        font-weight: 750;
    }

        .student-dashboard .dashboard-section-link:hover {
            color: var(--tenant-primary);
            text-decoration: none;
            opacity: 0.8;
        }


    /* =========================================================
   SUBJECTS
   ========================================================= */

    .student-dashboard .student-subject-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .student-dashboard .student-subject-card {
        padding: 15px;
        border: 1px solid #e7ebf1;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
        transition: all 0.2s ease;
    }

        .student-dashboard .student-subject-card:hover {
            border-color: rgba(37, 99, 235, 0.20);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
        }

    .student-dashboard .student-subject-top {
        display: flex;
        align-items: center;
        gap: 11px;
    }

    .student-dashboard .student-subject-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 10px;
        background: rgba(37, 99, 235, 0.09);
        color: var(--tenant-primary);
        font-size: 14px;
        font-weight: 800;
    }

    .student-dashboard .student-subject-title {
        min-width: 0;
    }

        .student-dashboard .student-subject-title strong {
            display: block;
            overflow: hidden;
            color: #293548;
            font-size: 13px;
            font-weight: 750;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-dashboard .student-subject-title span {
            display: block;
            margin-top: 2px;
            overflow: hidden;
            color: #8a94a6;
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .student-dashboard .student-subject-resources {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 13px;
        padding-top: 10px;
        border-top: 1px solid #eef1f5;
        color: #8993a4;
        font-size: 10px;
    }


    /* =========================================================
   GENERAL DASHBOARD CARD
   ========================================================= */

    .student-dashboard .dashboard-card {
        overflow: hidden;
        border: 1px solid #e7ebf1;
        border-radius: 13px;
        background: #ffffff;
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
    }


    /* =========================================================
   EXAMS
   ========================================================= */

    .student-dashboard .student-exam-list {
        padding: 3px 0;
    }

    .student-dashboard .student-exam-item {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 68px;
        padding: 12px 15px;
        border-bottom: 1px solid #edf0f4;
    }

        .student-dashboard .student-exam-item:last-child {
            border-bottom: 0;
        }

    .student-dashboard .student-exam-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 37px;
        height: 37px;
        flex: 0 0 37px;
        border-radius: 9px;
        background: rgba(245, 158, 11, 0.10);
    }

    .student-dashboard .student-exam-main {
        min-width: 0;
        flex: 1;
    }

        .student-dashboard .student-exam-main strong {
            display: block;
            overflow: hidden;
            color: #293548;
            font-size: 12px;
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-dashboard .student-exam-main span {
            display: block;
            margin-top: 2px;
            color: #929baa;
            font-size: 10px;
        }

    .student-dashboard .student-exam-date {
        min-width: 52px;
        text-align: center;
    }

        .student-dashboard .student-exam-date strong {
            display: block;
            color: #354052;
            font-size: 11px;
            font-weight: 750;
        }

        .student-dashboard .student-exam-date small {
            display: block;
            margin-top: 1px;
            color: #98a2b3;
            font-size: 9px;
        }

    .student-dashboard .student-exam-period {
        min-width: 90px;
        color: #8a94a6;
        font-size: 9px;
        text-align: right;
    }


    /* =========================================================
   RESULTS
   ========================================================= */

    .student-dashboard .student-results-list {
        padding: 3px 0;
    }

    .student-dashboard .student-result-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        min-height: 70px;
        padding: 12px 15px;
        border-bottom: 1px solid #edf0f4;
    }

        .student-dashboard .student-result-item:last-child {
            border-bottom: 0;
        }

    .student-dashboard .student-result-main {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;
    }

    .student-dashboard .student-result-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 9px;
        background: rgba(16, 185, 129, 0.10);
        color: #059669;
        font-size: 12px;
        font-weight: 800;
    }

    .student-dashboard .student-result-main strong {
        display: block;
        overflow: hidden;
        color: #293548;
        font-size: 12px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .student-dashboard .student-result-main span {
        display: block;
        margin-top: 2px;
        color: #929baa;
        font-size: 10px;
    }

    .student-dashboard .student-result-score {
        width: 125px;
        flex: 0 0 125px;
    }

        .student-dashboard .student-result-score strong {
            display: block;
            margin-bottom: 5px;
            color: #354052;
            font-size: 12px;
            font-weight: 750;
            text-align: right;
        }

    .student-dashboard .student-result-progress {
        overflow: hidden;
        width: 100%;
        height: 5px;
        border-radius: 10px;
        background: #edf0f4;
    }

    .student-dashboard .student-result-progress-bar {
        height: 100%;
        border-radius: inherit;
        background: var(--tenant-primary);
    }


    /* =========================================================
   LEARNING MATERIALS
   ========================================================= */

    .student-dashboard .student-learning-card {
        padding: 0;
    }

    .student-dashboard .student-learning-summary {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-bottom: 1px solid #edf0f4;
    }

    .student-dashboard .student-learning-summary-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px;
    }

        .student-dashboard .student-learning-summary-item + .student-learning-summary-item {
            border-left: 1px solid #edf0f4;
        }

    .student-dashboard .student-learning-summary-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: #f4f6f9;
        font-size: 14px;
    }

    .student-dashboard .student-learning-summary-item strong {
        display: block;
        color: #293548;
        font-size: 17px;
        font-weight: 800;
    }

    .student-dashboard .student-learning-summary-item span {
        display: block;
        color: #919baa;
        font-size: 10px;
    }

    .student-dashboard .student-material-section {
        padding: 15px;
    }

        .student-dashboard .student-material-section + .student-material-section {
            border-top: 1px solid #edf0f4;
        }

    .student-dashboard .student-material-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

        .student-dashboard .student-material-heading strong {
            color: #354052;
            font-size: 12px;
            font-weight: 750;
        }

        .student-dashboard .student-material-heading span {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 22px;
            height: 21px;
            padding: 0 6px;
            border-radius: 10px;
            background: #f1f4f8;
            color: #7f8999;
            font-size: 9px;
            font-weight: 750;
        }

    .student-dashboard .student-material-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #f0f2f5;
    }

        .student-dashboard .student-material-item:last-child {
            border-bottom: 0;
        }

    .student-dashboard .student-material-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 8px;
        background: rgba(37, 99, 235, 0.08);
        font-size: 13px;
    }

    .student-dashboard .student-material-main {
        min-width: 0;
        flex: 1;
    }

        .student-dashboard .student-material-main strong {
            display: block;
            overflow: hidden;
            color: #354052;
            font-size: 11px;
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-dashboard .student-material-main span {
            display: block;
            margin-top: 2px;
            overflow: hidden;
            color: #8a94a6;
            font-size: 10px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-dashboard .student-material-main small {
            display: block;
            margin-top: 2px;
            overflow: hidden;
            color: #a0a8b5;
            font-size: 9px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .student-dashboard .student-material-open {
        padding: 5px 8px;
        border-radius: 6px;
        background: #f3f5f8;
        color: #667085;
        font-size: 9px;
        font-weight: 700;
    }

        .student-dashboard .student-material-open:hover {
            background: var(--tenant-primary);
            color: #ffffff;
            text-decoration: none;
        }

    .student-dashboard .student-video-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid #f0f2f5;
    }

        .student-dashboard .student-video-item:last-child {
            border-bottom: 0;
        }

    .student-dashboard .student-video-thumbnail {
        position: relative;
        overflow: hidden;
        width: 72px;
        height: 46px;
        flex: 0 0 72px;
        border-radius: 7px;
        background: #172033;
    }

        .student-dashboard .student-video-thumbnail video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .student-dashboard .student-video-play {
        position: absolute;
        top: 50%;
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 23px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.65);
        color: #ffffff;
        font-size: 8px;
    }


    /* =========================================================
   ACCOUNT
   ========================================================= */

    .student-dashboard .student-account-card {
        padding: 0;
    }

    .student-dashboard .student-account-row {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 14px;
    }

        .student-dashboard .student-account-row + .student-account-row {
            border-top: 1px solid #edf0f4;
        }

    .student-dashboard .student-account-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border-radius: 9px;
        background: #f3f5f8;
        font-size: 14px;
    }

    .student-dashboard .student-account-main {
        min-width: 0;
        flex: 1;
    }

        .student-dashboard .student-account-main strong {
            display: block;
            color: #354052;
            font-size: 11px;
            font-weight: 750;
        }

        .student-dashboard .student-account-main span {
            display: block;
            margin-top: 2px;
            overflow: hidden;
            color: #929baa;
            font-size: 9px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .student-dashboard .student-account-action {
        padding: 5px 9px;
        border: 1px solid #e1e6ed;
        border-radius: 6px;
        color: #687386;
        font-size: 9px;
        font-weight: 700;
    }

        .student-dashboard .student-account-action:hover {
            border-color: var(--tenant-primary);
            background: var(--tenant-primary);
            color: #ffffff;
            text-decoration: none;
        }


    /* =========================================================
   EMPTY STATES
   ========================================================= */

    .student-dashboard .student-empty-state {
        padding: 28px 18px;
        text-align: center;
    }

    .student-dashboard .student-empty-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 auto 9px;
        border-radius: 11px;
        background: #f3f5f8;
        font-size: 15px;
    }

    .student-dashboard .student-empty-state strong {
        display: block;
        color: #485467;
        font-size: 12px;
        font-weight: 750;
    }

    .student-dashboard .student-empty-state p {
        max-width: 300px;
        margin: 4px auto 0;
        color: #98a2b3;
        font-size: 10px;
        line-height: 1.5;
    }

    .student-dashboard .student-material-empty {
        padding: 12px 0 4px;
        color: #9aa3b1;
        font-size: 10px;
        text-align: center;
    }


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .student-dashboard .dashboard-page-header {
        align-items: flex-start;
    }

    .student-dashboard .student-period-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-dashboard .student-period-form {
        width: 100%;
    }

    .student-dashboard .student-period-field {
        flex: 1;
    }

        .student-dashboard .student-period-field .form-control {
            width: 100%;
            min-width: 0;
        }

    .student-dashboard .student-primary-button {
        flex: 0 0 auto;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .student-dashboard {
        padding-bottom: 25px;
    }

        .student-dashboard .dashboard-page-header {
            display: block;
            margin-bottom: 18px;
        }

        .student-dashboard .dashboard-title {
            font-size: 23px;
        }

        .student-dashboard .dashboard-subtitle {
            font-size: 12px;
        }

        .student-dashboard .dashboard-context {
            font-size: 11px;
        }

        .student-dashboard .student-profile-summary {
            width: fit-content;
            margin-top: 14px;
        }

        .student-dashboard .student-period-card {
            padding: 15px;
        }

        .student-dashboard .student-period-info {
            align-items: flex-start;
        }

        .student-dashboard .student-period-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            width: 100%;
        }

        .student-dashboard .student-period-field .form-control {
            width: 100%;
        }

        .student-dashboard .student-primary-button {
            grid-column: 1 / -1;
            width: 100%;
        }

        .student-dashboard .student-subject-grid {
            grid-template-columns: 1fr;
        }

        .student-dashboard .student-active-exam-alert {
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .student-dashboard .student-resume-button {
            width: 100%;
            margin-left: 51px;
        }

        .student-dashboard .student-exam-item {
            flex-wrap: wrap;
        }

        .student-dashboard .student-exam-period {
            width: 100%;
            margin-left: 49px;
            text-align: left;
        }

        .student-dashboard .student-result-score {
            width: 95px;
            flex-basis: 95px;
        }

        .student-dashboard .dashboard-section-header {
            align-items: flex-start;
        }

            .student-dashboard .dashboard-section-header p {
                display: none;
            }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .student-dashboard .dashboard-title {
        font-size: 21px;
    }

    .student-dashboard .dashboard-context {
        gap: 5px;
    }

    .student-dashboard .context-divider {
        display: none;
    }

    .student-dashboard .student-period-form {
        grid-template-columns: 1fr;
    }

    .student-dashboard .student-primary-button {
        grid-column: auto;
    }

    .student-dashboard .student-stat-card {
        min-height: 92px;
    }

    .student-dashboard .student-stat-content strong {
        font-size: 20px;
    }

    .student-dashboard .student-result-item {
        gap: 8px;
    }

    .student-dashboard .student-result-score {
        width: 80px;
        flex-basis: 80px;
    }

    .student-dashboard .student-result-main strong {
        max-width: 130px;
    }

    .student-dashboard .student-learning-summary-item {
        padding: 12px;
    }

    .student-dashboard .student-account-row {
        align-items: flex-start;
    }
}



/* =========================================================
STUDENT VIDEO PLAYER
========================================================= */

.student-dashboard .student-video-trigger {
    position: relative;
    display: block;
    overflow: hidden;
    width: 72px;
    height: 46px;
    flex: 0 0 72px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #172033;
    cursor: pointer;
}

    .student-dashboard .student-video-trigger video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .student-dashboard .student-video-trigger .student-video-play {
        position: absolute;
        top: 50%;
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.72);
        color: #ffffff;
        font-size: 9px;
        transition: transform 0.18s ease, background 0.18s ease;
    }

    .student-dashboard .student-video-trigger:hover .student-video-play {
        transform: translate(-50%, -50%) scale(1.12);
        background: var(--tenant-primary);
    }

    .student-dashboard .student-video-trigger:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    }

/* =========================================================
VIDEO MODAL
========================================================= */

.student-video-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
}

    .student-video-modal.is-open {
        display: block;
    }

.student-video-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.78);
}

.student-video-modal-dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    max-width: 900px;
    margin: 6vh auto 0;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}

.student-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid #e7ebf1;
}

.student-video-modal-label {
    display: block;
    margin-bottom: 3px;
    color: var(--tenant-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.student-video-modal-header h3 {
    margin: 0;
    color: #293548;
    font-size: 15px;
    font-weight: 750;
}

.student-video-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #f3f5f8;
    color: #667085;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .student-video-modal-close:hover {
        background: #e9edf2;
        color: #293548;
    }

.student-video-modal-body {
    padding: 0;
    background: #000000;
}

    .student-video-modal-body video {
        display: block;
        width: 100%;
        max-height: 70vh;
        background: #000000;
    }

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 767.98px) {

    
    .student-video-modal-dialog {
        width: calc(100% - 20px);
        margin-top: 10vh;
        border-radius: 10px;
    }

    .student-video-modal-body video {
        max-height: 60vh;
    }

    
}


/* =========================================================
   E_LEARNP — EXAM DASHBOARD
   Append to existing site.css
   ========================================================= */

.exam-dashboard {
    width: 100%;
    min-width: 0;
    padding-bottom: 40px;
}


/* =========================================================
   HEADER
   ========================================================= */

.exam-dashboard-header {
    margin-bottom: 22px;
}

.exam-dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--tenant-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

    .exam-dashboard-eyebrow span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--tenant-primary);
    }

.exam-dashboard-header h1 {
    margin: 0;
    color: #172033;
    font-size: 27px;
    font-weight: 750;
}

.exam-dashboard-header p {
    margin: 6px 0 0;
    color: #7c8798;
    font-size: 13px;
}


/* =========================================================
   CONTEXT
   ========================================================= */

.exam-context-card {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr 1fr 1fr;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
}

.exam-context-item {
    min-width: 0;
    padding: 16px 18px;
}

    .exam-context-item + .exam-context-item {
        border-left: 1px solid #edf0f4;
    }

    .exam-context-item span {
        display: block;
        margin-bottom: 4px;
        color: #98a2b3;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.8px;
    }

    .exam-context-item strong {
        display: block;
        overflow: hidden;
        color: #293548;
        font-size: 12px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================================
   EXAM SELECTION
   ========================================================= */

.exam-selection-card {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e6eaf0;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
}

.exam-card-header {
    margin-bottom: 18px;
}

    .exam-card-header h2 {
        margin: 0;
        color: #293548;
        font-size: 16px;
        font-weight: 750;
    }

    .exam-card-header p {
        margin: 4px 0 0;
        color: #8a94a6;
        font-size: 11px;
    }

.exam-selection-card label {
    display: block;
    margin-bottom: 6px;
    color: #5e6878;
    font-size: 11px;
    font-weight: 700;
}

.exam-selection-card .form-control {
    height: 39px;
    border-color: #dfe4eb;
    border-radius: 8px;
    color: #354052;
    font-size: 12px;
    box-shadow: none;
}

    .exam-selection-card .form-control:focus {
        border-color: var(--tenant-primary);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
    }

.exam-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0 10px;
    padding-top: 5px;
    border-top: 1px solid #edf0f4;
}

    .exam-list-heading div {
        color: #354052;
        font-size: 11px;
        font-weight: 750;
    }

    .exam-list-heading span {
        color: #98a2b3;
        font-size: 9px;
    }

.exam-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exam-checkbox {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    margin: 0 !important;
    padding: 9px 11px;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.18s ease;
}

    .exam-checkbox:hover {
        border-color: rgba(37, 99, 235, 0.35);
        background: rgba(37, 99, 235, 0.025);
    }

    .exam-checkbox input {
        position: absolute;
        opacity: 0;
    }

.exam-checkbox-mark {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #cbd2dc;
    border-radius: 4px;
    background: #ffffff;
}

.exam-checkbox input:checked + .exam-checkbox-mark {
    border-color: var(--tenant-primary);
    background: var(--tenant-primary);
    box-shadow: inset 0 0 0 3px #ffffff;
}

.exam-checkbox-text {
    color: #526071;
    font-size: 10px;
    font-weight: 650;
}

.exam-empty-message {
    padding: 13px;
    border: 1px solid #d9e8f6;
    border-radius: 8px;
    background: #f4f9fd;
    color: #54718b;
    font-size: 11px;
}

.exam-selection-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.exam-load-button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: var(--tenant-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 750;
    transition: all 0.2s ease;
}

    .exam-load-button:hover,
    .exam-load-button:focus {
        background: var(--tenant-primary);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    }

    .exam-load-button:disabled {
        opacity: 0.65;
        cursor: wait;
        transform: none;
    }


/* =========================================================
   BROADSHEET SECTION
   ========================================================= */

.broadsheet-section {
    width: 100%;
    min-width: 0;
}

.broadsheet-section-header {
    margin-bottom: 12px;
}

.broadsheet-section-label {
    margin-bottom: 3px;
    color: var(--tenant-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.broadsheet-section-header h2 {
    margin: 0;
    color: #293548;
    font-size: 18px;
    font-weight: 750;
}

.broadsheet-section-header p {
    margin: 3px 0 0;
    color: #8a94a6;
    font-size: 11px;
}

.broadsheet-container {
    width: 100%;
    min-width: 0;
}

.broadsheet-scroll-area {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    -webkit-overflow-scrolling: touch;
}


    /* =========================================================
   BROADSHEET CONTENT
   These rules also affect the HTML returned by AJAX.
   ========================================================= */

    .broadsheet-scroll-area table {
        width: max-content;
        min-width: 100%;
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
    }

        .broadsheet-scroll-area table th,
        .broadsheet-scroll-area table td {
            box-sizing: border-box;
            white-space: nowrap;
            vertical-align: middle;
        }

        .broadsheet-scroll-area table thead th {
            position: sticky;
            top: 0;
            z-index: 3;
            padding: 9px 8px;
            border-bottom: 1px solid #dce2e9;
            background: #f7f9fb;
            color: #596577;
            font-size: 10px;
            font-weight: 750;
            text-align: center;
        }

        .broadsheet-scroll-area table tbody td {
            padding: 6px 7px;
            border-bottom: 1px solid #edf0f4;
            color: #4a5567;
            font-size: 10px;
            text-align: center;
        }

        .broadsheet-scroll-area table tbody tr:hover td {
            background: #fafcff;
        }


        /* Student identity columns */

        .broadsheet-scroll-area table th:first-child,
        .broadsheet-scroll-area table td:first-child {
            min-width: 48px;
        }

        .broadsheet-scroll-area table th:nth-child(2),
        .broadsheet-scroll-area table td:nth-child(2) {
            min-width: 150px;
            text-align: left;
        }


        /* Score columns */

        .broadsheet-scroll-area table th:not(:first-child),
        .broadsheet-scroll-area table td:not(:first-child) {
            min-width: 72px;
        }


    /* =========================================================
   SCORE INPUTS
   ========================================================= */

    .broadsheet-scroll-area input[type="number"],
    .broadsheet-scroll-area input[type="text"],
    .broadsheet-scroll-area input[type="tel"] {
        display: block;
        width: 55px;
        min-width: 55px;
        height: 30px;
        margin: 0 auto;
        padding: 3px 5px;
        border: 1px solid #d6dce4;
        border-radius: 5px;
        background: #ffffff;
        color: #293548;
        font-size: 11px;
        font-weight: 650;
        line-height: 1;
        text-align: center;
        box-shadow: none;
    }

        .broadsheet-scroll-area input[type="number"]:focus,
        .broadsheet-scroll-area input[type="text"]:focus,
        .broadsheet-scroll-area input[type="tel"]:focus {
            border-color: var(--tenant-primary);
            outline: none;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
        }


        /* Remove number spinner where supported */

        .broadsheet-scroll-area input[type="number"]::-webkit-inner-spin-button,
        .broadsheet-scroll-area input[type="number"]::-webkit-outer-spin-button {
            margin: 0;
            -webkit-appearance: none;
        }

    .broadsheet-scroll-area input[type="number"] {
        -moz-appearance: textfield;
    }


    /* =========================================================
   COMMON BROADSHEET BUTTONS
   ========================================================= */

    .broadsheet-scroll-area .btn {
        border-radius: 6px;
        font-size: 10px;
        font-weight: 650;
    }

    .broadsheet-scroll-area .btn-primary {
        border-color: var(--tenant-primary);
        background: var(--tenant-primary);
    }


/* =========================================================
   LOADING / MESSAGES
   ========================================================= */

.broadsheet-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #ffffff;
}

.broadsheet-loading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--tenant-primary);
    font-size: 18px;
    font-weight: 800;
}

.broadsheet-loading strong {
    display: block;
    color: #354052;
    font-size: 12px;
}

.broadsheet-loading span {
    display: block;
    margin-top: 2px;
    color: #929baa;
    font-size: 10px;
}

.broadsheet-message {
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 11px;
}

.broadsheet-message-warning {
    border: 1px solid #f1dfae;
    background: #fffaf0;
    color: #856404;
}

.broadsheet-message-danger {
    border: 1px solid #efc8cc;
    background: #fff5f5;
    color: #9b3038;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .exam-context-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-context-item:nth-child(3) {
        border-top: 1px solid #edf0f4;
        border-left: 0;
    }

    .exam-context-item:nth-child(4) {
        border-top: 1px solid #edf0f4;
    }
}


@media (max-width: 767.98px) {

    .exam-dashboard-header h1 {
        font-size: 23px;
    }

    .exam-context-card {
        grid-template-columns: 1fr 1fr;
    }

    .exam-context-item {
        padding: 13px;
    }

    .exam-selection-card {
        padding: 15px;
    }

    .exam-checkbox-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .exam-checkbox {
        min-width: 0;
    }

    .exam-selection-footer {
        justify-content: stretch;
    }

    .exam-load-button {
        width: 100%;
        justify-content: center;
    }

    .broadsheet-scroll-area {
        border-radius: 8px;
    }
}


@media (max-width: 480px) {

    .exam-context-card {
        grid-template-columns: 1fr;
    }

    .exam-context-item + .exam-context-item {
        border-top: 1px solid #edf0f4;
        border-left: 0;
    }

    .exam-checkbox-grid {
        grid-template-columns: 1fr;
    }
}




```css
/* =========================================================
   TENANT PUBLIC LANDING PAGE
   ========================================================= */
.tenant-landing {
    min-height: 100vh;
    background: #f8fafc;
    color: #1f2937;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.tenant-landing-nav {
    position: relative;
    z-index: 20;
    min-height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e5e7eb;
}


.tenant-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.tenant-brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}


.tenant-brand-placeholder {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--tenant-primary);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}


.tenant-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}


    .tenant-brand-text strong {
        color: #111827;
        font-size: .98rem;
    }


    .tenant-brand-text span {
        margin-top: 3px;
        color: #94a3b8;
        font-size: .68rem;
        font-weight: 600;
        letter-spacing: .08em;
    }


.tenant-login-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border: 1px solid var(--tenant-primary);
    border-radius: 7px;
    color: var(--tenant-primary);
    background: #fff;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}


    .tenant-login-link:hover {
        color: #fff;
        background: var(--tenant-primary);
        text-decoration: none;
    }


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.tenant-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--tenant-primary), var(--tenant-secondary) );
}


.tenant-hero-background {
    position: absolute;
    inset: 0;
    background-image: var(--tenant-background);
    background-position: center;
    background-size: cover;
    opacity: .35;
}


.tenant-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .18) );
}


.tenant-hero-content {
    position: relative;
    z-index: 2;
    width: min(800px, 90%);
    padding: 70px 20px;
    text-align: center;
    color: #fff;
}


.tenant-hero-logo-wrapper {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .96);
    border-radius: 14px;
}


.tenant-hero-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.tenant-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .78);
}


.tenant-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.03em;
}


.tenant-hero-description {
    max-width: 620px;
    margin: 20px auto 30px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
    line-height: 1.7;
}


.tenant-hero-actions {
    display: flex;
    justify-content: center;
}


.tenant-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 22px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--tenant-primary);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}


    .tenant-primary-button:hover {
        color: var(--tenant-primary);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    }


.tenant-button-arrow {
    font-size: 1.1rem;
}


/* ---------------------------------------------------------
   FEATURES
   --------------------------------------------------------- */

.tenant-features {
    padding: 75px 6%;
    background: #fff;
}


.tenant-section-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}


    .tenant-section-heading > span {
        color: var(--tenant-primary);
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .14em;
    }


    .tenant-section-heading h2 {
        margin: 10px 0;
        color: #111827;
        font-size: 2rem;
        font-weight: 750;
    }


    .tenant-section-heading p {
        margin: 0;
        color: #6b7280;
        line-height: 1.7;
    }


.tenant-feature-grid {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


.tenant-feature-card {
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}


    .tenant-feature-card:hover {
        transform: translateY(-3px);
        border-color: rgba(37, 99, 235, .25);
        box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    }


.tenant-feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: color-mix( in srgb, var(--tenant-primary) 10%, white );
    color: var(--tenant-primary);
    font-size: 1.1rem;
}


.tenant-feature-card h3 {
    margin: 0 0 9px;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}


.tenant-feature-card p {
    margin: 0;
    color: #6b7280;
    font-size: .88rem;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   LOGIN CTA
   --------------------------------------------------------- */

.tenant-login-section {
    padding: 55px 6%;
    background: #f8fafc;
}


.tenant-login-card {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}


.tenant-login-label {
    color: var(--tenant-primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}


.tenant-login-card h2 {
    margin: 7px 0 4px;
    color: #111827;
    font-size: 1.45rem;
}


.tenant-login-card p {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
}


/* ---------------------------------------------------------
   CTA BUTTON ON LIGHT BACKGROUND
   --------------------------------------------------------- */

.tenant-login-card .tenant-primary-button {
    background: var(--tenant-primary);
    color: #fff;
    box-shadow: none;
}


    .tenant-login-card .tenant-primary-button:hover {
        color: #fff;
    }


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.tenant-landing-footer {
    padding: 25px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    color: #94a3b8;
    font-size: .78rem;
}


    .tenant-landing-footer > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }


    .tenant-landing-footer strong {
        color: #374151;
    }


    .tenant-landing-footer span {
        color: #94a3b8;
    }


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .tenant-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 640px) {

    .tenant-landing-nav {
        min-height: 68px;
        padding: 0 20px;
    }

    .tenant-brand-text span {
        display: none;
    }

    .tenant-login-link {
        padding: 8px 14px;
    }

    .tenant-hero {
        min-height: 470px;
    }

    .tenant-hero-content {
        padding: 55px 15px;
    }

    .tenant-hero h1 {
        font-size: 2.25rem;
    }

    .tenant-hero-description {
        font-size: .94rem;
    }

    .tenant-feature-grid {
        grid-template-columns: 1fr;
    }

    .tenant-features {
        padding: 55px 20px;
    }

    .tenant-login-section {
        padding: 35px 20px;
    }

    .tenant-login-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

        .tenant-login-card .tenant-primary-button {
            width: 100%;
        }

    .tenant-landing-footer {
        padding: 22px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}




/* =========================================================
   TENANT BRANDING ADMINISTRATION
   ========================================================= */
.tenant-branding-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* Header */

.tenant-branding-header {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}


.tenant-page-eyebrow {
    color: var(--tenant-primary, #2563eb);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
}


.tenant-branding-header h1 {
    margin: 6px 0 5px;
    color: #111827;
    font-size: 1.75rem;
    font-weight: 750;
}


.tenant-branding-header p {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
}


/* Identity */

.tenant-branding-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
}


    .tenant-branding-identity img,
    .tenant-branding-placeholder {
        width: 42px;
        height: 42px;
        object-fit: contain;
        border-radius: 8px;
    }


.tenant-branding-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tenant-primary, #2563eb);
    color: #fff;
    font-weight: 700;
}


.tenant-branding-identity div:last-child {
    display: flex;
    flex-direction: column;
}


.tenant-branding-identity strong {
    color: #374151;
    font-size: .85rem;
}


.tenant-branding-identity span {
    color: #94a3b8;
    font-size: .7rem;
}


/* Main grid */

.tenant-branding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 20px;
}


.tenant-branding-card {
    min-width: 0;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, .035);
}


.tenant-card-heading {
    margin-bottom: 24px;
}


    .tenant-card-heading h2 {
        margin: 0 0 5px;
        color: #1f2937;
        font-size: 1.05rem;
        font-weight: 700;
    }


    .tenant-card-heading p {
        margin: 0;
        color: #6b7280;
        font-size: .82rem;
    }


/* Settings */

.tenant-setting-group {
    margin-bottom: 22px;
}


    .tenant-setting-group > label {
        display: block;
        margin-bottom: 7px;
        color: #374151;
        font-size: .83rem;
        font-weight: 700;
    }


    .tenant-setting-group small {
        display: block;
        margin-top: 5px;
        color: #94a3b8;
        font-size: .72rem;
    }


    .tenant-upload-control .form-control,
    .tenant-setting-group > .form-control {
        height: 42px;
        border-color: #dbe1e8;
        border-radius: 7px;
        font-size: .82rem;
    }


/* Image previews */

.tenant-image-preview {
    width: 100%;
    min-height: 100px;
    margin-top: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}


    .tenant-image-preview img {
        max-width: 180px;
        max-height: 80px;
        object-fit: contain;
    }


#LogoEmptyPreview {
    color: #94a3b8;
    font-size: .8rem;
}


.tenant-background-preview {
    margin-top: 12px;
}


    .tenant-background-preview > div {
        height: 120px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background-color: #f1f5f9;
        background-position: center;
        background-size: cover;
    }


/* Colors */

.tenant-color-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


.tenant-color-control {
    display: flex;
    align-items: center;
    gap: 9px;
}


    .tenant-color-control input[type="color"] {
        width: 46px;
        height: 40px;
        padding: 3px;
        border: 1px solid #dbe1e8;
        border-radius: 7px;
        background: #fff;
        cursor: pointer;
    }


    .tenant-color-control span {
        color: #64748b;
        font-family: monospace;
        font-size: .72rem;
    }


/* Actions */

.tenant-branding-actions {
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid #eef2f7;
}


    .tenant-branding-actions .btn {
        min-height: 40px;
        padding: 8px 15px;
        border-radius: 7px;
        font-size: .82rem;
        font-weight: 600;
    }


/* Live preview */

.tenant-live-preview {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: var(--preview-theme, #f5f7fb);
}


.tenant-preview-topbar {
    min-height: 62px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}


    .tenant-preview-topbar img,
    #LogoLivePlaceholder {
        width: 36px;
        height: 36px;
        object-fit: contain;
        border-radius: 7px;
    }


#LogoLivePlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--preview-primary, #2563eb);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}


.tenant-preview-topbar strong {
    color: #374151;
    font-size: .8rem;
}


.tenant-preview-hero {
    position: relative;
    min-height: 270px;
    background-color: var(--preview-secondary, #64748b);
    background-position: center;
    background-size: cover;
}


.tenant-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}


.tenant-preview-content {
    position: relative;
    z-index: 2;
    padding: 55px 25px;
    text-align: center;
    color: #fff;
}


    .tenant-preview-content > span {
        font-size: .6rem;
        font-weight: 700;
        letter-spacing: .13em;
    }


    .tenant-preview-content h3 {
        margin: 8px 0 18px;
        font-size: 1.5rem;
        font-weight: 750;
    }


.tenant-preview-primary,
.tenant-preview-secondary {
    margin: 3px;
    padding: 8px 13px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
}


.tenant-preview-primary {
    background: var(--preview-primary, #2563eb);
}


.tenant-preview-secondary {
    background: var(--preview-secondary, #64748b);
}


/* Reset notification */

.tenant-reset-notification {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2000;
    padding: 13px 18px;
    border-radius: 8px;
    background: #166534;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .16);
}


/* Responsive */

@media (max-width: 1000px) {

    .tenant-branding-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .tenant-branding-header {
        flex-direction: column;
    }

    .tenant-color-section {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 500px) {

    .tenant-branding-card {
        padding: 18px;
    }

    .tenant-branding-actions {
        flex-direction: column;
    }

        .tenant-branding-actions .btn {
            width: 100%;
        }
}



.tenant-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.tenant-hero-no-background {
    background: linear-gradient( 135deg, var(--tenant-primary), var(--tenant-secondary) );
}

.tenant-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
}

.tenant-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    padding: 70px 24px;
    text-align: center;
    color: #ffffff;
}

