/* =========================================
   SCHOOL REGISTRATION
========================================= */

    .school-register-page {
        min-height: 100vh;
        padding: 40px 20px;
        background: #f5f7fb;
    }

    .school-register-container {
        width: min(100%, 900px);
        margin: 0 auto;
    }

    .school-register-card {
        background: #ffffff;
        border-radius: 18px;
        padding: 35px;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    }

    .school-register-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .school-register-header h1 {
        margin: 0 0 8px;
        font-size: 30px;
    }

    .school-register-header p {
        margin: 0;
        color: #6b7280;
    }

    .form-section {
        margin-top: 30px;
    }

    .form-section h2 {
        font-size: 19px;
        margin-bottom: 18px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-group.full {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-weight: 600;
        margin-bottom: 7px;
        color: #374151;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 14px;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        font-size: 15px;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

    .required {
        color: #dc2626;
    }

    .error-box {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 25px;
    }

    .error-box ul {
        margin: 0;
        padding-left: 20px;
    }

    .submit-area {
        margin-top: 35px;
        text-align: center;
    }

    .register-btn {
        width: 100%;
        border: none;
        border-radius: 10px;
        padding: 15px 20px;
        background: #2563eb;
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }

    .register-btn:hover {
        background: #1d4ed8;
    }

    .login-link {
        text-align: center;
        margin-top: 20px;
        color: #6b7280;
    }

    .login-link a {
        color: #2563eb;
        font-weight: 600;
        text-decoration: none;
    }

    @media (max-width: 700px) {

        .school-register-page {
            padding: 20px 12px;
        }

        .school-register-card {
            padding: 22px 18px;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }

        .form-group.full {
            grid-column: auto;
        }

        .school-register-header h1 {
            font-size: 25px;
        }
    }


    .registration-success-page {
        min-height: 100vh;
        padding: 50px 20px;
        background: #f5f7fb;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .registration-success-container {
        width: min(100%, 650px);
    }

    .registration-success-card {
        background: #ffffff;
        border-radius: 20px;
        padding: 40px;
        text-align: center;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    }

    .success-icon {
        width: 75px;
        height: 75px;
        margin: 0 auto 22px;
        border-radius: 50%;
        background: #dcfce7;
        color: #16a34a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 38px;
        font-weight: 700;
    }

    .registration-success-card h1 {
        margin: 0 0 10px;
        font-size: 30px;
        color: #111827;
    }

    .registration-success-card .intro {
        margin: 0 auto 28px;
        max-width: 520px;
        line-height: 1.6;
        color: #6b7280;
    }

    .school-name {
        font-weight: 700;
        color: #111827;
    }

    .code-box {
        margin: 25px 0;
        padding: 25px 20px;
        border-radius: 14px;
        background: #f8fafc;
        border: 2px dashed #2563eb;
    }

    .code-label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .school-code {
        display: block;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: 3px;
        color: #2563eb;
        word-break: break-word;
    }

    .warning-box {
        margin: 25px 0;
        padding: 16px 18px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: 10px;
        color: #9a3412;
        line-height: 1.6;
        text-align: left;
    }

    .next-step {
        margin-top: 25px;
        padding: 18px;
        background: #eff6ff;
        border-radius: 10px;
        color: #1e40af;
        line-height: 1.6;
    }

    .actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .btn {
        display: inline-block;
        padding: 13px 24px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 700;
        transition: 0.2s ease;
    }

    .btn-primary {
        background: #2563eb;
        color: #ffffff;
    }

    .btn-primary:hover {
        background: #1d4ed8;
    }

    .btn-secondary {
        background: #e5e7eb;
        color: #374151;
    }

    .btn-secondary:hover {
        background: #d1d5db;
    }

    @media (max-width: 600px) {

        .registration-success-page {
            padding: 25px 12px;
        }

        .registration-success-card {
            padding: 28px 18px;
        }

        .registration-success-card h1 {
            font-size: 25px;
        }

        .school-code {
            font-size: 25px;
            letter-spacing: 2px;
        }

        .actions {
            flex-direction: column;
        }

        .btn {
            width: 100%;
            box-sizing: border-box;
        }
    }

/* =========================================
   SCHOOL LOGIN
========================================= */
/* ==========================================================================
   ATOMSPLAY SCHOOL SYSTEM
   ========================================================================== */


/* ==========================================================================
   SCHOOL AUTHENTICATION
   ========================================================================== */

.school-auth-page {
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7fb;
}

.school-auth-container {
    width: min(100%, 460px);
    margin: 0 auto;
}

.school-auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.school-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.school-auth-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    font-size: 32px;
}

.school-auth-header h1 {
    margin: 0 0 8px;

    font-size: 28px;
    line-height: 1.2;

    color: #111827;
}

.school-auth-header p {
    margin: 0;

    color: #6b7280;

    line-height: 1.5;
}


/* ==========================================================================
   ERROR
   ========================================================================== */

.school-auth-error {
    margin-bottom: 22px;

    padding: 14px 16px;

    border: 1px solid #fecaca;
    border-radius: 10px;

    background: #fef2f2;

    color: #991b1b;

    font-size: 14px;
}

.school-auth-error ul {
    margin: 0;
    padding-left: 20px;
}

.school-auth-error li + li {
    margin-top: 5px;
}


/* ==========================================================================
   FORM
   ========================================================================== */

.school-form-group {
    margin-bottom: 20px;
}

.school-form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: #374151;
}

.school-form-group input {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #ffffff;

    color: #111827;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.school-form-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* ==========================================================================
   LOGIN BUTTON
   ========================================================================== */

.school-auth-button {
    display: block;

    width: 100%;

    padding: 14px 20px;

    border: none;
    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.school-auth-button:hover {
    background: #1d4ed8;
}

.school-auth-button:active {
    transform: translateY(1px);
}


/* ==========================================================================
   AUTH FOOTER
   ========================================================================== */

.school-auth-footer {
    margin-top: 25px;

    padding-top: 22px;

    border-top: 1px solid #e5e7eb;

    text-align: center;
}

.school-auth-footer p {
    margin: 0 0 7px;

    color: #6b7280;

    font-size: 14px;
}

.school-auth-footer a {
    color: #2563eb;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.school-auth-footer a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   BACK LINK
   ========================================================================== */

.school-auth-back {
    margin-top: 18px;

    text-align: center;
}

.school-auth-back a {
    color: #6b7280;

    font-size: 14px;

    text-decoration: none;
}

.school-auth-back a:hover {
    color: #2563eb;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .school-auth-page {
        padding: 25px 12px;
    }

    .school-auth-card {
        padding: 28px 20px;

        border-radius: 16px;
    }

    .school-auth-header h1 {
        font-size: 25px;
    }

    .school-auth-icon {
        width: 62px;
        height: 62px;

        font-size: 28px;
    }
}

/* =========================================
   SCHOOL DASHBOARD
========================================= */

/* ==========================================================================
   SCHOOL ADMIN DASHBOARD
   ========================================================================== */

.school-dashboard {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 35px 0 60px;
}


/* ==========================================================================
   DASHBOARD HEADER
   ========================================================================== */

.school-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 30px;
}

.school-dashboard-label {
    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
}

.school-dashboard-header h1 {
    margin: 0 0 7px;

    color: #111827;

    font-size: 30px;
}

.school-dashboard-header p {
    margin: 0;

    color: #6b7280;
}

.school-code-display {
    min-width: 170px;

    padding: 15px 18px;

    border-radius: 12px;

    background: #eff6ff;

    text-align: center;
}

.school-code-display span {
    display: block;

    margin-bottom: 5px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .8px;
}

.school-code-display strong {
    color: #2563eb;

    font-size: 18px;

    letter-spacing: 1px;
}


/* ==========================================================================
   STAT CARDS
   ========================================================================== */

.school-stats-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 30px;
}

.school-stat-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 22px;

    background: #ffffff;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

.school-stat-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f4f6;

    font-size: 23px;
}

.school-stat-card span {
    display: block;

    margin-bottom: 4px;

    color: #6b7280;

    font-size: 13px;
}

.school-stat-card strong {
    color: #111827;

    font-size: 25px;
}


/* ==========================================================================
   DASHBOARD SECTIONS
   ========================================================================== */

.school-dashboard-section {
    margin-bottom: 25px;

    padding: 25px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

.school-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.school-section-heading h2 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 20px;
}

.school-section-heading p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}

.school-section-heading > a {
    color: #2563eb;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.school-section-heading > a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   QUICK ACTIONS
   ========================================================================== */

.school-action-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.school-action-card {
    display: block;

    padding: 20px;

    border: 1px solid #e5e7eb;
    border-radius: 13px;

    color: inherit;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.school-action-card:hover {
    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.school-action-icon {
    display: block;

    margin-bottom: 12px;

    font-size: 26px;
}

.school-action-card strong {
    display: block;

    margin-bottom: 5px;

    color: #111827;
}

.school-action-card small {
    color: #6b7280;

    line-height: 1.4;
}


/* ==========================================================================
   ATTENDANCE SUMMARY
   ========================================================================== */

.school-attendance-summary {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 12px;
}

.school-attendance-summary > div {
    padding: 17px;

    border-radius: 10px;

    background: #f8fafc;

    text-align: center;
}

.school-attendance-summary span {
    display: block;

    margin-bottom: 5px;

    color: #6b7280;

    font-size: 13px;
}

.school-attendance-summary strong {
    color: #111827;

    font-size: 22px;
}


/* ==========================================================================
   TWO-COLUMN CONTENT
   ========================================================================== */

.school-dashboard-columns {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px;
}

.school-dashboard-columns .school-dashboard-section {
    min-width: 0;
}


/* ==========================================================================
   TABLE
   ========================================================================== */

.school-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.school-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

.school-table th {
    padding: 11px 10px;

    border-bottom: 1px solid #e5e7eb;

    color: #6b7280;

    font-size: 12px;
    font-weight: 700;

    text-align: left;
}

.school-table td {
    padding: 13px 10px;

    border-bottom: 1px solid #f1f5f9;

    color: #374151;

    vertical-align: middle;
}

.school-table tr:last-child td {
    border-bottom: none;
}

.school-table td strong {
    display: block;

    color: #111827;
}

.school-table td small {
    display: block;

    margin-top: 3px;

    color: #9ca3af;
}


/* ==========================================================================
   STATUS
   ========================================================================== */

.school-status {
    display: inline-block;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.school-status-active {
    background: #dcfce7;
    color: #166534;
}

.school-status-inactive {
    background: #f3f4f6;
    color: #4b5563;
}

.school-status-suspended {
    background: #fee2e2;
    color: #991b1b;
}


/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.school-empty-state {
    padding: 35px 20px;

    border-radius: 12px;

    background: #f8fafc;

    text-align: center;
}

.school-empty-state > div {
    margin-bottom: 10px;

    font-size: 30px;
}

.school-empty-state h3 {
    margin: 0 0 6px;

    color: #111827;

    font-size: 17px;
}

.school-empty-state p {
    margin: 0 0 15px;

    color: #6b7280;

    font-size: 14px;
}

.school-empty-state a {
    color: #2563eb;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.school-empty-mini {
    padding: 25px 15px;

    color: #6b7280;

    font-size: 14px;

    text-align: center;
}

.school-empty-mini a {
    display: inline-block;

    margin-top: 7px;

    color: #2563eb;

    font-weight: 700;

    text-decoration: none;
}


/* ==========================================================================
   SCHOOL INFORMATION
   ========================================================================== */

.school-info-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.school-info-grid > div {
    padding: 15px;

    border-radius: 10px;

    background: #f8fafc;
}

.school-info-grid span {
    display: block;

    margin-bottom: 5px;

    color: #6b7280;

    font-size: 12px;
}

.school-info-grid strong {
    color: #111827;

    font-size: 14px;

    word-break: break-word;
}

.school-info-full {
    grid-column: 1 / -1;
}


/* ==========================================================================
   LOGOUT
   ========================================================================== */

.school-dashboard-logout {
    margin-top: 20px;

    text-align: right;
}

.school-dashboard-logout a {
    color: #dc2626;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.school-dashboard-logout a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   DASHBOARD MOBILE
   ========================================================================== */

@media (max-width: 1000px) {

    .school-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-dashboard-columns {
        grid-template-columns: 1fr;
    }

    .school-attendance-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .school-dashboard {
        width: min(100% - 24px, 1400px);

        padding-top: 20px;
    }

    .school-dashboard-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .school-code-display {
        width: 100%;

        box-sizing: border-box;
    }

    .school-stats-grid {
        grid-template-columns: 1fr;
    }

    .school-action-grid {
        grid-template-columns: 1fr;
    }

    .school-dashboard-section {
        padding: 18px;
    }

    .school-section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .school-attendance-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-info-grid {
        grid-template-columns: 1fr;
    }

    .school-info-full {
        grid-column: auto;
    }
}


/* =========================================
   SCHOOL USERS
========================================= */
/* ==========================================================================
   SCHOOL PAGE HEADER
   ========================================================================== */

.school-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 25px;
}

.school-page-header h1 {
    margin: 0 0 7px;

    color: #111827;

    font-size: 30px;
}

.school-page-header p {
    margin: 0;

    color: #6b7280;
}

.school-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.school-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    box-sizing: border-box;

    padding: 10px 16px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    border: 1px solid transparent;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .1s ease;
}

.school-btn:active {
    transform: translateY(1px);
}

.school-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.school-btn-primary:hover {
    background: #1d4ed8;
}

.school-btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.school-btn-secondary:hover {
    background: #f9fafb;
}


/* ==========================================================================
   PLAN BANNER
   ========================================================================== */

.school-plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

    padding: 16px 20px;

    border: 1px solid #bfdbfe;
    border-radius: 12px;

    background: #eff6ff;
}

.school-plan-banner strong {
    display: block;

    margin-bottom: 4px;

    color: #1e3a8a;
}

.school-plan-banner span {
    color: #3b82f6;

    font-size: 13px;
}

.school-plan-banner > a {
    color: #1d4ed8;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.school-plan-banner > a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   USER FILTERS
   ========================================================================== */

.school-user-filters {
    display: grid;

    grid-template-columns: 220px minmax(200px, 1fr) auto;

    align-items: end;

    gap: 15px;
}

.school-filter-group label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;
    font-weight: 600;
}

.school-filter-group select,
.school-filter-group input {
    width: 100%;

    height: 44px;

    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    font-size: 14px;

    outline: none;
}

.school-filter-group select:focus,
.school-filter-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}

.school-filter-actions {
    display: flex;
    gap: 8px;
}


/* ==========================================================================
   USERS TABLE
   ========================================================================== */

.school-users-table th,
.school-users-table td {
    white-space: nowrap;
}

.school-users-table td:first-child {
    min-width: 160px;
}

.school-user-type {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 7px;

    background: #f3f4f6;

    color: #374151;

    font-size: 12px;
    font-weight: 600;
}

.school-user-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.school-user-actions form {
    margin: 0;
}

.school-table-action {
    display: inline-block;

    padding: 6px 9px;

    border: none;
    border-radius: 7px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.school-table-action:hover {
    background: #dbeafe;
}

.school-table-action-danger {
    background: #fef2f2;

    color: #dc2626;
}

.school-table-action-danger:hover {
    background: #fee2e2;
}


/* ==========================================================================
   USERS MOBILE
   ========================================================================== */

@media (max-width: 800px) {

    .school-page-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .school-page-header-actions {
        width: 100%;
    }

    .school-page-header-actions .school-btn {
        flex: 1;
    }

    .school-user-filters {
        grid-template-columns: 1fr;
    }

    .school-filter-actions {
        width: 100%;
    }

    .school-filter-actions .school-btn {
        flex: 1;
    }
}
/*=========================================
    add user
    ======================================*/
    /* =========================================================
   SCHOOL USER FORM
   ========================================================= */

.school-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.school-form-card-header {
    margin-bottom: 25px;
}

.school-form-card-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.school-form-card-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.school-user-form {
    max-width: 850px;
}

.school-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.school-form-group {
    margin-bottom: 20px;
}

.school-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.school-form-group input,
.school-form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-form-group input:focus,
.school-form-group select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.school-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.school-form-information {
    padding: 16px 18px;
    margin: 10px 0 25px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.school-form-information strong {
    color: #111827;
}

.school-form-information p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.school-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.school-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .school-form-card {
        padding: 20px;
    }

    .school-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .school-form-actions {
        flex-direction: column-reverse;
    }

    .school-form-actions .school-btn {
        width: 100%;
        text-align: center;
    }

}

/* =========================================
   SCHOOL CLASSES
========================================= */
/* =========================================================
   SCHOOL CLASSES
   ========================================================= */

.school-class-summary {
    margin-top: 24px;
}

.school-classes-table {
    min-width: 900px;
}

.school-class-level {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.school-inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.school-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.school-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.school-message-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.school-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 700px) {

    .school-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .school-page-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .school-page-header-actions .school-btn {
        flex: 1;
        text-align: center;
    }

}
/*=========================================
    Assign teacher
=========================================*/
.school-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.school-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
}

.school-info-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.school-info-card strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

.school-teacher-assignment-table {
    min-width: 700px;
}

@media (max-width: 900px) {

    .school-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .school-info-grid {
        grid-template-columns: 1fr;
    }

}
/*=========================================
    Assign learners
===========================================*/
.school-class-selector {
    max-width: 650px;
}

.school-learners-table {
    min-width: 800px;
}

.school-class-selector .school-form-group {
    margin-bottom: 0;
}

/* =========================================
   SCHOOL ATTENDANCE
========================================= */
/* ==========================================================================
   SCHOOL ATTENDANCE
   ========================================================================== */

.school-attendance-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 18px;
}

.school-attendance-heading h2 {
    margin: 0 0 6px;
}

.school-attendance-heading p {
    margin: 0;
    color: #6b7280;
}

.school-attendance-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.school-attendance-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.school-attendance-summary-card span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.school-attendance-summary-card strong {
    display: block;
    font-size: 25px;
    color: #111827;
}

.school-attendance-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.school-attendance-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.school-attendance-toolbar strong {
    color: #111827;
}

.school-attendance-toolbar span {
    color: #6b7280;
}

.school-attendance-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
}

.school-attendance-table th,
.school-attendance-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.school-attendance-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.school-attendance-table td {
    color: #374151;
    font-size: 14px;
}

.school-attendance-table tbody tr:hover {
    background: #fafafa;
}

.school-attendance-learner strong {
    color: #111827;
}

.school-attendance-table input,
.school-attendance-table select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
}

.school-attendance-table input:focus,
.school-attendance-table select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.school-attendance-status {
    min-width: 125px;
}

.school-attendance-table input[type="time"] {
    min-width: 120px;
}

.school-attendance-table input[type="text"] {
    min-width: 180px;
}

.school-attendance-table tbody tr:last-child td {
    border-bottom: none;
}

.school-attendance-form > .school-form-actions {
    padding: 18px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}


/* ==========================================================================
   ATTENDANCE RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {

    .school-attendance-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .school-attendance-heading {
        display: block;
    }

    .school-attendance-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .school-attendance-summary-card {
        padding: 14px 10px;
    }

    .school-attendance-summary-card strong {
        font-size: 21px;
    }

    .school-attendance-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-attendance-toolbar .school-btn {
        width: 100%;
    }

    .school-attendance-table {
        min-width: 900px;
    }
}

@media (max-width: 450px) {

    .school-attendance-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .school-attendance-summary-card span {
        font-size: 12px;
    }

    .school-attendance-summary-card strong {
        font-size: 19px;
    }
}
/*========================================
    edit user
    =================================*/
    /* ==========================================================================
   SCHOOL USER EDIT
   ========================================================================== */

.school-form-optional {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.school-class-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.school-class-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease,
                background-color 0.2s ease;
}

.school-class-checkbox:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.school-class-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.school-class-checkbox span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.school-class-checkbox strong {
    color: #111827;
    font-size: 14px;
}

.school-class-checkbox small {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 900px) {

    .school-class-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .school-class-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SCHOOL ASSESSMENTS
========================================= */




/* ============================================================
   ATOMSPLAY SCHOOL - SHARED UI
   ============================================================
   Shared by:
   - School Admin
   - Teacher
   - Staff
   - Learner
   - Public School pages

   IMPORTANT:
   - This section belongs to the School system only.
   - It does NOT style the Private Tutor system.
   - Keep Assignment / Grading / Dashboard page-specific CSS
     below this shared section.
   ============================================================ */


/* ============================================================
   GLOBAL SCHOOL LAYOUT
   ============================================================ */

.school-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.school-main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 72px);
}

.school-content {
    width: calc(100% - 260px);
    min-width: 0;

    margin-left: 260px;
    padding: 30px;

    box-sizing: border-box;
}

.school-content > * {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


/* ============================================================
   SCHOOL HEADER
   ============================================================ */

.school-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 24px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    box-sizing: border-box;
}


/* ============================================================
   HEADER LEFT
   ============================================================ */

.school-header-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


/* ============================================================
   MOBILE MENU BUTTON
   ============================================================ */

.school-mobile-menu-btn {
    width: 42px;
    height: 42px;

    display: none;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #ffffff;
    color: #374151;

    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.school-mobile-menu-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #2563eb;
}


/* ============================================================
   SCHOOL BRAND
   ============================================================ */

.school-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

    color: #111827;

    text-decoration: none;

    white-space: nowrap;
}

.school-brand:hover {
    color: #111827;
    text-decoration: none;
}

.school-brand-logo {
    width: 42px;
    height: 42px;

    display: block;

    flex: 0 0 42px;

    object-fit: contain;
    object-position: center;

    border-radius: 8px;
}

.school-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1.15;
}

.school-brand-text strong {
    display: block;

    margin: 0;

    color: #111827;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.15;
}

.school-brand-text small {
    display: block;

    margin: 3px 0 0;

    color: #6b7280;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.15;
}


/* ============================================================
   HEADER RIGHT
   ============================================================ */

.school-header-right {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}


/* ============================================================
   HEADER USER
   ============================================================ */

.school-header-user {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
}

.school-header-user-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eff6ff;
    color: #2563eb;

    font-size: 15px;
}

.school-header-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.school-header-user-name {
    max-width: 180px;

    overflow: hidden;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-header-user-role {
    margin-top: 3px;

    color: #6b7280;

    font-size: 11px;
}


/* ============================================================
   HEADER ACTIONS
   ============================================================ */

.school-header-actions {
    display: flex;
    align-items: center;

    gap: 7px;
}

.school-header-action {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #ffffff;

    color: #4b5563;

    text-decoration: none;

    font-size: 15px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.school-header-action:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.school-header-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}


/* ============================================================
   GUEST LOGIN
   ============================================================ */

.school-header-login {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 14px;

    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.school-header-login:hover {
    background: #1d4ed8;
    color: #ffffff;

    transform: translateY(-1px);
}


/* ============================================================
   SCHOOL SIDEBAR
   ============================================================ */

.school-sidebar {
    position: fixed;

    top: 72px;
    left: 0;
    bottom: 0;

    width: 260px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-right: 1px solid #e5e7eb;

    overflow-y: auto;

    z-index: 900;

    box-sizing: border-box;
}

.school-sidebar::-webkit-scrollbar {
    width: 6px;
}

.school-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.school-sidebar::-webkit-scrollbar-track {
    background: transparent;
}


/* ============================================================
   SIDEBAR ROLE
   ============================================================ */

.school-sidebar-role {
    padding: 18px 20px;

    border-bottom: 1px solid #f3f4f6;
}

.school-sidebar-role-label {
    display: block;

    margin-bottom: 4px;

    color: #9ca3af;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.school-sidebar-role strong {
    color: #111827;

    font-size: 15px;
}


/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

.school-sidebar-nav {
    flex: 1;

    padding: 16px 12px;
}

.school-sidebar-section {
    margin-bottom: 22px;
}

.school-sidebar-section-title {
    padding: 0 12px;

    margin-bottom: 8px;

    color: #9ca3af;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.school-sidebar-link {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 4px;
    padding: 10px 12px;

    border-radius: 8px;

    color: #4b5563;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.school-sidebar-link i {
    width: 20px;

    flex: 0 0 20px;

    text-align: center;

    font-size: 15px;
}

.school-sidebar-link:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.school-sidebar-link.active {
    background: #eff6ff;
    color: #2563eb;

    font-weight: 700;
}

.school-sidebar-bottom {
    padding: 12px;

    border-top: 1px solid #e5e7eb;
}


/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.school-mobile-overlay {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 850;
}

.school-menu-open .school-mobile-overlay {
    display: block;
}

.school-no-scroll {
    overflow: hidden;
}


/* ============================================================
   PAGE CONTAINER
   ============================================================ */

.school-page {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}

.school-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.school-page-title {
    margin: 0;

    color: #111827;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.25;
}

.school-page-subtitle {
    margin: 6px 0 0;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.6;
}

.school-page-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


/* ============================================================
   SHARED BUTTONS
   ============================================================ */

.school-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.school-btn:hover {
    transform: translateY(-1px);
}

.school-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.school-btn-primary:hover {
    background: #1d4ed8;
}

.school-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.school-btn-secondary:hover {
    background: #e5e7eb;
}

.school-btn-success {
    background: #16a34a;
    color: #ffffff;
}

.school-btn-success:hover {
    background: #15803d;
}

.school-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.school-btn-danger:hover {
    background: #b91c1c;
}

.school-btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.school-btn-warning:hover {
    background: #d97706;
}

.school-btn-outline {
    background: #ffffff;
    color: #2563eb;
    border-color: #2563eb;
}

.school-btn-outline:hover {
    background: #eff6ff;
}

.school-btn-sm {
    min-height: 36px;

    padding: 7px 12px;

    font-size: 13px;
}

.school-btn-block {
    width: 100%;
}


/* ============================================================
   SHARED CARDS
   ============================================================ */

.school-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.school-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border-bottom: 1px solid #e5e7eb;
}

.school-card-title {
    margin: 0;

    color: #111827;

    font-size: 17px;
    font-weight: 700;
}

.school-card-subtitle {
    margin: 4px 0 0;

    color: #6b7280;

    font-size: 13px;
}

.school-card-body {
    padding: 20px;
}

.school-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 16px 20px;

    border-top: 1px solid #e5e7eb;
}


/* ============================================================
   SHARED GRID
   ============================================================ */

.school-grid {
    display: grid;
    gap: 20px;
}

.school-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ============================================================
   SHARED FORMS
   ============================================================ */

.school-form {
    width: 100%;
}

.school-form-group {
    margin-bottom: 18px;
}

.school-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}

.school-form-group input,
.school-form-group select,
.school-form-group textarea,
.school-form-control {
    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.school-form-group textarea {
    min-height: 120px;

    resize: vertical;
}

.school-form-group input:focus,
.school-form-group select:focus,
.school-form-group textarea:focus,
.school-form-control:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

.school-form-help {
    display: block;

    margin-top: 5px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;
}

.school-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 20px;
}


/* ============================================================
   TABLES
   ============================================================ */

.school-table-wrapper {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.school-table {
    width: 100%;
    min-width: 700px;

    border-collapse: collapse;
}

.school-table th,
.school-table td {
    padding: 13px 14px;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;
    vertical-align: middle;

    font-size: 13px;
}

.school-table th {
    background: #f9fafb;

    color: #374151;

    font-weight: 700;

    white-space: nowrap;
}

.school-table td {
    color: #4b5563;
}

.school-table tbody tr:hover {
    background: #f9fafb;
}

.school-table-actions {
    display: flex;
    align-items: center;

    gap: 6px;

    flex-wrap: wrap;
}


/* ============================================================
   STATUS BADGES
   ============================================================ */

.school-status {
    min-height: 28px;

    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.school-status-active,
.school-status-published,
.school-status-success {
    background: #dcfce7;
    color: #166534;
}

.school-status-pending,
.school-status-draft,
.school-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.school-status-inactive,
.school-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.school-status-info {
    background: #dbeafe;
    color: #1e40af;
}


/* ============================================================
   ALERTS / MESSAGES
   ============================================================ */

.school-alert,
.school-message {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 13px 15px;

    margin-bottom: 18px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 14px;

    line-height: 1.5;
}

.school-alert-success,
.school-message-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.school-alert-error,
.school-message-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.school-alert-warning,
.school-message-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.school-alert-info,
.school-message-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.school-empty-state {
    padding: 45px 20px;

    text-align: center;

    color: #6b7280;
}

.school-empty-state i {
    display: block;

    margin-bottom: 12px;

    color: #9ca3af;

    font-size: 38px;
}

.school-empty-state h3 {
    margin: 0 0 7px;

    color: #374151;

    font-size: 17px;
}

.school-empty-state p {
    max-width: 520px;

    margin: 0 auto 18px;

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.school-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 22px;

    flex-wrap: wrap;
}

.school-pagination a,
.school-pagination span {
    min-width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid #e5e7eb;
    border-radius: 7px;

    background: #ffffff;

    color: #374151;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.school-pagination a:hover {
    background: #f3f4f6;
}

.school-pagination .active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}


/* ============================================================
   SCHOOL FOOTER
   ============================================================ */

.school-footer {
    margin-left: 260px;

    width: calc(100% - 260px);

    padding: 32px 30px;

    background: #000000;

    border-top: 1px solid #1f2937;

    color: #ffffff;

    font-size: 13px;

    box-sizing: border-box;

    text-align: center;
}


/* ============================================================
   FOOTER CONTAINER
   ============================================================ */

.school-footer-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* ============================================================
   FOOTER BRAND
   ============================================================ */

.school-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 14px;

    text-align: center;
}


/* LOGO */

.school-footer-logo img {
    width: 38px;
    height: 38px;

    display: block;

    object-fit: contain;

    border-radius: 7px;
}


/* BRAND TEXT */

.school-footer-brand-text {
    text-align: left;
}

.school-footer-brand-text h3 {
    margin: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.school-footer-brand-text p {
    margin: 2px 0 0;

    color: #d1d5db;

    font-size: 12px;
}


/* ============================================================
   FOOTER CONTENT
   ============================================================ */

.school-footer-content {
    margin-bottom: 20px;

    text-align: center;
}

.school-footer-content p {
    margin: 4px 0;

    color: #ffffff;

    line-height: 1.6;
}


/* ============================================================
   FOOTER BOTTOM
   ============================================================ */

.school-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 10px;

    padding-top: 16px;

    border-top: 1px solid #374151;

    text-align: center;
}

.school-footer-bottom p {
    margin: 0;

    color: #d1d5db;
}


/* ============================================================
   FOOTER LINKS
   ============================================================ */

.school-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}

.school-footer a {
    color: #ffffff;

    text-decoration: none;

    font-weight: 500;
}

.school-footer a:hover {
    color: #93c5fd;

    text-decoration: underline;
}


/* ============================================================
   MOBILE FOOTER
   ============================================================ */

@media (max-width: 900px) {

    .school-footer {
        margin-left: 0;

        width: 100%;

        padding: 28px 20px 100px;
    }

}


@media (max-width: 480px) {

    .school-footer {
        padding: 25px 15px 100px;

        font-size: 12px;
    }

    .school-footer-brand {
        margin-bottom: 12px;
    }

    .school-footer-logo img {
        width: 34px;
        height: 34px;
    }

    .school-footer-brand-text h3 {
        font-size: 15px;
    }

    .school-footer-content {
        margin-bottom: 16px;
    }

    .school-footer-bottom {
        gap: 8px;
    }

}

/* ============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================ */

.school-bottom-nav {
    display: none;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .school-content {
        padding: 24px;
    }

    .school-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   MOBILE - 900PX
   ============================================================ */

@media (max-width: 900px) {

    /* --------------------------------------------------------
       HEADER
       -------------------------------------------------------- */

    .school-header {
        min-height: 64px;

        padding: 0 14px;
    }

    .school-mobile-menu-btn {
        display: inline-flex;
    }

    .school-header-user-info {
        display: none;
    }

    .school-header-right {
        gap: 8px;
    }

    .school-header-action {
        width: 38px;
        height: 38px;
    }


    /* --------------------------------------------------------
       BRAND
       -------------------------------------------------------- */

    .school-brand {
        gap: 8px;
    }

    .school-brand-logo {
        width: 36px;
        height: 36px;

        flex-basis: 36px;

        border-radius: 7px;
    }

    .school-brand-text strong {
        font-size: 16px;
    }

    .school-brand-text small {
        margin-top: 2px;

        font-size: 10px;
    }


    /* --------------------------------------------------------
       SIDEBAR
       -------------------------------------------------------- */

    .school-sidebar {
        top: 64px;

        width: min(290px, 86vw);

        transform: translateX(-100%);

        transition: transform 0.25s ease;

        box-shadow:
            8px 0 25px rgba(0, 0, 0, 0.12);
    }

    .school-menu-open .school-sidebar {
        transform: translateX(0);
    }


    /* --------------------------------------------------------
       CONTENT
       -------------------------------------------------------- */

    .school-content {
        width: 100%;

        margin-left: 0;

        padding: 20px 15px 105px;
    }


    /* --------------------------------------------------------
       FOOTER
       -------------------------------------------------------- */

    .school-footer {
        margin-left: 0;

        padding: 22px 15px 90px;
    }

    .school-footer-bottom {
        flex-direction: column;

        text-align: center;
    }

    .school-footer-links {
        justify-content: center;
    }


    /* --------------------------------------------------------
       BOTTOM NAV
       -------------------------------------------------------- */

    .school-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1100;

        display: grid;

        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        min-height: 64px;

        padding-bottom: env(safe-area-inset-bottom);

        background: #ffffff;

        border-top: 1px solid #e5e7eb;

        box-shadow:
            0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .school-bottom-nav-item {
        min-width: 0;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        padding: 7px 3px;

        color: #6b7280;

        text-decoration: none;

        font-size: 10px;
        font-weight: 600;

        transition:
            background 0.2s ease,
            color 0.2s ease;
    }

    .school-bottom-nav-item i {
        font-size: 17px;
    }

    .school-bottom-nav-item.active {
        background: #eff6ff;
        color: #2563eb;
    }

    .school-bottom-nav-logout {
        color: #dc2626;
    }

    .school-bottom-nav-logout:hover {
        background: #fef2f2;
        color: #b91c1c;
    }


    /* --------------------------------------------------------
       PAGE HEADER
       -------------------------------------------------------- */

    .school-page-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }

    .school-page-title {
        font-size: 23px;
    }

    .school-page-actions {
        width: 100%;
    }

    .school-page-actions .school-btn {
        flex: 1;
    }


    /* --------------------------------------------------------
       GRIDS
       -------------------------------------------------------- */

    .school-grid-4,
    .school-grid-3,
    .school-grid-2 {
        grid-template-columns: 1fr;
    }


    /* --------------------------------------------------------
       CARDS
       -------------------------------------------------------- */

    .school-card-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .school-card-body {
        padding: 16px;
    }


    /* --------------------------------------------------------
       FORMS
       -------------------------------------------------------- */

    .school-form-actions {
        justify-content: stretch;
    }

    .school-form-actions .school-btn {
        flex: 1;
    }


    /* --------------------------------------------------------
       TABLES
       -------------------------------------------------------- */

    .school-table {
        min-width: 650px;
    }
}


/* ============================================================
   SMALL PHONES - 480PX
   ============================================================ */

@media (max-width: 480px) {

    .school-header {
        padding: 0 10px;
    }

    .school-header-left {
        gap: 8px;
    }

    .school-mobile-menu-btn {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }

    .school-brand {
        gap: 7px;
    }

    .school-brand-logo {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .school-brand-text strong {
        font-size: 15px;
    }

    .school-brand-text small {
        font-size: 9px;
    }

    .school-header-action {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .school-content {
        padding: 16px 12px 105px;
    }

    .school-page-title {
        font-size: 21px;
    }

    .school-page-subtitle {
        font-size: 13px;
    }

    .school-page-actions {
        flex-direction: column;
    }

    .school-page-actions .school-btn {
        width: 100%;

        flex: none;
    }

    .school-btn {
        min-height: 42px;
    }

    .school-card {
        border-radius: 9px;
    }

    .school-card-header {
        padding: 15px;
    }

    .school-card-body {
        padding: 15px;
    }

    .school-bottom-nav-item {
        font-size: 9px;
    }

    .school-bottom-nav-item i {
        font-size: 16px;
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.school-sidebar-link:focus-visible,
.school-btn:focus-visible,
.school-mobile-menu-btn:focus-visible,
.school-bottom-nav-item:focus-visible,
.school-brand:focus-visible,
.school-header-action:focus-visible,
.school-header-login:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);

    outline-offset: 2px;
}


/* ============================================================
   TOUCH DEVICES
   ============================================================ */

@media (hover: none) {

    .school-btn:hover {
        transform: none;
    }
}


/* ============================================================
   SAFE AREA
   ============================================================ */

@supports (padding: max(0px)) {

    .school-bottom-nav {
        padding-bottom:
            max(
                8px,
                env(safe-area-inset-bottom)
            );
    }
}


/* ============================================================
   PREVENT HORIZONTAL OVERFLOW
   ============================================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
/* =========================================================
   SCHOOL QUICK ACTIONS
========================================================= */

.school-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.school-quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    padding: 22px 20px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    text-decoration: none;
    color: #1f2937;

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.school-quick-action:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.school-quick-action:active {
    transform: translateY(-1px);
}


/* ICON */

.school-quick-action-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 6px;

    background: #eff6ff;
    border-radius: 12px;

    font-size: 25px;
}


/* TITLE */

.school-quick-action strong {
    display: block;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;

    color: #111827;
}


/* DESCRIPTION */

.school-quick-action small {
    display: block;

    font-size: 13px;
    line-height: 1.5;

    color: #6b7280;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .school-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .school-quick-actions {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .school-quick-action {
        padding: 18px;
        border-radius: 12px;
    }

    .school-quick-action-icon {
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .school-quick-action strong {
        font-size: 15px;
    }

    .school-quick-action small {
        font-size: 12px;
    }

}





.cbt-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 24px;
}

.cbt-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cbt-page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.cbt-page-subtitle {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.cbt-create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| SUMMARY
|--------------------------------------------------------------------------
*/

.cbt-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.cbt-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
}

.cbt-summary-label {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 7px;
}

.cbt-summary-value {
    font-size: 25px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.cbt-table-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow-x: auto;
}

.cbt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.cbt-table th,
.cbt-table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
}

.cbt-table th {
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.cbt-table td {
    font-size: 14px;
}

.cbt-table tr:last-child td {
    border-bottom: none;
}

/*
|--------------------------------------------------------------------------
| CBT INFORMATION
|--------------------------------------------------------------------------
*/

.cbt-title {
    font-weight: 700;
    color: #111827;
}

.cbt-description {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    max-width: 240px;
    line-height: 1.5;
}

.cbt-type {
    text-transform: capitalize;
}

/*
|--------------------------------------------------------------------------
| STATUS BADGES
|--------------------------------------------------------------------------
*/

.cbt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.cbt-status-draft {
    background: #f3f4f6;
    color: #374151;
}

.cbt-status-published {
    background: #dcfce7;
    color: #166534;
}

.cbt-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

/*
|--------------------------------------------------------------------------
| ACTIONS
|--------------------------------------------------------------------------
*/

.cbt-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.cbt-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| EMPTY STATE
|--------------------------------------------------------------------------
*/

.cbt-empty {
    padding: 60px 25px;
    text-align: center;
}

.cbt-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.cbt-empty-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 7px;
}

.cbt-empty-text {
    color: #6b7280;
    margin-bottom: 20px;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

.cbt-mobile-list {
    display: none;
}

.cbt-mobile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 17px;
    margin-bottom: 14px;
}

.cbt-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cbt-mobile-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.cbt-mobile-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.cbt-mobile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 17px 0;
}

.cbt-mobile-info-item {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}

.cbt-mobile-info-label {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 3px;
}

.cbt-mobile-info-value {
    font-size: 13px;
    font-weight: 600;
}

.cbt-mobile-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.cbt-mobile-actions .cbt-action {
    flex: 1 1 calc(50% - 7px);
    min-width: 100px;
}

/*
|--------------------------------------------------------------------------
| ACTIVE SESSION NOTICE
|--------------------------------------------------------------------------
*/

.cbt-session-note {
    margin-top: 5px;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .cbt-table {
        min-width: 1000px;
    }

}

@media (max-width: 900px) {

    .cbt-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cbt-table-wrapper {
        display: none;
    }

    .cbt-mobile-list {
        display: block;
    }

}

@media (max-width: 600px) {

    .cbt-page {
        padding: 16px;
    }

    .cbt-page-title {
        font-size: 23px;
    }

    .cbt-page-header {
        align-items: stretch;
    }

    .cbt-create-btn {
        width: 100%;
    }

    .cbt-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cbt-summary-card {
        padding: 14px;
    }

    .cbt-summary-value {
        font-size: 21px;
    }

    .cbt-mobile-card {
        padding: 15px;
    }

    .cbt-mobile-actions .cbt-action {
        flex: 1 1 100%;
    }

}



/* =========================================================
   TEACHER PROFILE
   ========================================================= */

.teacher-profile-overview {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px;
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.teacher-profile-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.teacher-profile-summary {
    min-width: 0;
}

.teacher-profile-summary h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
}

.teacher-profile-summary > p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.teacher-profile-summary > p i {
    margin-right: 6px;
    color: #2563eb;
}

.teacher-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.teacher-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
}

.teacher-profile-meta i {
    color: #2563eb;
}

.teacher-profile-meta span:last-child i {
    font-size: 8px;
    color: #16a34a;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.school-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.school-page-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.school-page-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    border-radius: 13px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.school-page-header h1 {
    margin: 0;
    color: #111827;
    font-size: 26px;
}

.school-page-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.school-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.school-message-icon {
    flex: 0 0 auto;
    font-size: 17px;
}

.school-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.school-message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}


/* =========================================================
   FORM CARDS
   ========================================================= */

.school-form-card {
    margin-bottom: 22px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.school-form-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f3;
}

.school-form-card-header h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #111827;
    font-size: 18px;
}

.school-form-card-header h2 i {
    color: #2563eb;
    font-size: 17px;
}

.school-form-card-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.school-form-card form {
    padding: 24px;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.school-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 24px 24px;
}

.school-info-card {
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
}

.school-info-label {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.school-info-card strong {
    display: block;
    color: #111827;
    font-size: 14px;
}


//* =========================================================
   FORM FIELDS
   ========================================================= */

.school-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.school-form-group {
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
}

.school-form-group label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.required {
    margin-left: 2px;
    color: #dc2626;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.school-input-icon {
    position: relative;
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.school-input-icon > i {
    position: absolute;

    top: 50%;
    left: 14px;

    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    transform: translateY(-50%);

    color: #9ca3af;
    font-size: 14px;
    line-height: 1;

    pointer-events: none;
    z-index: 2;

    box-sizing: border-box;
}


/* =========================================================
   INPUT
   ========================================================= */

.school-input-icon > input {
    display: block;

    width: 100%;
    height: 44px;
    min-height: 44px;

    margin: 0;
    padding: 10px 13px 10px 42px;

    box-sizing: border-box;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 14px;
    line-height: 22px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.school-input-icon > input:focus {
    border-color: #2563eb;
    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.school-input-icon:focus-within > i {
    color: #2563eb;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.school-input-icon > input::placeholder {
    color: #9ca3af;
    opacity: 1;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.school-form-help {
    display: block;
    margin: 6px 0 0;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.school-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;

    gap: 10px;

    padding-top: 5px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.school-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 10px 17px;

    border: 0;
    border-radius: 9px;

    text-decoration: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   BUTTON ICON
   Prevent input-icon positioning from affecting buttons
   ========================================================= */

.school-btn > i {
    position: static;

    width: auto;
    height: auto;

    display: inline-block;

    margin: 0;
    padding: 0;

    transform: none;

    color: inherit;

    font-size: 14px;
    line-height: 1;

    pointer-events: auto;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.school-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.school-btn-primary:hover {
    background: #1d4ed8;

    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.20);

    transform: translateY(-1px);
}

.school-btn-primary:active {
    transform: translateY(0);
}


/* =========================================================
   MOBILE — TABLET
   ========================================================= */

@media (max-width: 700px) {

    .school-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .school-form-group {
        margin-bottom: 17px;
    }

}


/* =========================================================
   MOBILE — SMALL SCREENS
   ========================================================= */

@media (max-width: 520px) {

    .school-form-card form {
        padding: 18px;
    }

    .school-input-icon {
        min-height: 46px;
    }

    .school-input-icon > input {
        height: 46px;
        min-height: 46px;

        padding: 10px 13px 10px 42px;
    }

    .school-input-icon > i {
        left: 14px;

        width: 16px;
        height: 16px;

        font-size: 14px;
    }

    .school-form-actions {
        justify-content: stretch;
    }

    .school-form-actions .school-btn {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .school-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    .school-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-page-actions {
        width: 100%;
    }

    .school-page-actions .school-btn {
        width: 100%;
    }

    .teacher-profile-overview {
        padding: 22px;
    }

}

@media (max-width: 700px) {

    .teacher-profile-overview {
        align-items: flex-start;
    }

    .teacher-profile-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        font-size: 21px;
    }

    .teacher-profile-summary h2 {
        font-size: 20px;
    }

    .teacher-profile-meta {
        flex-direction: column;
        gap: 7px;
    }

    .school-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .school-info-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .school-page-header h1 {
        font-size: 22px;
    }

    .school-page-title-row {
        align-items: flex-start;
    }

    .school-page-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 19px;
    }

    .teacher-profile-overview {
        gap: 15px;
        padding: 18px;
    }

    .teacher-profile-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 18px;
    }

    .teacher-profile-summary h2 {
        font-size: 18px;
    }

    .school-form-card-header,
    .school-form-card form {
        padding: 18px;
    }

    .school-info-grid {
        padding: 18px;
    }

    .school-form-actions {
        justify-content: stretch;
    }

    .school-form-actions .school-btn {
        width: 100%;
    }

}




/*
|--------------------------------------------------------------------------
| REPORT PAGE
|--------------------------------------------------------------------------
*/

.report-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 25px;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.report-header h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.report-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.report-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid #2563eb;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.report-primary-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .18);
    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| SUMMARY
|--------------------------------------------------------------------------
*/

.report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 18px;
}

.summary-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.summary-value {
    margin-top: 5px;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}


/*
|--------------------------------------------------------------------------
| FILTER CARD
|--------------------------------------------------------------------------
*/

.filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 20px;
    margin-bottom: 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.filter-group label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.filter-group input,
.filter-group select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    box-sizing: border-box;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

.filter-btn,
.clear-btn {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-btn {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.filter-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.clear-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.clear-btn:hover {
    background: #f9fafb;
}


/*
|--------------------------------------------------------------------------
| TABLE CARD
|--------------------------------------------------------------------------
*/

.report-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    overflow: hidden;
}

.table-top {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.table-top h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 750;
}

.table-top p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.report-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.report-table th {
    padding: 13px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
}

.report-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 14px;
    vertical-align: middle;
}

.report-table tr:last-child td {
    border-bottom: 0;
}

.report-table tbody tr:hover {
    background: #fafcff;
}


/*
|--------------------------------------------------------------------------
| LEARNER
|--------------------------------------------------------------------------
*/

.learner-name {
    color: #111827;
    font-weight: 750;
}

.learner-username {
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
}

.score {
    color: #111827;
    font-weight: 800;
}

.position {
    color: #111827;
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| STATUS
|--------------------------------------------------------------------------
*/

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.status-draft {
    background: #f3f4f6;
    color: #374151;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.status-locked {
    background: #dbeafe;
    color: #1e40af;
}


/*
|--------------------------------------------------------------------------
| ACTIONS
|--------------------------------------------------------------------------
*/

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.action-btn-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.action-btn-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| EMPTY STATE
|--------------------------------------------------------------------------
*/

.empty-state {
    padding: 55px 25px;
    text-align: center;
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 25px;
}

.empty-state h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    font-weight: 750;
}

.empty-state p {
    margin: 8px 0 20px;
    color: #6b7280;
    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 1050px) {

    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 750px) {

    .report-page {
        padding: 15px;
    }

    .report-header {
        flex-direction: column;
    }

    .report-header h1 {
        font-size: 23px;
    }

    .report-primary-btn {
        width: 100%;
    }

    .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn,
    .clear-btn {
        width: 100%;
    }

}

@media (max-width: 480px) {

    .report-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 16px;
    }

}



.report-create-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
}

.report-create-header {
    margin-bottom: 25px;
}

.report-create-header h1 {
    margin: 0;
    font-size: 28px;
    color: #111827;
}

.report-create-header p {
    margin: 7px 0 0;
    color: #6b7280;
}

.report-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.form-section {
    margin-bottom: 28px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h2 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #111827;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-help {
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

.report-alert {
    padding: 13px 16px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-weight: 600;
}

.report-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 28px;
}

.report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 10px 17px;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.report-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.report-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.report-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

@media (max-width: 650px) {

    .report-create-page {
        padding: 15px;
    }

    .report-create-header h1 {
        font-size: 23px;
    }

    .report-form-card {
        padding: 18px;
        border-radius: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .report-btn {
        width: 100%;
    }

}





.school-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.school-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.school-form-group-full {
    grid-column: 1 / -1;
}

.school-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.school-form-group input,
.school-form-group select,
.school-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font: inherit;
    box-sizing: border-box;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.school-form-group input:focus,
.school-form-group select:focus,
.school-form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.school-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.school-form-help {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.school-alert {
    padding: 14px 16px;
    border-radius: 9px;
    margin-bottom: 20px;
}

.school-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #991b1b;
}

.school-alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.school-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

@media (max-width: 700px) {

    .school-form-grid {
        grid-template-columns: 1fr;
    }

    .school-form-group-full {
        grid-column: auto;
    }

    .school-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .school-form-actions .school-btn {
        width: 100%;
    }
}







.create-cbt-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.create-cbt-header {
    margin-bottom: 24px;
}

.create-cbt-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.create-cbt-subtitle {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.create-cbt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
}

.create-cbt-section {
    margin-bottom: 25px;
}

.create-cbt-section:last-child {
    margin-bottom: 0;
}

.create-cbt-section-title {
    margin: 0 0 15px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.create-cbt-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.create-cbt-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.create-cbt-field-full {
    grid-column: 1 / -1;
}

.create-cbt-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #374151;
}

.create-cbt-field input,
.create-cbt-field select,
.create-cbt-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.create-cbt-field input:focus,
.create-cbt-field select:focus,
.create-cbt-field textarea:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}

.create-cbt-field textarea {
    min-height: 110px;
    resize: vertical;
}

.create-cbt-help {
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.create-cbt-checks {
    display: grid;
    gap: 11px;
}

.create-cbt-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.create-cbt-check input {
    margin-top: 3px;
}

.create-cbt-check label {
    margin: 0;
    cursor: pointer;
}

.create-cbt-check-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.create-cbt-check-text {
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.create-cbt-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 9px;
    padding: 14px 17px;
    margin-bottom: 20px;
}

.create-cbt-errors strong {
    display: block;
    margin-bottom: 7px;
}

.create-cbt-errors ul {
    margin: 0;
    padding-left: 20px;
}

.create-cbt-errors li {
    margin: 4px 0;
}

.create-cbt-no-assignment {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 9px;
    padding: 15px;
    margin-bottom: 20px;
}

.create-cbt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #edf0f2;
}

.create-cbt-back {
    text-decoration: none;
}

@media (max-width: 700px) {

    .create-cbt-page {
        padding: 16px;
    }

    .create-cbt-title {
        font-size: 23px;
    }

    .create-cbt-card {
        padding: 18px;
    }

    .create-cbt-grid {
        grid-template-columns: 1fr;
    }

    .create-cbt-field-full {
        grid-column: auto;
    }

    .create-cbt-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .create-cbt-actions a,
    .create-cbt-actions button {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

}



/*
|--------------------------------------------------------------------------
| Assignment Report
|--------------------------------------------------------------------------
*/

.report-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.report-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-brand img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.report-brand h2 {
    margin: 0;
    font-size: 22px;
}

.report-brand p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.report-title {
    text-align: right;
}

.report-title h1 {
    margin: 0;
    font-size: 21px;
}

.report-title h2 {
    margin: 7px 0 0;
    font-size: 17px;
    font-weight: 600;
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.report-info-grid > div {
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.report-info-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 5px;
}

.report-info-grid strong {
    font-size: 15px;
}

.report-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.report-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.report-stat-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.report-stat-card span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.report-stat-card strong {
    display: block;
    font-size: 25px;
    line-height: 1.1;
}

.report-stat-card small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
}

.performance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.performance-summary > div {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f8fafc;
}

.performance-summary span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 7px;
}

.performance-summary strong {
    font-size: 25px;
}

.report-table td {
    vertical-align: middle;
}

.learner-contact {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-muted {
    background: #f1f5f9;
    color: #64748b;
}

.report-footer-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 100px;
    padding: 15px 0;
    color: #64748b;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .report-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 900px) {

    .report-header-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-title {
        text-align: left;
    }

    .report-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance-summary {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .report-info-grid {
        grid-template-columns: 1fr;
    }

    .report-stat-grid {
        grid-template-columns: 1fr;
    }

    .report-brand img {
        width: 52px;
        height: 52px;
    }

    .report-title h1 {
        font-size: 18px;
    }

    .report-title h2 {
        font-size: 15px;
    }

    .report-footer-info {
        flex-direction: column;
    }

}

/*
|--------------------------------------------------------------------------
| PRINT
|--------------------------------------------------------------------------
*/

@media print {

    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background: #fff !important;
    }

    .no-print,
    .school-header,
    .school-sidebar,
    .school-bottom-nav,
    .school-mobile-overlay,
    .school-footer {
        display: none !important;
    }

    .school-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .school-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .report-header-card {
        border: 1px solid #ddd !important;
    }

    .report-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .report-stat-card {
        break-inside: avoid;
    }

    .school-table-wrapper {
        overflow: visible !important;
    }

    .school-table {
        width: 100% !important;
        font-size: 10px !important;
    }

    .school-table th,
    .school-table td {
        padding: 7px 5px !important;
    }

    .report-footer-info {
        margin-bottom: 0;
    }

}






.cbt-question-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.cbt-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.cbt-question-title {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
}

.cbt-question-subtitle {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.cbt-question-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cbt-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 18px;
    margin-bottom: 20px;
}

.cbt-info-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.cbt-info-item {
    background: #f8fafc;
    border-radius: 9px;
    padding: 12px;
}

.cbt-info-label {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 4px;
}

.cbt-info-value {
    font-size: 14px;
    font-weight: 700;
}

.cbt-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.cbt-status-draft {
    background: #f3f4f6;
    color: #374151;
}

.cbt-status-published {
    background: #dcfce7;
    color: #166534;
}

.cbt-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.cbt-alert {
    padding: 14px 16px;
    border-radius: 9px;
    margin-bottom: 18px;
}

.cbt-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.cbt-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cbt-alert ul {
    margin: 5px 0 0;
    padding-left: 20px;
}

.cbt-question-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cbt-question-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 19px;
    background: #f8fafc;
    border-bottom: 1px solid #edf0f2;
}

.cbt-question-number {
    font-size: 15px;
    font-weight: 700;
}

.cbt-question-type {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.cbt-question-points {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.cbt-question-body {
    padding: 20px;
}

.cbt-question-text {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 16px;
}

.cbt-question-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px;
}

.cbt-answer-list {
    display: grid;
    gap: 9px;
}

.cbt-answer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cbt-answer-correct {
    border-color: #86efac;
    background: #f0fdf4;
}

.cbt-answer-marker {
    font-weight: 700;
    min-width: 24px;
}

.cbt-answer-text {
    flex: 1;
}

.cbt-correct-label {
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.cbt-explanation {
    margin-top: 17px;
    padding: 13px;
    border-radius: 8px;
    background: #f8fafc;
}

.cbt-explanation-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 4px;
}

.cbt-explanation-text {
    font-size: 13px;
    line-height: 1.5;
}

.cbt-question-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cbt-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 50px 25px;
    text-align: center;
}

.cbt-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.cbt-empty-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cbt-empty-text {
    color: #6b7280;
    margin-bottom: 20px;
}

.cbt-delete-form {
    display: inline;
}

@media (max-width: 850px) {

    .cbt-info-grid {
        grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 600px) {

    .cbt-question-page {
        padding: 16px;
    }

    .cbt-question-title {
        font-size: 23px;
    }

    .cbt-question-header-actions {
        width: 100%;
    }

    .cbt-question-header-actions a {
        flex: 1;
        text-align: center;
    }

    .cbt-info-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .cbt-question-card-header {
        padding: 14px;
    }

    .cbt-question-body {
        padding: 15px;
    }

    .cbt-question-actions a,
    .cbt-question-actions button {
        flex: 1;
        text-align: center;
    }
}




.view-cbt-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.view-cbt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.view-cbt-heading h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.view-cbt-heading p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.view-cbt-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-cbt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.view-cbt-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.view-cbt-info {
    background: #f8fafc;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 14px;
}

.view-cbt-info-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.view-cbt-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.view-cbt-description {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf0f2;
}

.view-cbt-description-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.view-cbt-description-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
}

.view-cbt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.view-cbt-status-draft {
    background: #f3f4f6;
    color: #374151;
}

.view-cbt-status-published {
    background: #dcfce7;
    color: #166534;
}

.view-cbt-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.view-cbt-question-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.view-cbt-question-number {
    font-size: 13px;
    font-weight: 800;
    color: #2563eb;
}

.view-cbt-question-points {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.view-cbt-question-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #111827;
    margin-bottom: 15px;
}

.view-cbt-question-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 10px;
    margin: 8px 0 16px;
}

.view-cbt-answer-list {
    display: grid;
    gap: 9px;
}

.view-cbt-answer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
}

.view-cbt-answer.correct {
    background: #f0fdf4;
    border-color: #86efac;
}

.view-cbt-answer-letter {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.view-cbt-answer.correct .view-cbt-answer-letter {
    background: #dcfce7;
    color: #166534;
}

.view-cbt-answer-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.view-cbt-correct-label {
    font-size: 11px;
    font-weight: 800;
    color: #15803d;
    white-space: nowrap;
}

.view-cbt-explanation {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    border-radius: 6px;
}

.view-cbt-explanation-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.view-cbt-explanation-text {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    white-space: pre-line;
}

.view-cbt-empty {
    text-align: center;
    padding: 45px 20px;
    color: #6b7280;
}

.view-cbt-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.view-cbt-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.view-cbt-summary h2 {
    margin: 0;
    font-size: 19px;
}

.view-cbt-summary-count {
    color: #6b7280;
    font-size: 13px;
}

.view-cbt-question-actions {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.view-cbt-bottom-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.view-cbt-publish-form,
.view-cbt-close-form {
    display: inline;
}

@media (max-width: 850px) {

    .view-cbt-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .view-cbt-page {
        padding: 16px;
    }

    .view-cbt-heading h1 {
        font-size: 23px;
    }

    .view-cbt-header-actions {
        width: 100%;
    }

    .view-cbt-header-actions a,
    .view-cbt-header-actions button {
        flex: 1;
        text-align: center;
    }

    .view-cbt-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .view-cbt-card {
        padding: 17px;
    }

    .view-cbt-question-header {
        flex-direction: column;
        gap: 5px;
    }

    .view-cbt-question-text {
        font-size: 15px;
    }

    .view-cbt-answer {
        padding: 10px;
    }
}




.publish-cbt-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 24px;
}

.publish-cbt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
}

.publish-cbt-header {
    margin-bottom: 22px;
}

.publish-cbt-header h1 {
    margin: 0;
    font-size: 27px;
}

.publish-cbt-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.publish-cbt-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.publish-cbt-stat {
    background: #f8fafc;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 14px;
}

.publish-cbt-stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.publish-cbt-stat-value {
    font-size: 18px;
    font-weight: 800;
}

.publish-cbt-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 10px;
    padding: 15px 16px;
    margin-bottom: 20px;
    line-height: 1.55;
}

.publish-cbt-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 15px 17px;
    margin-bottom: 20px;
}

.publish-cbt-error ul {
    margin: 8px 0 0;
    padding-left: 21px;
}

.publish-cbt-checklist {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.publish-cbt-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f4;
    font-size: 14px;
}

.publish-cbt-checklist li:last-child {
    border-bottom: 0;
}

.publish-cbt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
}

@media (max-width: 650px) {

    .publish-cbt-page {
        padding: 16px;
    }

    .publish-cbt-card {
        padding: 18px;
    }

    .publish-cbt-summary {
        grid-template-columns: 1fr 1fr;
    }

    .publish-cbt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .publish-cbt-actions a,
    .publish-cbt-actions button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}







.cbt-session-page {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px 40px;
}

.cbt-session-header {
    margin-bottom: 25px;
}

.cbt-session-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.cbt-session-header p {
    margin: 0;
    color: #666;
}

.cbt-session-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cbt-session-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.cbt-info-box {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 18px;
}

.cbt-info-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.cbt-info-value {
    font-size: 17px;
    font-weight: 700;
}

.cbt-code-section {
    text-align: center;
    padding: 35px 20px;
    background: #f4f7f5;
    border-radius: 16px;
    margin-bottom: 25px;
}

.cbt-code-label {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}

.cbt-code {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 10px;
    margin: 10px 0 15px;
}

.cbt-code-help {
    color: #666;
    margin: 0;
}

.cbt-session-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 20px;
    background: #e8f7ed;
    color: #18753b;
    font-weight: 700;
    font-size: 13px;
}

.cbt-session-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.school-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 9px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.school-btn-primary {
    background: #1f7a45;
    color: #fff;
}

.school-btn-secondary {
    background: #eef1f3;
    color: #333;
}

.school-btn-danger {
    background: #c62828;
    color: #fff;
}

.start-description {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 25px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 700px) {

    .cbt-session-page {
        padding: 0 12px 30px;
        margin-top: 20px;
    }

    .cbt-session-card {
        padding: 20px;
    }

    .cbt-session-info {
        grid-template-columns: 1fr;
    }

    .cbt-code {
        font-size: 38px;
        letter-spacing: 6px;
    }

    .cbt-session-actions {
        flex-direction: column;
    }

    .school-btn {
        width: 100%;
    }
}






.edit-cbt-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.edit-cbt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.edit-cbt-title {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
}

.edit-cbt-subtitle {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.edit-cbt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
}

.edit-cbt-field {
    margin-bottom: 20px;
}

.edit-cbt-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.edit-cbt-field input,
.edit-cbt-field select,
.edit-cbt-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.edit-cbt-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.edit-cbt-field input:focus,
.edit-cbt-field select:focus,
.edit-cbt-field textarea:focus {
    border-color: #2563eb;
}

.edit-cbt-grid {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 16px;
}

.edit-cbt-answers {
    display: grid;
    gap: 12px;
}

.edit-cbt-answer-row {
    display: grid;
    grid-template-columns: 42px 1fr 100px;
    gap: 9px;
    align-items: center;
}

.edit-cbt-answer-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    border-radius: 8px;
    background: #f3f4f6;
    font-weight: 700;
}

.edit-cbt-answer-row input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    height: 43px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.edit-cbt-correct {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.edit-cbt-correct input {
    width: auto;
}

.edit-cbt-help {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.edit-cbt-alert {
    padding: 14px 16px;
    border-radius: 9px;
    margin-bottom: 18px;
}

.edit-cbt-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.edit-cbt-error ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.edit-cbt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf0f2;
    padding-top: 22px;
    margin-top: 25px;
}

.edit-cbt-actions-right {
    display: flex;
    gap: 8px;
}

.true-false-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 9px;
}

.true-false-option input {
    width: auto;
}

@media (max-width: 650px) {

    .edit-cbt-page {
        padding: 16px;
    }

    .edit-cbt-title {
        font-size: 23px;
    }

    .edit-cbt-card {
        padding: 18px;
    }

    .edit-cbt-grid {
        grid-template-columns: 1fr;
    }

    .edit-cbt-answer-row {
        grid-template-columns: 38px 1fr;
    }

    .edit-cbt-correct {
        grid-column: 2;
    }

    .edit-cbt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-cbt-actions-right {
        display: flex;
        flex-direction: column;
    }

    .edit-cbt-actions a,
    .edit-cbt-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}





 


        .page-wrapper {
            width: min(1200px, calc(100% - 30px));
            margin: 30px auto 50px;
        }

        .top-bar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 15px;
            margin-bottom: 22px;
        }

        .top-title {
            flex: 1;
        }

        .top-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            text-decoration: none;
            color: #2563eb;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .back-link:hover {
            text-decoration: underline;
        }

        .print-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 10px 15px;
            border-radius: 9px;
            background: #2563eb;
            color: #ffffff;
            text-decoration: none;
            font-weight: 700;
            font-size: 14px;
        }

        .print-link:hover {
            background: #1d4ed8;
        }

        .top-title h1 {
            margin: 0;
            font-size: 28px;
            line-height: 1.2;
        }

        .top-title p {
            margin: 7px 0 0;
            color: #6b7280;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 15px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 800;
        }

        .status-pass {
            background: #dcfce7;
            color: #166534;
        }

        .status-fail {
            background: #fee2e2;
            color: #991b1b;
        }


        /*
        |--------------------------------------------------------------------------
        | SUMMARY
        |--------------------------------------------------------------------------
        */

        .summary-card {
            background: #ffffff;
            border-radius: 18px;
            padding: 24px;
            box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
            margin-bottom: 22px;
        }

        .summary-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 22px;
        }

        .learner-info h2 {
            margin: 0;
            font-size: 23px;
        }

        .learner-info p {
            margin: 7px 0 0;
            color: #6b7280;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 12px;
        }

        .summary-item {
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            padding: 17px;
            background: #fafafa;
        }

        .summary-item span {
            display: block;
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 7px;
        }

        .summary-item strong {
            display: block;
            font-size: 21px;
        }


        /*
        |--------------------------------------------------------------------------
        | CBT INFORMATION
        |--------------------------------------------------------------------------
        */

        .info-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-top: 20px;
        }

        .info-item {
            background: #f8fafc;
            border-radius: 12px;
            padding: 14px;
        }

        .info-item small {
            display: block;
            color: #6b7280;
            margin-bottom: 5px;
        }

        .info-item strong {
            display: block;
        }


        /*
        |--------------------------------------------------------------------------
        | REVIEW
        |--------------------------------------------------------------------------
        */

        .section-title {
            margin: 30px 0 15px;
        }

        .section-title h2 {
            margin: 0;
            font-size: 22px;
        }

        .question-card {
            background: #ffffff;
            border-radius: 18px;
            padding: 22px;
            margin-bottom: 18px;
            box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
            border-left: 5px solid #d1d5db;
        }

        .question-card.correct {
            border-left-color: #16a34a;
        }

        .question-card.wrong {
            border-left-color: #dc2626;
        }

        .question-card.unanswered {
            border-left-color: #f59e0b;
        }

        .question-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 15px;
        }

        .question-number {
            font-weight: 800;
            color: #2563eb;
        }

        .question-points {
            font-size: 13px;
            color: #6b7280;
            white-space: nowrap;
        }

        .question-text {
            font-size: 17px;
            line-height: 1.65;
            font-weight: 600;
            white-space: pre-wrap;
        }

        .question-image {
            max-width: 100%;
            max-height: 300px;
            display: block;
            margin: 15px 0;
            border-radius: 10px;
        }

        .answer-box {
            margin-top: 17px;
            padding: 15px;
            border-radius: 12px;
            background: #f8fafc;
        }

        .answer-box .label {
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            color: #6b7280;
            margin-bottom: 6px;
        }

        .answer-value {
            font-size: 15px;
            line-height: 1.55;
        }

        .answer-correct {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
        }

        .answer-wrong {
            background: #fef2f2;
            border: 1px solid #fecaca;
        }

        .answer-unanswered {
            background: #fffbeb;
            border: 1px solid #fde68a;
        }

        .result-label {
            display: inline-flex;
            margin-top: 14px;
            padding: 6px 11px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
        }

        .result-label.correct {
            background: #dcfce7;
            color: #166534;
        }

        .result-label.wrong {
            background: #fee2e2;
            color: #991b1b;
        }

        .result-label.unanswered {
            background: #fef3c7;
            color: #92400e;
        }

        .explanation {
            margin-top: 16px;
            padding: 15px;
            background: #eff6ff;
            border-radius: 12px;
            border: 1px solid #bfdbfe;
        }

        .explanation strong {
            display: block;
            margin-bottom: 6px;
            color: #1d4ed8;
        }

        .explanation div {
            line-height: 1.6;
            white-space: pre-wrap;
        }

        .empty-state {
            background: #ffffff;
            border-radius: 18px;
            padding: 30px;
            text-align: center;
            color: #6b7280;
        }


        /*
        |--------------------------------------------------------------------------
        | MOBILE
        |--------------------------------------------------------------------------
        */

        @media (max-width: 1000px) {

            .summary-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .info-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 650px) {

            .page-wrapper {
                width: min(100% - 20px, 1200px);
                margin-top: 20px;
            }

            .top-bar {
                flex-direction: column;
            }

            .top-title h1 {
                font-size: 23px;
            }

            .top-actions {
                width: 100%;
            }

            .print-link {
                width: 100%;
            }

            .summary-card {
                padding: 17px;
                border-radius: 15px;
            }

            .summary-header {
                flex-direction: column;
            }

            .summary-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .info-grid {
                grid-template-columns: 1fr;
            }

            .question-card {
                padding: 17px;
                border-radius: 15px;
            }

            .question-top {
                flex-direction: column;
                gap: 7px;
            }

            .question-text {
                font-size: 16px;
            }

            .summary-item strong {
                font-size: 18px;
            }
        }

    







/*
|--------------------------------------------------------------------------
| PAGE
|--------------------------------------------------------------------------
*/

.cbt-results-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
}

.cbt-results-header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
}

.cbt-results-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.cbt-results-title {
    margin: 0;
    color: #111827;
    font-size: 25px;
}

.cbt-results-subtitle {
    margin-top: 7px;
    color: #6b7280;
    font-size: 14px;
}

.cbt-results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.cbt-results-meta span {
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| ACTIONS
|--------------------------------------------------------------------------
*/

.cbt-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cbt-results-actions a {
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| STATISTICS
|--------------------------------------------------------------------------
*/

.cbt-result-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.cbt-result-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 17px;
    text-align: center;
}

.cbt-result-stat-value {
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.cbt-result-stat-label {
    color: #6b7280;
    font-size: 11px;
    margin-top: 5px;
}

.cbt-result-stat.pass .cbt-result-stat-value {
    color: #15803d;
}

.cbt-result-stat.fail .cbt-result-stat-value {
    color: #b91c1c;
}

.cbt-result-stat.average .cbt-result-stat-value {
    color: #2563eb;
}


/*
|--------------------------------------------------------------------------
| TABLE CARD
|--------------------------------------------------------------------------
*/

.cbt-results-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.cbt-results-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cbt-results-card-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
}

.cbt-results-card-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.cbt-results-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cbt-results-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.cbt-results-table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
}

.cbt-results-table td {
    padding: 14px;
    border-top: 1px solid #f0f0f0;
    color: #374151;
    font-size: 13px;
    vertical-align: middle;
}

.cbt-results-table tbody tr:hover {
    background: #fafafa;
}


/*
|--------------------------------------------------------------------------
| LEARNER
|--------------------------------------------------------------------------
*/

.cbt-learner-name {
    color: #111827;
    font-weight: 700;
}

.cbt-learner-username {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| SCORE
|--------------------------------------------------------------------------
*/

.cbt-score-main {
    color: #111827;
    font-weight: 800;
}

.cbt-percentage {
    font-weight: 800;
}

.cbt-percentage.pass {
    color: #15803d;
}

.cbt-percentage.fail {
    color: #b91c1c;
}


/*
|--------------------------------------------------------------------------
| BADGES
|--------------------------------------------------------------------------
*/

.cbt-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 800;
}

.cbt-status-badge.pass {
    background: #dcfce7;
    color: #166534;
}

.cbt-status-badge.fail {
    background: #fee2e2;
    color: #991b1b;
}


/*
|--------------------------------------------------------------------------
| DETAIL ACTION
|--------------------------------------------------------------------------
*/

.cbt-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 11px;

    border-radius: 8px;

    background: #eff6ff;
    color: #1d4ed8;

    border: 1px solid #bfdbfe;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.cbt-detail-button:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| EMPTY
|--------------------------------------------------------------------------
*/

.cbt-results-empty {
    padding: 50px 20px;
    text-align: center;
}

.cbt-results-empty-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.cbt-results-empty-title {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.cbt-results-empty-text {
    max-width: 480px;
    margin: 7px auto 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 850px) {

    .cbt-results-page {
        padding: 14px;
    }

    .cbt-results-header-top {
        flex-direction: column;
    }

    .cbt-results-actions {
        width: 100%;
    }

    .cbt-results-actions a {
        flex: 1;
        text-align: center;
    }

    .cbt-result-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 480px) {

    .cbt-result-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cbt-results-title {
        font-size: 21px;
    }

}





.close-cbt-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
}

.close-cbt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 26px;
}

.close-cbt-header h1 {
    margin: 0;
    font-size: 27px;
}

.close-cbt-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.close-cbt-warning {
    margin: 24px 0;
    padding: 16px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    line-height: 1.6;
}

.close-cbt-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.close-cbt-info-item {
    background: #f8fafc;
    border: 1px solid #edf0f2;
    border-radius: 9px;
    padding: 13px;
}

.close-cbt-info-label {
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.close-cbt-info-value {
    font-size: 14px;
    font-weight: 700;
}

.close-cbt-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 9px;
    padding: 13px 15px;
    margin-bottom: 18px;
}

.close-cbt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf0f2;
    padding-top: 21px;
    margin-top: 25px;
}

.close-cbt-actions form {
    margin: 0;
}

@media (max-width: 600px) {

    .close-cbt-page {
        padding: 16px;
    }

    .close-cbt-card {
        padding: 18px;
    }

    .close-cbt-info {
        grid-template-columns: 1fr;
    }

    .close-cbt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .close-cbt-actions a,
    .close-cbt-actions button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .close-cbt-actions form {
        width: 100%;
    }
}






/*
|--------------------------------------------------------------------------
| Assignment Grading Page
|--------------------------------------------------------------------------
*/

.grade-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grade-summary-item {
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.grade-summary-item span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.grade-summary-item strong {
    display: block;
    font-size: 17px;
    color: #111827;
}

.grade-question-card {
    margin-top: 20px;
}

.grade-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.grade-question-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.grade-question-number {
    font-weight: 700;
    color: #111827;
}

.grade-question-text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
}

.grade-question-image {
    margin-top: 15px;
}

.grade-question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.grade-answer-section {
    margin-top: 22px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
}

.grade-answer-section h3,
.grade-control-header h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #374151;
}

.grade-options {
    display: grid;
    gap: 10px;
}

.grade-option {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
}

.grade-option.selected {
    border-width: 2px;
}

.grade-option.correct {
    border-width: 2px;
}

.grade-option small {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
}

.grade-text-answer {
    padding: 15px;
    min-height: 70px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    line-height: 1.7;
    white-space: normal;
}

.grade-controls {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
}

.grade-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.grade-control-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(280px, 1fr);
    gap: 20px;
}

.school-form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.grade-submit-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 25px 0 100px;
}

@media (max-width: 900px) {

    .grade-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grade-control-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .grade-summary-grid {
        grid-template-columns: 1fr;
    }

    .grade-question-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .grade-option {
        align-items: flex-start;
        flex-direction: column;
    }

    .grade-option small {
        margin-left: 0;
    }

    .grade-controls {
        padding: 15px;
    }

    .grade-submit-bar {
        flex-direction: column-reverse;
    }

    .grade-submit-bar .school-btn {
        width: 100%;
        justify-content: center;
    }

}

