body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #333;
}


/* =========================================================
   SITE HEADER
   ========================================================= */

header {
    margin: 0;
    padding: 0;

    background: transparent;
}


/* Header banner */

.site-header-banner {
    width: 100%;

    min-height: 180px;

    background-color: var(--menu-background-color);

    background-image: var(--header-background-image);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

header h1 {
    margin: 0 0 15px 0;
}

/* Main content */

main {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
}


/* Footer */

footer {
    text-align: center;
    padding: 20px;
    color: #666;
}

.home {
    text-align: center;
}

.drag-item {
    cursor: grab;
    background: #f8f9fa;
    border: 1px solid #ccc;
    transition: 0.2s;
}

.drag-item:hover {
    background: #e9ecef;
}

.drop-zone {
    min-height: 50px;
    border: 2px dashed #999;
    border-radius: 8px;
    padding: 10px;
    color: #777;
    background: #fff;
}

.drop-zone.drag-over {
    border-color: #0d6efd;
    background: #e7f1ff;
}

/* =========================================================
ADMIN DASHBOARD
========================================================= */

.admin-dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 32px;
}


.admin-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}


.admin-dashboard-eyebrow {
    margin: 0 0 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}


.admin-dashboard-header h1 {
    margin: 0;

    color: #111827;

    font-size: 30px;
    line-height: 1.2;
}


.admin-dashboard-header p {
    margin: 9px 0 0;

    color: #6b7280;

    font-size: 15px;
    line-height: 1.5;
}


.admin-dashboard-role {
    flex-shrink: 0;

    padding: 7px 13px;

    background: #f3f4f6;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    color: #374151;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   LECTURER DASHBOARD
========================================================= */

.lecturer-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}


.lecturer-dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}


.lecturer-dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 24px;

    border-bottom: 1px solid #f0f1f3;
}


.lecturer-dashboard-card-eyebrow {
    margin: 0 0 5px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;
}


.lecturer-dashboard-card-header h2 {
    margin: 0;

    color: #111827;

    font-size: 18px;
    line-height: 1.3;
}


.lecturer-dashboard-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;

    padding: 0 10px;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 999px;

    color: #2563eb;

    font-size: 13px;
    font-weight: 700;
}


.lecturer-dashboard-list {
    display: flex;
    flex-direction: column;
}


.lecturer-dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 17px 24px;

    border-bottom: 1px solid #f3f4f6;
}


.lecturer-dashboard-list-item:last-child {
    border-bottom: 0;
}


.lecturer-dashboard-list-item strong {
    display: block;

    color: #111827;

    font-size: 14px;
    font-weight: 650;
}


.lecturer-dashboard-list-item span {
    display: block;

    margin-top: 4px;

    color: #6b7280;

    font-size: 13px;
}


.lecturer-dashboard-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    flex-shrink: 0;
}


.lecturer-dashboard-status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    text-transform: capitalize;
}


.lecturer-dashboard-status-draft {
    background: #fef3c7;
    color: #92400e;
}


.lecturer-dashboard-status-published {
    background: #dcfce7;
    color: #166534;
}


.lecturer-dashboard-status-closed {
    background: #f3f4f6;
    color: #4b5563;
}


.lecturer-dashboard-action {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border: 1px solid #dbeafe;
    border-radius: 6px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}


.lecturer-dashboard-action:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}


.lecturer-dashboard-empty {
    padding: 28px 24px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.5;
}

.lecturer-dashboard-list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.lecturer-dashboard-list-meta span {
    display: inline-flex;
    align-items: center;
}

/* =========================================================
   DASHBOARD - RECENT RESULTS
   ========================================================= */

.admin-dashboard-results-table .admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    min-height: 28px;
    padding: 0 10px;

    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

/* Pass */

.admin-dashboard-results-table .admin-status-active {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

/* Fail */

.admin-dashboard-results-table .admin-status-inactive {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* =========================================================
   DASHBOARD - RECENT RESULTS SCORE
   ========================================================= */

.admin-dashboard-results-table td:nth-child(3) strong {
    display: block;

    color: #1e293b;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.admin-dashboard-results-table .admin-results-performance-meta {
    margin-top: 3px;

    color: #64748b;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* =========================================================
   DASHBOARD - RECENT RESULTS ACTIONS
   ========================================================= */

.admin-dashboard-results-table .lecturer-dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 11px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #334155;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.admin-dashboard-results-table .lecturer-dashboard-action:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;

    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);

    text-decoration: none;
}

/* =========================================================
   DASHBOARD RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .lecturer-dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 640px) {

    .admin-dashboard-content {
        padding: 28px 20px;
    }


    .admin-dashboard-header {
        flex-direction: column;
        margin-bottom: 28px;
    }


    .lecturer-dashboard-list-item {
        align-items: flex-start;
        flex-direction: column;
    }


    .lecturer-dashboard-status {
        justify-content: flex-start;
        width: 100%;
    }

}


/* =========================================================
   SYSTEM OVERVIEW
   ========================================================= */

.admin-dashboard-overview {
    width: 100%;
}


.admin-dashboard-overview-header {
    margin-bottom: 14px;
}


.admin-dashboard-overview-header h2 {
    margin: 0;

    color: #111827;

    font-size: 19px;
    font-weight: 650;
}


.admin-dashboard-overview-header p {
    margin: 4px 0 0;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.admin-dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.admin-dashboard-stat {
    min-height: 116px;

    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}


.admin-dashboard-stat-label {
    color: #6b7280;

    font-size: 13px;
    font-weight: 600;
}


.admin-dashboard-stat-value {
    margin-top: 8px;

    color: #111827;

    font-size: 32px;
    line-height: 1.1;

    font-weight: 700;
}


.admin-dashboard-section {
    margin-bottom: 32px;
}


.admin-dashboard-section-header {
    margin-bottom: 18px;
}


.admin-dashboard-section-header h2 {
    margin: 0;
    font-size: 20px;
}


.admin-dashboard-section-header p {
    margin: 5px 0 0;
    color: #6b7280;
}


.admin-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


.admin-dashboard-action {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}


.admin-dashboard-action:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    transform: translateY(-2px);
}


.admin-dashboard-action strong {
    font-size: 16px;
}


.admin-dashboard-action span {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.admin-dashboard-information {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}


.admin-dashboard-information h2 {
    margin: 0 0 8px;
    font-size: 18px;
}


.admin-dashboard-information p {
    max-width: 800px;
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 1000px) {

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

}


@media (max-width: 650px) {

    .admin-dashboard-content {
        padding: 24px 20px;
    }


    .admin-dashboard-header {
        flex-direction: column;

        gap: 14px;

        margin-bottom: 30px;
    }


    .admin-dashboard-header h1 {
        font-size: 26px;
    }


    .admin-dashboard-role {
        align-self: flex-start;
    }


    .admin-dashboard-stats {
        grid-template-columns: 1fr;
    }


    .admin-dashboard-stat {
        min-height: auto;
    }

}

/* Dashboard summary */

.admin-summary {
display: grid;

grid-template-columns:
    repeat(
        2,
        minmax(0, 1fr)
    );

gap: 20px;

}

.admin-summary-item {
background: #ffffff;

border: 1px solid #dee2e6;

border-radius: 8px;

padding: 22px;

box-shadow:
    0 2px 6px
    rgba(0, 0, 0, 0.05);

}

.admin-summary-label {
display: block;

margin-bottom: 10px;

color: #212529;

font-size: 17px;

font-weight: 600;

}

.admin-summary-item a {
color: #0d6efd;

text-decoration: none;

font-size: 14px;

font-weight: 500;

}

.admin-summary-item a:hover {
color: #0a58ca;

text-decoration: underline;

}

/* =========================================================
MAIN NAVIGATION
========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    width: 100%;

    margin: 0;

    padding: 0;

    background-color: var(--menu-background-color);

    background-image: var(--menu-background-image);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

/* Top-level navigation items */

.main-nav > a,
.main-nav > .nav-dropdown > a {
display: inline-flex;

align-items: center;

justify-content: center;

min-height: 40px;

padding: 9px 15px;

margin: 0;

color: var(--menu-text-color);

background: transparent;

border-radius: 5px;

text-decoration: none;

font-size: 14px;

font-weight: 500;

white-space: nowrap;

transition:
    background-color 0.2s ease,
    color 0.2s ease;

}

.main-nav > a:hover,
.main-nav > .nav-dropdown > a:hover {
    background-color: var(--menu-hover-color);

    color: var(--menu-text-color);
    text-decoration: none;

}
.main-nav > a.active,
.main-nav > .nav-dropdown > a.active {
    background-color: var(--menu-active-color);

    color: var(--menu-text-color);
}

/* Dropdown container */

.main-nav .nav-dropdown {
position: relative;

display: block;

margin: 0;

padding: 0;

}

/* Dropdown arrow */

.main-nav .dropdown-arrow {
margin-left: 7px;

font-size: 9px;

line-height: 1;

}

/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.main-nav .nav-dropdown-menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 200px;

    margin: 0;

    padding: 5px 0;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.15);

    z-index: 9999;

    text-align: left;
}


/*
 * Keep the hover area connected to the
 * dropdown so the menu does not disappear
 * while moving the mouse downward.
 */

.main-nav .nav-dropdown::after {
    content: "";

    position: absolute;

    left: 0;

    top: 100%;

    width: 100%;

    height: 8px;

    background: transparent;
}


/* Show dropdown */

.main-nav .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}


/* Dropdown links */

.main-nav .nav-dropdown-menu a {
display: block;

width: auto;

margin: 0;

padding: 10px 16px;

color: #333333;

background: #ffffff;

text-decoration: none;

font-size: 14px;

font-weight: 400;

white-space: nowrap;

}

.main-nav .nav-dropdown-menu a:hover {
color: #1d4ed8;

background: #f3f4f6;

text-decoration: none;

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 700px) {


header {
    padding: 18px 12px;
}


header h1 {
    font-size: 22px;

    margin-bottom: 12px;
}


.main-nav {
    gap: 2px;

    flex-wrap: wrap;
}


.main-nav > a,
.main-nav > .nav-dropdown > a {
    padding: 8px 10px;

    font-size: 13px;
}


main {
    margin: 20px 12px;

    padding: 20px;
}


.admin-summary {
    grid-template-columns: 1fr;
}


.admin-dashboard-header h1 {
    font-size: 25px;
}
}


/* =========================================================
ADMIN PAGES
========================================================= */

.admin-page {
max-width: 1100px;
margin: 0 auto;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-page-header h1 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-page-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.admin-page-header .admin-action-group {
    flex-shrink: 0;
}

.admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 17px;

    border: 1px solid #1d4ed8;
    border-radius: 7px;

    background: #1d4ed8;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.admin-primary-button:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(29, 78, 216, 0.18);
}

.admin-primary-button:active {
    transform: translateY(1px);
}


.admin-role-badge {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.admin-status,
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    min-height: 28px;

    padding: 0 10px;

    box-sizing: border-box;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    white-space: nowrap;
}

.admin-status.active {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.admin-status.disabled {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.admin-action-group {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 7px;
}

.admin-action-group form {
margin: 0;
}

.admin-action-button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 7px 11px;
color: #495057;
background: #ffffff;
border: 1px solid #ced4da;
border-radius: 5px;
text-decoration: none;
font-family: inherit;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}

.admin-action-button:hover {
color: #212529;
background: #f8f9fa;
text-decoration: none;
}

.admin-action-button.danger {
color: #b02a37;
border-color: #f1aeb5;
}

.admin-action-button.danger:hover {
background: #f8d7da;
}

.admin-action-button.success {
color: #146c43;
border-color: #a3cfbb;
}

.admin-action-button.success:hover {
background: #d1e7dd;
}

.admin-action-button.admin-action-button-compact {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
}

.admin-password-form {
display: flex;
align-items: center;
gap: 6px;
}

.admin-password-input {
width: 140px;
padding: 7px 9px;
border: 1px solid #ced4da;
border-radius: 5px;
font-family: inherit;
font-size: 12px;
box-sizing: border-box;
}

.admin-password-input:focus {
outline: none;
border-color: #86b7fe;
box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

@media (max-width: 700px) {

.admin-page-header {
    align-items: flex-start;
    flex-direction: column;
}

.admin-page-header h1 {
    font-size: 25px;
}

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

.admin-table {
    min-width: 850px;
}

}
/* =========================================================
ADMIN FORMS
========================================================= */

.admin-form-grid {
display: grid;

grid-template-columns:
    repeat(2, minmax(0, 1fr));

gap: 22px;

}

.admin-form-group small {
    color: #6c757d;
    font-size: 12px;
}

.admin-form-actions .admin-primary-button,
.admin-form-actions .admin-secondary-button {
    min-width: 120px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

@media (max-width: 700px) {

.admin-form-grid {
    grid-template-columns: 1fr;
}

}

/* Form validation errors */

.admin-form-errors {
margin-bottom: 22px;

padding: 14px 16px;

color: #842029;

background: #f8d7da;

border: 1px solid #f1aeb5;

border-radius: 6px;

font-size: 14px;

}

.admin-form-errors strong {
display: block;

margin-bottom: 6px;

}

.admin-form-errors ul {
margin: 0;

padding-left: 20px;

}

.admin-form-errors li {
margin: 4px 0;
}


/*=========================================================
FLASH MESSAGES
========================================================= */

.flash-message {
max-width: 1200px;

margin: 0 auto 20px;

padding: 12px 16px;

border-radius: 6px;

font-size: 14px;

}

.flash-success {
color: #155724;

background: #d4edda;

border: 1px solid #c3e6cb;

}

.flash-error {
color: #842029;

background: #f8d7da;

border: 1px solid #f1aeb5;

}

/* =========================================================
ADMIN BUTTON
========================================================= */

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 16px;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    background: #ffffff;
    color: #334155;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.admin-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}


/* =========================================================
ADMIN DANGER BUTTON
========================================================= */

.admin-button-danger {
    color: #ffffff;
    background: #dc3545;
}

.admin-button-danger:hover {
    color: #ffffff;
    background: #bb2d3b;
    text-decoration: none;
}



/* =========================================================
ADMIN TABLE
========================================================= */

.admin-table-container {
overflow-x: auto;

background: #ffffff;

border: 1px solid #e3e6ea;

border-radius: 8px;

box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04);

}

.admin-table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-table thead th {
    padding: 13px 15px;

    background: #f8fafc;

    border-bottom: 1px solid #e2e8f0;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    text-align: left;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 14px 15px;

    border-bottom: 1px solid #eef1f5;

    color: #475569;

    font-size: 13px;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr {
    transition: background 0.12s ease;
}

.admin-table tbody tr:hover {
    background: #fafcff;
}

.admin-table tbody td strong {
    color: #1e293b;
    font-weight: 600;
}

.admin-table-empty {
padding: 40px 20px !important;

color: #6c757d;

text-align: center;

}

/* =========================================================
   EXAM MANAGEMENT - STATUS
   ========================================================= */

.exam-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 76px;
    min-height: 28px;
    padding: 0 10px;

    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

/* Draft */

.exam-status-draft {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Published */

.exam-status-published {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

/* Closed */

.exam-status-closed {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* =========================================================
TABLE ACTIONS
========================================================= */

.admin-table-actions {
display: flex;

align-items: center;

gap: 14px;

}

.admin-table-actions a {
color: #0d6efd;

text-decoration: none;

font-weight: 500;

}

.admin-table-actions a:hover {
color: #0a58ca;

text-decoration: underline;

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 700px) {

.admin-button {
    width: 100%;

    box-sizing: border-box;

    text-align: center;
}

}

/* =========================================================
   EXAM DETAILS
   ========================================================= */

.exam-details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-bottom: 30px;
}


.exam-detail-item {
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;
}


.exam-detail-label {
    display: block;

    margin-bottom: 8px;

    color: #6c757d;

    font-size: 13px;

    font-weight: 600;
}


.exam-description,
.exam-blueprint-section {
    margin-bottom: 30px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;
}


.exam-description h2,
.exam-blueprint-section h2 {
    margin: 0 0 6px;

    font-size: 20px;

    color: #212529;
}


.exam-description p,
.admin-page-section-header p {
    color: #6c757d;

    line-height: 1.6;
}


.admin-page-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 22px;

    padding-bottom: 18px;

    border-bottom: 1px solid #eef1f5;
}

.admin-page-section-header h2 {
    margin: 0 0 5px;

    color: #172033;

    font-size: 17px;
    font-weight: 700;
}

.admin-page-section-header p {
    margin: 0;

    color: #7a8494;

    font-size: 13px;
    line-height: 1.5;
}

.admin-empty-state {
    padding: 30px;

    color: #6c757d;

    background: #f8f9fa;

    border: 1px dashed #ced4da;

    border-radius: 6px;

    text-align: center;
}


.admin-empty-state p {
    margin-bottom: 0;
}


.exam-actions {
    display: flex;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 20px;
}


.exam-publish-button {
    background: #198754;

    border: 0;

    cursor: pointer;
}


.exam-publish-button:hover {
    background: #157347;
}


.exam-close-button {
    background: #dc3545;

    border: 0;

    cursor: pointer;
}


.exam-close-button:hover {
    background: #bb2d3b;
}

.exam-header-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================================================
ADMIN SECONDARY BUTTON
========================================================= */

.admin-button-secondary {
    display: inline-block;

    padding: 10px 16px;

    color: #495057;

    background: #ffffff;

    border: 1px solid #ced4da;

    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.admin-page-header .admin-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;
    padding: 0 12px;

    box-sizing: border-box;

    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.admin-page-header .admin-button-secondary:hover {
    color: #1e293b;
    background: #f8fafc;
    border-color: #94a3b8;
    text-decoration: none;
}

.admin-button-secondary:hover {
    color: #212529;

    background: #f8f9fa;

    border-color: #adb5bd;

    text-decoration: none;
}

@media (max-width: 700px) {

    .exam-details-grid {
        grid-template-columns: 1fr;
    }


    .admin-page-section-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .exam-header-actions {
        width: 100%;
    }


    .exam-header-actions .admin-button {
        flex: 1;

        text-align: center;
    }


    .exam-actions {
        justify-content: flex-start;

        flex-direction: column;
    }

}

/* =========================================================
   ADMIN FORMS
   ========================================================= */

.admin-form-container {
    max-width: 850px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;

    padding: 30px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}


.admin-form {
    width: 100%;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-bottom: 22px;
}

.admin-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #343a40;

    font-size: 14px;

    font-weight: 600;
}


.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    color: #212529;

    background: #ffffff;

    border: 1px solid #ced4da;

    border-radius: 6px;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.12);
}


.admin-form-group textarea {
    resize: vertical;

    min-height: 120px;
}


.admin-form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.admin-input-with-suffix {
    display: flex;

    align-items: stretch;
}


.admin-input-with-suffix input {
    border-radius: 6px 0 0 6px;
}


.admin-input-with-suffix span {
    display: flex;

    align-items: center;

    padding: 0 12px;

    color: #6c757d;

    background: #f8f9fa;

    border: 1px solid #ced4da;

    border-left: 0;

    border-radius: 0 6px 6px 0;

    font-size: 13px;
}


.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
    padding-top: 10px;

    border-top: 1px solid #edf0f2;
}

.admin-form-actions button {
    font-family: inherit;
}


@media (max-width: 700px) {

    .admin-form-container {
        padding: 20px;
    }


    .admin-form-row {
        grid-template-columns: 1fr;
    }


    .admin-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
	}

	.admin-form-actions a,
	.admin-form-actions button {
	    width: 100%;
	}


    .admin-form-actions .admin-button {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }

}
/* =========================================================
   ADMIN FORM ERRORS
   ========================================================= */

.admin-error-box {
    margin-bottom: 24px;

    padding: 14px 16px;

    color: #842029;

    background: #f8d7da;

    border: 1px solid #f1aeb5;

    border-radius: 6px;

    font-size: 14px;

    line-height: 1.6;
}

.admin-success-box {
    margin-bottom: 24px;

    padding: 14px 16px;

    color: #0f5132;

    background: #d1e7dd;

    border: 1px solid #a3cfbb;

    border-radius: 6px;

    font-size: 14px;

    line-height: 1.6;
}

/* =========================================================
   EXAM BLUEPRINT
   ========================================================= */

.blueprint-container {
    max-width: 1000px;

    margin: 0 auto;
}


.blueprint-category {
    margin-bottom: 20px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}


.blueprint-category-header {
    padding: 20px 24px;

    border-bottom: 1px solid #edf0f2;
}


.blueprint-category-header h2 {
    margin: 0 0 5px;

    color: #212529;

    font-size: 18px;
}


.blueprint-category-header p {
    margin: 0;

    color: #6c757d;

    font-size: 13px;
}


.blueprint-fields {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    padding: 22px 24px 8px;
}


.blueprint-fields .admin-form-group {
    margin-bottom: 14px;
}


.blueprint-fields input {
    text-align: center;
}


.blueprint-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #e3e6ea;
}


.blueprint-save-button {
    border: 0;

    cursor: pointer;
}


@media (max-width: 800px) {

    .blueprint-fields {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .blueprint-fields {
        grid-template-columns: 1fr;

        padding: 20px;
    }


    .blueprint-form-actions {
        flex-direction: column-reverse;
    }


    .blueprint-form-actions .admin-button {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }

}

/* =========================================================
   QUESTION MANAGEMENT FILTERS
   ========================================================= */

.admin-filter-container {
    margin-bottom: 24px;
    padding: 20px 22px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 3px 10px rgba(15, 23, 42, 0.035);
}


/* Search */

.admin-question-search {
    margin-bottom: 16px;
}

.admin-question-search label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 12px;
    font-weight: 600;
}

.admin-question-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;

    gap: 10px;
    align-items: center;
}

.admin-search-input-wrapper {
    width: 100%;
    min-width: 0;
}

.admin-question-search-row input {
    width: 100%;
    height: 40px;

    padding: 0 13px;

    border: 1px solid #d7dde5;
    border-radius: 7px;

    background: #ffffff;
    color: #172033;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.admin-question-search-row input::placeholder {
    color: #9aa3b1;
}

.admin-question-search-row input:hover {
    border-color: #b9c2cf;
}

.admin-question-search-row input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   QUESTION BANK TABLE
   ========================================================= */

.admin-question-bank-table {
    width: 100%;
    table-layout: fixed;
}

.admin-question-bank-table th:nth-child(1) {
    width: 9%;
}

.admin-question-bank-table th:nth-child(2) {
    width: 11%;
}

.admin-question-bank-table th:nth-child(3) {
    width: 27%;
}

.admin-question-bank-table th:nth-child(4) {
    width: 12%;
}

.admin-question-bank-table th:nth-child(5) {
    width: 8%;
}

.admin-question-bank-table th:nth-child(6) {
    width: 4%;
}

.admin-question-bank-table th:nth-child(7) {
    width: 8%;
}

.admin-question-bank-table th:nth-child(8) {
    width: 21%;
}

.admin-question-bank-table td {
    overflow-wrap: break-word;
}

.admin-question-bank-table .admin-question-bank-actions {
    white-space: nowrap;
}

.admin-question-bank-table .admin-question-bank-actions .admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.admin-question-bank-table .admin-question-bank-actions .admin-action-button {
    flex-shrink: 0;
    min-height: 30px;
    padding: 0 7px;
    font-size: 12px;
}

.admin-question-bank-table td:nth-child(1),
.admin-question-bank-table td:nth-child(2) {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.admin-question-bank-table td:nth-child(1) strong {
    font-weight: 600;
}

.admin-question-bank-table .admin-role-badge,
.admin-question-bank-table .admin-status {
    min-width: 0;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
}

.admin-question-bank-table td:nth-child(1),
.admin-question-bank-table td:nth-child(2) {
    font-size: 12px;
    line-height: 1.25;
}

.admin-question-bank-table th:nth-child(6),
.admin-question-bank-table td:nth-child(6) {
    text-align: center;
    white-space: nowrap;
}

/* Question Difficulty */

.admin-question-difficulty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 62px;
    box-sizing: border-box;
    min-height: 28px;
    padding: 0 9px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}

.admin-question-difficulty-badge.easy {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.admin-question-difficulty-badge.medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.admin-question-difficulty-badge.hard {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Question Type */

.admin-question-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0 9px;

    border: 1px solid #dbe3ee;
    border-radius: 6px;

    background: #f8fafc;
    color: #475569;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}

/* Filter row */

.admin-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(130px, 1fr));

    gap: 12px;

    align-items: end;

    padding-top: 16px;

    border-top: 1px solid #eef2f6;
}

.admin-filter-group {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 0;
}

.admin-filter-group label {
    color: #475569;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.02em;
}

.admin-filter-group select,
.admin-results-filter-group select {
    width: 100%;
    height: 38px;

    padding: 0 32px 0 11px;

    border: 1px solid #d7dde5;
    border-radius: 7px;

    background-color: #ffffff;
    color: #263244;

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.admin-filter-group select:hover,
.admin-results-filter-group select:hover {
    border-color: #b9c2cf;
}

.admin-filter-group select:focus,
.admin-results-filter-group select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.admin-filter-group select:disabled {
    background: #f8fafc;
    color: #94a3b8;

    cursor: not-allowed;
}


/* Filter footer */

.admin-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid #eef2f6;
}

.admin-filter-summary {
    color: #64748b;

    font-size: 12px;
    font-weight: 600;
}

.admin-filter-reset {
    color: #64748b;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.admin-filter-reset:hover {
    color: #2563eb;
}


/* Responsive */

@media (max-width: 1100px) {

    .admin-filter-grid {
        grid-template-columns:
            repeat(3, minmax(150px, 1fr));
    }

}


@media (max-width: 760px) {

    .admin-filter-container {
        padding: 18px;
    }

    .admin-question-search-row {
        grid-template-columns: 1fr;
    }

    .admin-question-search-row .admin-primary-button {
        width: 100%;
    }

    .admin-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 520px) {

    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =========================================================
MCQ ANSWER OPTIONS
========================================================= */

.admin-mcq-option {
display: flex;
align-items: flex-start;
gap: 16px;

margin-bottom: 14px;
padding: 16px 18px;

background: #ffffff;

border: 1px solid #e3e6ea;
border-radius: 8px;

transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;

}

.admin-mcq-option:hover {
border-color: #ced4da;

box-shadow:
    0 2px 6px
    rgba(0, 0, 0, 0.04);

}

/* Option number */

.admin-mcq-option-number {
display: flex;

align-items: center;
justify-content: center;

flex: 0 0 34px;

width: 34px;
height: 34px;

margin-top: 24px;

color: #495057;

background: #f1f3f5;

border: 1px solid #dee2e6;

border-radius: 50%;

font-size: 13px;
font-weight: 600;

}

/* Option content */

.admin-mcq-option-content {
flex: 1;

min-width: 0;

}

/* Option label */

.admin-mcq-option-content > label:first-child {
display: block;

margin-bottom: 7px;

color: #343a40;

font-size: 13px;
font-weight: 600;

}

/* Answer input */

.admin-mcq-option-content input[type="text"] {
display: block;

width: 100%;
box-sizing: border-box;

padding: 10px 12px;

color: #212529;
background: #ffffff;

border: 1px solid #ced4da;
border-radius: 6px;

font-family: inherit;
font-size: 14px;

transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}

.admin-mcq-option-content input[type="text"]:focus {
outline: none;

border-color: #86b7fe;

box-shadow:
    0 0 0 3px
    rgba(13, 110, 253, 0.12);

}

/* Correct answer */

.admin-mcq-correct {
display: inline-flex;

align-items: center;
gap: 8px;

margin-top: 10px;

padding: 5px 9px;

color: #495057;

background: #f8f9fa;

border: 1px solid #e9ecef;

border-radius: 5px;

font-size: 12px;
font-weight: 600;

cursor: pointer;

transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;

}

.admin-mcq-correct:hover {
color: #146c43;

background: #f1faf5;

border-color: #a3cfbb;

}

.admin-mcq-correct input {
margin: 0;

cursor: pointer;

}

.admin-mcq-correct input:checked + span {
color: #146c43;
}

/* Add option button spacing */

#options-container + .admin-secondary-button {
margin-top: 4px;
}

/* Mobile */

@media (max-width: 700px) {

.admin-mcq-option {
    gap: 12px;

    padding: 14px;
}

.admin-mcq-option-number {
    flex-basis: 30px;

    width: 30px;
    height: 30px;

    margin-top: 24px;
}

}

/* MCQ option footer */

.admin-mcq-option-footer { display: flex; align-items: center; width: 100%; margin-top: 12px; }


/* Keep Correct Answer aligned */

.admin-mcq-option-footer .admin-mcq-correct {
    margin-top: 0;
}


/* Remove button */

.admin-mcq-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 0 auto;
    padding: 6px 10px;

    color: #b02a37;
    background: #ffffff;

    border: 1px solid #f1aeb5;
    border-radius: 5px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.admin-mcq-remove:hover {
    color: #842029;
    background: #f8d7da;
    border-color: #dc3545;
}

/* =========================================================
   MATCHING QUESTION OPTIONS
   ========================================================= */

.admin-form-help {
    margin: 0 0 20px;

    color: #6c757d;

    font-size: 14px;

    line-height: 1.6;
}


.admin-matching-row {
    display: flex;

    align-items: flex-end;

    gap: 14px;

    margin-bottom: 14px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;

    box-shadow:
        0 2px 6px
        rgba(0, 0, 0, 0.03);
}


.admin-matching-number {
    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 32px;

    width: 32px;

    height: 32px;

    margin-bottom: 1px;

    color: #495057;

    background: #f8f9fa;

    border: 1px solid #dee2e6;

    border-radius: 50%;

    font-size: 13px;

    font-weight: 600;
}


.admin-matching-column {
    flex: 1;

    min-width: 0;

}


.admin-matching-column label {
    display: block;

    margin-bottom: 7px;

    color: #343a40;

    font-size: 13px;

    font-weight: 600;
}


.admin-matching-column input {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    color: #212529;

    background: #ffffff;

    border: 1px solid #ced4da;

    border-radius: 6px;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-matching-column input:focus {
    outline: none;

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.12);
}


.admin-matching-arrow {
    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 24px;

    height: 40px;

    color: #6c757d;

    font-size: 18px;

    font-weight: 600;
}


.admin-matching-remove {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    margin-bottom: 0;

    padding: 7px 11px;

    color: #b02a37;

    background: #ffffff;

    border: 1px solid #f1aeb5;

    border-radius: 5px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.admin-matching-remove:hover {
    color: #842029;

    background: #f8d7da;

    border-color: #dc3545;
}


/* Mobile */

@media (max-width: 700px) {

    .admin-matching-row {
        display: grid;

        grid-template-columns: 32px 1fr;

        gap: 12px;

        align-items: end;
    }


    .admin-matching-number {
        grid-row: span 2;

        margin-bottom: 0;
    }


    .admin-matching-column {
        width: 100%;
    }


    .admin-matching-arrow {
        display: none;
    }


    .admin-matching-remove {
        grid-column: 2;

        justify-self: end;
    }

}

/* =========================================================
   SHORT ANSWER
   ========================================================= */

.admin-short-answer {
    width: 100%;
}

.admin-short-answer .admin-page-section-header {
    margin-bottom: 22px;
}

.admin-short-answer .admin-form-group {
    margin-bottom: 0;
}

/* =========================================================
   LONG ANSWER
   ========================================================= */

.admin-long-answer {
    width: 100%;
}

.admin-long-answer .admin-page-section-header {
    margin-bottom: 22px;
}

.admin-long-answer .admin-form-group {
    margin-bottom: 0;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    min-height: calc(100vh - 120px);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    box-sizing: border-box;
}


.login-card {
    width: 100%;
    max-width: 420px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05);

    box-sizing: border-box;
}


.login-header {
    margin-bottom: 28px;

    text-align: center;
}


.login-header h1 {
    margin: 0 0 8px;

    color: #212529;

    font-size: 28px;
}


.login-header p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;
}


.login-form-group {
    margin-bottom: 20px;
}


.login-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #343a40;

    font-size: 14px;

    font-weight: 600;
}


.login-form-group input {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    color: #212529;

    background: #ffffff;

    border: 1px solid #ced4da;

    border-radius: 6px;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.login-form-group input:focus {
    outline: none;

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.12);
}


.login-button {
    width: 100%;

    padding: 11px 16px;

    color: #ffffff;

    background: #0d6efd;

    border: 0;

    border-radius: 6px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease;
}


.login-button:hover {
    background: #0b5ed7;
}


@media (max-width: 700px) {

    .login-page {
        padding: 25px 15px;
    }


    .login-card {
        padding: 24px;
    }


    .login-header h1 {
        font-size: 25px;
    }

}

/* =========================================================
   HOME PAGE
   ========================================================= */

.home-page {
    min-height: calc(100vh - 120px);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    box-sizing: border-box;
}


.home-card {
    width: 100%;
    max-width: 700px;

    padding: 40px;

    background: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 8px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05);

    box-sizing: border-box;
}


.home-header {
    margin-bottom: 30px;

    text-align: center;
}


.home-header h1 {
    margin: 0 0 12px;

    color: #212529;

    font-size: 30px;
}


.home-lead {
    max-width: 580px;

    margin: 0 auto;

    color: #6c757d;

    font-size: 16px;

    line-height: 1.6;
}


.home-section {
    padding: 24px 0;

    border-top: 1px solid #edf0f2;

    border-bottom: 1px solid #edf0f2;

    text-align: center;
}


.home-section h2 {
    margin: 0 0 8px;

    color: #212529;

    font-size: 20px;
}


.home-section p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;

    line-height: 1.6;
}


.home-actions {
    display: flex;

    justify-content: center;

    margin-top: 28px;
}


.home-login-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 24px;

    color: #ffffff;

    background: #0d6efd;

    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background-color 0.2s ease;
}


.home-login-button:hover {
    color: #ffffff;

    background: #0b5ed7;

    text-decoration: none;
}


@media (max-width: 700px) {

    .home-page {
        padding: 25px 15px;
    }


    .home-card {
        padding: 28px 22px;
    }


    .home-header h1 {
        font-size: 25px;
    }


    .home-lead {
        font-size: 14px;
    }

}

/* =========================================================
ADMIN EXAM REVIEW
========================================================= */

.admin-review {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-review-header {
    margin-bottom: 30px;
}

.admin-review-header h1 {
    margin: 0 0 8px;
    color: #212529;
    font-size: 30px;
}

.admin-review-header p {
    margin: 0;
    color: #6c757d;
    font-size: 15px;
}

.admin-review-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 15px;
    padding: 8px 12px;

    color: #212529;
    background: #f8f9fa;

    border: 1px solid #dee2e6;
    border-radius: 6px;

    font-size: 14px;
}

.admin-review-question {
    margin-bottom: 24px;

    background: #ffffff;

    border: 1px solid #e3e6ea;
    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);

    overflow: hidden;
}

.admin-review-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 16px 20px;

    background: #f8f9fa;

    border-bottom: 1px solid #e3e6ea;
}

.admin-review-question-number {
    margin: 0;

    color: #212529;
    font-size: 16px;
    font-weight: 600;
}

.admin-review-question-body {
    padding: 20px;
}

.admin-review-question-text {
    margin: 0 0 20px;

    color: #212529;

    font-size: 16px;
    line-height: 1.6;
}

.admin-review-section-title {
    margin: 0 0 12px;

    color: #495057;

    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Answer option */

.admin-review-option {
    margin-bottom: 10px;
    padding: 12px 14px;

    color: #343a40;
    background: #ffffff;

    border: 1px solid #dee2e6;
    border-radius: 6px;

    font-size: 14px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.admin-review-option:last-child {
    margin-bottom: 0;
}

/* Correct answer */

.admin-review-option.correct {
    color: #146c43;
    background: #d1e7dd;
    border-color: #a3cfbb;
}

/* Student selected answer */

.admin-review-option.selected {
    border-color: #86b7fe;
    background: #e7f1ff;
}

/* Student selected AND correct */

.admin-review-option.selected.correct {
    color: #146c43;
    background: #d1e7dd;
    border-color: #75b798;
}

/* Student selected but incorrect */

.admin-review-option.selected.incorrect {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

/* Labels */

.admin-review-option-label {
    display: inline-block;

    margin-left: 8px;

    font-size: 12px;
    font-weight: 600;
}

.admin-review-option-label.selected-label {
    color: #0d6efd;
}

.admin-review-option-label.correct-label {
    color: #146c43;
}

.admin-review-option-label.incorrect-label {
    color: #b02a37;
}

/* Explanation */

.admin-review-explanation {
    margin-top: 22px;
}

.admin-review-explanation-content {
    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-left: 3px solid #2563eb;
    border-radius: 7px;

    color: #475569;

    font-size: 13px;
    line-height: 1.65;
}

/* Marks */

.admin-review-marks {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #edf0f2;

    color: #495057;

    font-size: 14px;
}

.admin-review-marks strong {
    color: #212529;
}

.admin-review-result {
    display: inline-flex;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}

.admin-review-result.correct {
    color: #146c43;
    background: #d1e7dd;
}

.admin-review-result.incorrect {
    color: #842029;
    background: #f8d7da;
}

.admin-review-result.unanswered {
    color: #495057;
    background: #e9ecef;
}

.admin-review-matching {
    margin-top: 4px;

    border: 1px solid #dee2e6;
    border-radius: 8px;

    overflow: hidden;

    background: #ffffff;
}

.admin-review-matching-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr)
        auto;

    align-items: center;

    min-height: 62px;

    padding: 12px 14px;

    border-bottom: 1px solid #edf0f2;

    background: #ffffff;

    transition:
        background-color 0.2s ease;
}

.admin-review-matching-row:last-child {
    border-bottom: 0;
}


/* Left-hand item */

.admin-review-matching-left {
    min-width: 0;

    color: #212529;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}


/* Arrow */

.admin-review-matching-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #adb5bd;

    font-size: 18px;
}


/* Student's answer */

.admin-review-matching-answer {
    min-width: 0;

    padding: 8px 12px;

    border: 1px solid #e3e6ea;
    border-radius: 6px;

    font-size: 14px;
    line-height: 1.5;

    word-break: break-word;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* Student answer - correct */

.admin-review-matching-answer.correct {
    color: #146c43;
    background: #d1e7dd;
    border-color: #a3cfbb;
}


/* Student answer - incorrect */

.admin-review-matching-answer.incorrect {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}


/* Student answer - unanswered */

.admin-review-matching-answer.unanswered {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Unanswered */

.admin-review-matching-unanswered {
    color: #6c757d;

    font-style: italic;
}


/* Result */

.admin-review-matching-result {
    margin-left: 14px;

    white-space: nowrap;
}


/* Correct answer shown after an incorrect match */

.admin-review-matching-correct {
    grid-column: 3 / 5;

    margin-top: 8px;
    padding: 7px 10px;

    color: #495057;
    background: #fff8e1;

    border-left: 3px solid #ffc107;
    border-radius: 4px;

    font-size: 13px;
    line-height: 1.5;
}

.admin-review-matching-correct span {
    color: #6c757d;

    margin-right: 5px;
}

.admin-review-matching-correct strong {
    color: #212529;
}


/* Correct row */

.admin-review-matching-row:has(
    .admin-review-matching-result .correct
) {
    background: #fbfefc;
}


/* Incorrect row */

.admin-review-matching-row:has(
    .admin-review-matching-result .incorrect
) {
    background: #fffafb;
}


/* Unanswered row */

.admin-review-matching-row:has(
    .admin-review-matching-result .unanswered
) {
    background: #f8f9fa;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .admin-review-matching-row {
        grid-template-columns: 1fr auto;

        gap: 8px 12px;

        padding: 14px;
    }

    .admin-review-matching-left {
        grid-column: 1 / 2;
    }

    .admin-review-matching-arrow {
        grid-column: 2 / 3;
        grid-row: 1;

        justify-content: flex-end;
    }

    .admin-review-matching-answer {
        grid-column: 1 / 3;
    }

    .admin-review-matching-result {
        grid-column: 1 / 3;

        margin-left: 0;
    }

    .admin-review-matching-correct {
        grid-column: 1 / 3;

        margin-top: 2px;
    }

}

.admin-review-back {
    margin-top: 25px;
}

@media (max-width: 700px) {

    .admin-review-header h1 {
        font-size: 25px;
    }

    .admin-review-question-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-review-question-body {
        padding: 16px;
    }

    .admin-review-marks {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================================
   ADMIN EXAM RESULTS
   ========================================================= */

.admin-results-header {
    margin-bottom: 24px;
}

.admin-results-header h1 {
    margin: 0 0 8px;

    color: #212529;

    font-size: 30px;
}

.admin-results-header p {
    margin: 0;

    color: #6c757d;

    font-size: 15px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.admin-results-filters {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        auto;

    align-items: end;

    gap: 14px;

    margin-bottom: 18px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e3e6ea;
    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}


.admin-results-filter-group {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.admin-results-filter-group label {
    color: #495057;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
}


.admin-results-filter-group input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 40px;

    padding: 0 12px;

    color: #263244;
    background: #ffffff;

    border: 1px solid #d7dde5;
    border-radius: 7px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    box-sizing: border-box;
    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.admin-results-filter-group input:focus,
.admin-results-filter-group select:focus {
    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px rgba(
            13,
            110,
            253,
            0.1
        );
}


.admin-results-filter-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;
}


/* =========================================================
   RESULT COUNT
   ========================================================= */

.admin-results-summary {
    margin-bottom: 12px;

    color: #6c757d;

    font-size: 13px;
}

.admin-results-summary span {
    font-weight: 500;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .admin-results-filters {
        grid-template-columns:
            1fr
            1fr;
    }

    .admin-results-filter-actions {
        grid-column: 1 / -1;
    }

}


@media (max-width: 600px) {

    .admin-results-header h1 {
        font-size: 25px;
    }

    .admin-results-filters {
        grid-template-columns: 1fr;

        padding: 16px;
    }

    .admin-results-filter-actions {
        grid-column: auto;

        width: 100%;
    }

    .admin-results-filter-actions button,
    .admin-results-filter-actions a {
        flex: 1;

        text-align: center;
    }

}


.admin-results-filters {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
    ;
    gap: 18px;

    margin: 25px 0;
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e3e6ea;
    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);

    align-items: end;
}


.admin-results-filter-group {
    min-width: 0;
}


.admin-results-filter-group label {
    display: block;

    margin-bottom: 7px;

    color: #495057;

    font-size: 13px;
    font-weight: 600;
}


.admin-results-filter-group input,
.admin-results-filter-group select {
    display: block;

    width: 100%;
    min-width: 0;
    height: 40px;

    padding: 8px 11px;

    color: #212529;
    background: #ffffff;

    border: 1px solid #ced4da;
    border-radius: 6px;

    font-size: 13px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-results-filter-group input:focus,
.admin-results-filter-group select:focus {
    outline: none;

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.1);
}


.admin-results-filter-actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 2px;
}


/*
 * Tablet
 */
@media (max-width: 850px) {

    .admin-results-filters {
        grid-template-columns:
            1fr
            1fr;
    }


    .admin-results-filter-actions {
        grid-column: 1 / -1;
    }

}


/*
 * Mobile
 */
@media (max-width: 600px) {

    .admin-results-filters {
        grid-template-columns: 1fr;

        padding: 16px;
    }


    .admin-results-filter-actions {
        grid-column: auto;

        justify-content: flex-start;

        flex-wrap: wrap;
    }

}

.admin-review-back-top {
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

/* =========================================================
   ADMIN REVIEW TEXT ANSWERS
========================================================= */

.admin-review-text-answer {
    padding: 16px 18px;

    color: #343a40;
    background: #f8f9fa;

    border: 1px solid #dee2e6;
    border-radius: 8px;

    font-size: 14px;
    line-height: 1.7;

    white-space: normal;
}

.admin-review-text-answer-long {
    min-height: 140px;
}

.admin-review-no-answer {
    color: #6c757d;
    font-style: italic;
}

.admin-review-text-answer-status {
    margin-top: 10px;

    color: #6c757d;

    font-size: 12px;
    font-style: italic;
}

/* =========================================================
   ADMIN REVIEW - MANUAL ASSESSMENT
   ========================================================= */

.admin-review-text-answer {
    margin-bottom: 28px;
    padding: 16px 18px;

    color: #343a40;
    background: #f8f9fa;

    border: 1px solid #e3e6ea;
    border-radius: 8px;

    font-size: 14px;
    line-height: 1.7;
}

.admin-review-text-answer-long {
    min-height: 120px;
}


/* Manual assessment panel */

.admin-review-manual-assessment {
    margin-top: 28px;
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #dfe4ea;
    border-radius: 10px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.03);
}


/* Panel heading */

.admin-review-manual-assessment
.admin-review-section-title {
    margin-bottom: 16px;

    color: #212529;
}


/* Assessment result */

.admin-review-assessment-result {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e9ecef;
}

.admin-review-assessment-label {
    color: #495057;

    font-size: 14px;
    font-weight: 600;
}


/* Correct / incorrect buttons */

.admin-review-assessment-buttons {
    display: flex;
    gap: 10px;
}

.admin-review-assessment-button {
    position: relative;

    cursor: pointer;
}

.admin-review-assessment-button input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.admin-review-assessment-button span {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    border: 1px solid #ced4da;
    border-radius: 7px;

    background: #ffffff;
    color: #495057;

    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Correct */

.admin-review-assessment-button.correct
input:checked + span {
    color: #146c43;
    background: #d1e7dd;
    border-color: #75b798;

    box-shadow:
        0 0 0 2px rgba(20, 108, 67, 0.08);
}


/* Incorrect */

.admin-review-assessment-button.incorrect
input:checked + span {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;

    box-shadow:
        0 0 0 2px rgba(132, 32, 41, 0.08);
}


/* Feedback */

.admin-review-assessment-field {
    margin-top: 20px;
}

.admin-review-assessment-field label,
.admin-review-assessment-marks label {
    display: block;

    margin-bottom: 7px;

    color: #495057;

    font-size: 13px;
    font-weight: 600;
}

.admin-review-assessment-field textarea {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    color: #343a40;
    background: #ffffff;

    border: 1px solid #ced4da;
    border-radius: 7px;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    resize: vertical;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-review-assessment-field textarea:focus {
    outline: none;

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.1);
}


/* Marks + save */

.admin-review-assessment-marks {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #e9ecef;
}

.admin-review-assessment-marks > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-review-assessment-marks > div label {
    margin: 0;
}

.admin-review-assessment-marks input {
    width: 90px;
    box-sizing: border-box;

    padding: 9px 10px;

    color: #343a40;
    background: #ffffff;

    border: 1px solid #ced4da;
    border-radius: 7px;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-review-assessment-marks input:focus {
    outline: none;

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.1);
}

.admin-review-assessment-marks > div > span {
    color: #6c757d;

    font-size: 14px;
}


/* Mobile */

@media (max-width: 700px) {

    .admin-review-manual-assessment {
        padding: 16px;
    }

    .admin-review-assessment-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-review-assessment-buttons {
        width: 100%;
    }

    .admin-review-assessment-button {
        flex: 1;
    }

    .admin-review-assessment-button span {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-review-assessment-marks {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-review-assessment-marks > div {
        width: 100%;
    }

    .admin-review-assessment-marks input {
        width: 100%;
    }
}

.login-card .admin-alert-danger {
    margin-bottom: 20px;
    padding: 12px 14px;

    color: #842029;
    background: #f8d7da;

    border: 1px solid #f1aeb5;
    border-radius: 7px;

    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
Student Dashboard
========================================================= */

.student-dashboard {
width: 100%;
}

.student-dashboard-header {
margin-bottom: 32px;
}

.student-dashboard-header h1 {
margin: 0 0 8px;
}

.student-dashboard-header p {
margin: 0;
color: #6b7280;
}

.student-dashboard-section {
margin-top: 24px;
}

.student-dashboard-section-header {
margin-bottom: 20px;
}

.student-dashboard-section-header h2 {
margin: 0 0 6px;
}

.student-dashboard-section-header p {
margin: 0;
color: #6b7280;
}

.student-dashboard-empty {
    padding: 24px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    color: var(
        --text-muted,
        #667085
    );
}

.student-dashboard-empty p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
Exam Grid
========================================================= */

.student-exam-grid {
display: grid;
grid-template-columns: repeat(
auto-fill,
minmax(280px, 1fr)
);
gap: 20px;
}

/* =========================================================
Exam Card
========================================================= */

.student-exam-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 10px;
overflow: hidden;
transition:
box-shadow 0.2s ease,
transform 0.2s ease,
border-color 0.2s ease;
}

.student-exam-card:hover {
border-color: #d1d5db;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
transform: translateY(-2px);
}

.student-exam-card-content {
padding: 24px;
}

/* =========================================================
Exam Card Header
========================================================= */

.student-exam-card-header {
margin-bottom: 8px;
}

.student-exam-card-header h3 {
margin: 0;
font-size: 19px;
line-height: 1.4;
color: #111827;
}

.student-exam-card-subject {
margin-bottom: 22px;
color: #6b7280;
font-size: 14px;
}

/* =========================================================
   STUDENT DASHBOARD - CERTIFICATES
   ========================================================= */

.student-dashboard-section-certificates
.student-exam-card {
    height: 100%;
}

.student-dashboard-section-certificates
.student-exam-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.student-exam-card-label {
    display: inline-block;

    color: var(
        --text-muted,
        #667085
    );

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-exam-card-description {
    margin: 8px 0 20px;

    color: var(
        --text-muted,
        #667085
    );

    font-size: 14px;
    line-height: 1.5;
}

.student-dashboard-section-certificates
.student-exam-card-action {
    margin-top: auto;
    padding-top: 20px;
}

.student-certificate-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.student-certificate-status.valid {
    color: #166534;
    background: #dcfce7;
}

.student-certificate-status.expired {
    color: #92400e;
    background: #fef3c7;
}

.student-certificate-status.revoked,
.student-certificate-status.superseded {
    color: #991b1b;
    background: #fee2e2;
}

.student-certificate-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;
    padding: 10px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 6px;

    background: #f9fafb;

    color: #98a2b3;

    font-size: 14px;
    font-weight: 600;

    box-sizing: border-box;
}
/* =========================================================
   STUDENT EXAM - SUBMIT MODAL
   ========================================================= */

.student-exam-submit-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.student-exam-submit-modal.open {
    display: flex;
}

.student-exam-submit-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.student-exam-submit-modal-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 520px;

    padding: 28px;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18),
        0 8px 20px rgba(15, 23, 42, 0.08);

    text-align: center;
}

.student-exam-submit-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 16px;

    border-radius: 50%;

    background: #fff7ed;
    color: #c2410c;

    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.student-exam-submit-modal-title {
    margin: 0;

    color: #1e293b;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.student-exam-submit-modal-message {
    max-width: 420px;

    margin: 10px auto 22px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.6;
}

.student-exam-submit-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 24px;
}

.student-exam-submit-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 88px;

    padding: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;
}

.student-exam-submit-summary-item strong {
    color: #1e293b;

    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.student-exam-submit-summary-item span {
    margin-top: 6px;

    color: #64748b;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.student-exam-submit-summary-unanswered {
    background: #fff7ed;
    border-color: #fed7aa;
}

.student-exam-submit-summary-unanswered strong {
    color: #c2410c;
}

.student-exam-submit-summary-unanswered span {
    color: #9a3412;
}

.student-exam-submit-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
}

.student-exam-submit-modal-actions .student-exam-button {
    min-height: 40px;
}

.student-exam-submit-modal-actions
.student-exam-button-submit {
    min-width: 150px;
}


@media (max-width: 640px) {

    .student-exam-submit-modal {
        padding: 16px;
    }

    .student-exam-submit-modal-dialog {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .student-exam-submit-summary {
        grid-template-columns: 1fr;
    }

    .student-exam-submit-modal-actions {
        flex-direction: column;
    }

    .student-exam-submit-modal-actions
    .student-exam-button {
        width: 100%;
    }
}

/* =========================================================
Exam Details
========================================================= */

.student-exam-card-details {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
padding: 16px 0;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
}

.student-exam-card-details div {
display: flex;
flex-direction: column;
gap: 5px;
}

.student-exam-card-details span {
font-size: 12px;
color: #6b7280;
}

.student-exam-card-details strong {
font-size: 14px;
color: #111827;
}

/* =========================================================
Exam Card Action
========================================================= */

.student-exam-card-action {
margin-top: 20px;
}

.student-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 42px;
padding: 10px 16px;
border-radius: 6px;
text-decoration: none;
font-size: 14px;
font-weight: 600;
box-sizing: border-box;
transition:
background-color 0.2s ease,
border-color 0.2s ease,
color 0.2s ease;
}

.student-button-primary {
background: #2563eb;
border: 1px solid #2563eb;
color: #ffffff;
}

.student-button-primary:hover {
background: #1d4ed8;
border-color: #1d4ed8;
color: #ffffff;
}

.student-button-secondary {
background: #ffffff;
border: 1px solid #d1d5db;
color: #374151;
}

.student-button-secondary:hover {
background: #f9fafb;
border-color: #9ca3af;
}

/* =========================================================
Empty State
========================================================= */

.student-empty-state {
padding: 40px 24px;
text-align: center;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 10px;
}

.student-empty-state strong {
display: block;
margin-bottom: 8px;
color: #111827;
}

.student-empty-state p {
margin: 0;
color: #6b7280;
}

/* =========================================================
Mobile
========================================================= */

@media (max-width: 640px) {

.student-exam-grid {
    grid-template-columns: 1fr;
}


.student-exam-card-content {
    padding: 20px;
}


.student-dashboard-header {
    margin-bottom: 24px;
}

}

/* =========================================================
   STUDENT EXAM - QUESTION NAVIGATOR
   ========================================================= */

.student-exam-question-navigator {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.student-exam-question-navigator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.student-exam-question-navigator-title {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.student-exam-question-navigator-help {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.student-exam-question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 8px;
}

.student-exam-question-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 6px;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    background: #ffffff;
    color: #475569;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.student-exam-question-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.student-exam-question-button.answered {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.student-exam-question-button.answered:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.student-exam-question-button.unanswered {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
}

.student-exam-question-button.current {
    background: #6d5dfc;
    border-color: #6d5dfc;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.12);
}

.student-exam-question-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 14px;
    padding-top: 12px;

    border-top: 1px solid #f1f5f9;
}

.student-exam-question-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #64748b;

    font-size: 11px;
    font-weight: 500;
}

.student-exam-question-legend-marker {
    width: 10px;
    height: 10px;

    border: 1px solid #cbd5e1;
    border-radius: 3px;

    background: #ffffff;
}

.student-exam-question-legend-marker.current {
    background: #6d5dfc;
    border-color: #6d5dfc;
}

.student-exam-question-legend-marker.answered {
    background: #dcfce7;
    border-color: #86efac;
}

.student-exam-question-legend-marker.unanswered {
    background: #ffffff;
    border-color: #cbd5e1;
}


@media (max-width: 768px) {

    .student-exam-question-navigator {
        padding: 16px;
    }

    .student-exam-question-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(36px, 1fr));
        gap: 7px;
    }

    .student-exam-question-button {
        min-width: 36px;
        height: 36px;
    }
}

/* =========================================================
Student Result
========================================================= */

.student-result-page {
width: 100%;
max-width: 900px;
margin: 0 auto;
}

.student-result-header {
margin-bottom: 28px;
}

.student-result-header h1 {
margin: 0 0 8px;
}

.student-result-header p {
margin: 0;
color: #6b7280;
}

/* =========================================================
Result Card
========================================================= */

.student-result-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 10px;
overflow: hidden;
}

.student-result-card-header {
padding: 24px;
border-bottom: 1px solid #e5e7eb;
}

.student-result-card-header > div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}

.student-result-card-header h2 {
margin: 0;
color: #111827;
}

/* =========================================================
Completed Status
========================================================= */

.student-result-completed {
display: inline-flex;
align-items: center;
padding: 5px 10px;
border-radius: 999px;
background: #f3f4f6;
color: #374151;
font-size: 12px;
font-weight: 600;
}

/* =========================================================
   Result Summary
   ========================================================= */

.student-result-page .student-result-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin: 24px;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}


/* =========================================================
   Result Summary Items
   ========================================================= */

.student-result-page .student-result-item {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    min-height: 74px;

    padding: 18px 20px;

    background: #ffffff;

    border-right: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
}


/* Remove right border from last column */

.student-result-page .student-result-item:nth-child(3n) {
    border-right: none;
}


/* Remove bottom border from second row */

.student-result-page .student-result-item:nth-child(n + 4) {
    border-bottom: none;
}


/* =========================================================
   Result Labels
   ========================================================= */

.student-result-page .student-result-item > span {
    margin-bottom: 7px;

    color: #667085;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: .06em;
}


/* =========================================================
   Result Values
   ========================================================= */

.student-result-page .student-result-item > strong {
    overflow-wrap: anywhere;

    color: #101828;

    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}


/* =========================================================
   Primary Result Row
   ========================================================= */

.student-result-page .student-result-item:nth-child(-n + 3) {
    min-height: 82px;

    background: #f9fafb;
}

.student-result-page .student-result-item:nth-child(-n + 3) > strong {
    font-size: 18px;
    font-weight: 700;
}


/* Score and percentage deserve slightly more prominence */

.student-result-page .student-result-item:nth-child(2) > strong,
.student-result-page .student-result-item:nth-child(3) > strong {
    font-size: 20px;
}


/* =========================================================
   Pass / Fail
   ========================================================= */

.student-result-page .student-result-item .student-result-pass,
.student-result-page .student-result-item .student-result-fail {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    padding: 4px 9px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.student-result-page .student-result-item .student-result-pass {
    background: #ecfdf3;
    color: #15803d;
}

.student-result-page .student-result-item .student-result-fail {
    background: #fef3f2;
    color: #b42318;
}

/* =========================================================
   Supporting Session Information
   ========================================================= */

.student-result-page .student-result-item:nth-child(n + 4) > strong {
    color: #344054;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 768px) {

    .student-result-page .student-result-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-result-page .student-result-item,
    .student-result-page .student-result-item:nth-child(3n),
    .student-result-page .student-result-item:nth-child(n + 4) {
        border-right: 1px solid #eaecf0;
        border-bottom: 1px solid #eaecf0;
    }

    .student-result-page .student-result-item:nth-child(2n) {
        border-right: none;
    }

    .student-result-page .student-result-item:nth-child(n + 5) {
        border-bottom: none;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {

    .student-result-page .student-result-summary {
        grid-template-columns: 1fr;
        margin: 18px;
    }

    .student-result-page .student-result-item,
    .student-result-page .student-result-item:nth-child(2n),
    .student-result-page .student-result-item:nth-child(3n),
    .student-result-page .student-result-item:nth-child(n + 4),
    .student-result-page .student-result-item:nth-child(n + 5) {
        min-height: auto;

        border-right: none;
        border-bottom: 1px solid #eaecf0;
    }

    .student-result-page .student-result-item:last-child {
        border-bottom: none;
    }
}

/* =========================================================
Result Message
========================================================= */
.student-result-message {
    margin: 4px 24px 0;
    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;

    color: #667085;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}


/* =========================================================
   STUDENT EXAM
   ========================================================= */

.student-exam-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.student-exam-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.student-exam-label {
    margin: 0 0 6px;
    color: var(--text-muted, #777);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.student-exam-title {
    margin: 0;
    font-size: 26px;
}

.student-exam-title span {
    color: var(--text-muted, #777);
    font-weight: 400;
}

.student-exam-progress {
    width: 240px;
}

.student-exam-progress-text {
    text-align: right;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--text-muted, #777);
}

.student-exam-progress-bar {
    height: 7px;
    background: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.student-exam-progress-fill {
    height: 100%;
    background: var(--primary-color, #2563eb);
    border-radius: 10px;
    transition: width .2s ease;
}

.student-exam-question-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}

.student-exam-question-number {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.student-exam-question {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    color: #1f2937;
}

.student-exam-question,
.student-exam-question-number,
.student-exam-option-text,
.student-exam-option-marker,
.student-exam-options {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.student-exam-text-input,
.student-exam-textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

.student-exam-answer-area {
    margin-top: 24px;
}

.student-exam-answer-label {
    display: block;
    margin-bottom: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.student-exam-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.student-exam-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.student-exam-option:hover {
    border-color: var(--primary-color, #2563eb);
    background: #f8fbff;
}

.student-exam-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.student-exam-option-marker {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
}

.student-exam-option input[type="checkbox"] + .student-exam-option-marker {
    border-radius: 5px;
}

.student-exam-option input:checked + .student-exam-option-marker {
    border-color: var(--primary-color, #2563eb);
    background: var(--primary-color, #2563eb);
    box-shadow: inset 0 0 0 4px #fff;
}

.student-exam-option-text {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
}

.student-exam-text-answer {
    max-width: 850px;
}

.student-exam-text-input,
.student-exam-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.student-exam-text-input:focus,
.student-exam-textarea:focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.student-exam-textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}


/* Matching */

.student-matching-container {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 24px;
    align-items: start;
}

.student-matching-column {
    min-width: 0;
}

.student-matching-column h3 {
    margin: 0 0 6px;

    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}

.student-matching-help {
    margin: 0 0 18px;

    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


/* Matching rows */

.student-matching-row {
    margin-bottom: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #fff;

    overflow: hidden;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.student-matching-row:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, .04);
}


/* Question / left item */

.student-matching-question {
    padding: 14px 16px;

    border: 0;
    border-bottom: 1px solid #e8edf3;
    border-radius: 0;

    background: #f8fafc;

    color: #1e293b;
    font-size: 14px;
    line-height: 1.5;
}

.student-matching-question strong {
    font-weight: 600;
}


/* Drop area */

.student-matching-drop-zone {
    min-height: 50px;

    display: flex;
    align-items: center;

    padding: 11px 14px;

    border: 0;
    border-radius: 0;

    background: #fff;

    color: #94a3b8;
    font-size: 13px;

    transition:
        background-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.student-matching-drop-zone:hover {
    background: #fbfcfd;
}


/* Answer bank */

.student-matching-answer-bank {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 12px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;
}


/* Draggable answers */

.student-matching-answer {
    position: relative;

    padding: 13px 38px 13px 15px;

    border: 1px solid #dbe3ec;
    border-radius: 8px;

    background: #fff;

    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;

    cursor: grab;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, .03);

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.student-matching-answer::after {
    content: "⋮⋮";

    position: absolute;
    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    color: #a8b2bf;
    font-size: 13px;
    letter-spacing: -2px;
}

.student-matching-answer:hover {
    border-color: var(--primary-color, #2563eb);
    background: #fff;

    box-shadow:
        0 4px 10px rgba(15, 23, 42, .06);

    transform: translateY(-1px);
}

.student-matching-answer:active {
    cursor: grabbing;
    transform: translateY(0);
}


/* Responsive */

@media (max-width: 850px) {

    .student-matching-container {
        grid-template-columns: 1fr;
    }

}


/* Navigation */

.student-exam-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.student-exam-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.student-exam-button:hover {
    opacity: .9;
}

.student-exam-button-primary {
    background: var(--primary-color, #2563eb);
    color: #fff;
}

.student-exam-button-secondary {
    background: #eef2f7;
    color: #374151;
}

.student-exam-button-submit {
    background: #15803d;
    color: #fff;
}


/* Mobile */

@media (max-width: 768px) {

    .student-exam-page {
        padding: 20px 14px 35px;
    }

    .student-exam-header {
        display: block;
    }

    .student-exam-progress {
        width: 100%;
        margin-top: 18px;
    }

    .student-exam-progress-text {
        text-align: left;
    }

    .student-exam-question-card {
        padding: 20px 16px;
    }

    .student-exam-question {
        font-size: 18px;
    }

    .student-matching-container {
        grid-template-columns: 1fr;
    }

    .student-exam-navigation {
        flex-wrap: wrap;
    }

    .student-exam-button {
        width: 100%;
    }

}

/* =========================================================
   USER MANAGEMENT - TABLE ACTIONS
   ========================================================= */

.admin-users-table .admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.admin-users-table .admin-action-group form {
    display: inline-flex;
    margin: 0;
}

.admin-users-table .admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 11px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #334155;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.admin-users-table .admin-action-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;

    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);

    text-decoration: none;
}

/* Disable */

.admin-users-table .admin-action-button.danger {
    color: #b42318;
    border-color: #fecaca;
}

.admin-users-table .admin-action-button.danger:hover {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fca5a5;
}

/* Enable */

.admin-users-table .admin-action-button.success {
    color: #166534;
    border-color: #bbf7d0;
}

.admin-users-table .admin-action-button.success:hover {
    color: #14532d;
    background: #f0fdf4;
    border-color: #86efac;
}

/* =========================================================
   USER MANAGEMENT - ROLE BADGES
   ========================================================= */

.admin-users-table .admin-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    min-height: 28px;
    padding: 0 10px;

    box-sizing: border-box;

    color: #475569;
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    white-space: nowrap;
}

/* =========================================================
   USER MANAGEMENT - FILTER PANEL
   ========================================================= */

.admin-user-filter-panel {
    padding: 22px 24px 24px;
}

.admin-user-filter-panel .admin-card-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.admin-user-filter-panel .admin-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
    border-top: 0;
}

.admin-user-filter-panel .admin-form-group {
    gap: 6px;
    margin-bottom: 0;
}

.admin-user-filter-panel .admin-filter-actions {
    justify-content: flex-start;
    gap: 10px;

    margin-top: 18px;
    padding-top: 0;

    border-top: 0;
}

/* =========================================================
   USER MANAGEMENT - PAGINATION
   ========================================================= */

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #e2e8f0;
}

.admin-pagination-summary {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.admin-pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    min-height: 36px;
    padding: 0 11px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #475569;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.admin-pagination-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
    text-decoration: none;
}

.admin-pagination-button.active {
    background: #475569;
    border-color: #475569;
    color: #fff;
}

/* =========================================================
   USER MANAGEMENT
   ========================================================= */

.admin-page-description {
    margin-top: 6px;
    color: var(--admin-muted, #64748b);
}


/* Card */

.admin-card {
    background: var(--admin-card-bg, #ffffff);
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.admin-card-header h2 {
    margin: 0;
    font-size: 18px;
}

.admin-card-header p {
    margin: 5px 0 0;
    color: var(--admin-muted, #64748b);
    font-size: 14px;
}


/* Filters */

.admin-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.5fr)
        minmax(160px, 1fr)
        minmax(180px, 1fr)
        minmax(220px, 1.2fr);

    gap: 18px;
}

.exam-filter-grid .admin-filter-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 40px;

    margin-top: 0;
    padding-top: 0;

    border-top: 0;

    white-space: nowrap;
}
.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 16px;

    border: 1px solid var(--admin-border, #cbd5e1);
    border-radius: 6px;

    background: #fff;
    color: #475569;

    text-decoration: none;
    font-weight: 500;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.admin-secondary-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}


/* Table */

.admin-table-wrapper {
    width: 100%;
}

.admin-table-secondary {
    margin-top: 3px;
    color: var(--admin-muted, #64748b);
    font-size: 13px;
}


/* Empty state */

.admin-empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--admin-muted, #64748b);
}

.admin-empty-state h3 {
    margin-bottom: 6px;
    color: #334155;
}

.admin-empty-state p {
    margin: 0;
}


/* Actions */

.admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-action-group form {
    margin: 0;
}

.admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 11px;

    border: 1px solid var(--admin-border, #cbd5e1);
    border-radius: 6px;

    background: #fff;
    color: #334155;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.admin-action-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.admin-action-button.danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff;
}

.admin-action-button.danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.admin-action-button.success {
    color: #15803d;
    border-color: #bbf7d0;
    background: #fff;
}

.admin-action-button.success:hover {
    background: #f0fdf4;
    border-color: #86efac;
}


/* Password reset */

.admin-password-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-password-input {
    width: 150px;
    min-height: 34px;
    padding: 0 9px;

    border: 1px solid var(--admin-border, #cbd5e1);
    border-radius: 6px;

    font-size: 13px;
    background: #fff;
}

.admin-password-input:focus {
    outline: none;
    border-color: var(--admin-primary, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}


/* Responsive */

@media (max-width: 1100px) {

    .admin-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filter-actions a,
    .admin-filter-actions button {
        width: 100%;
    }

    .admin-password-form {
        flex-wrap: wrap;
    }

}

/* =========================================================
User Password
========================================================= */

.admin-password-field {
width: 100%;
}

.admin-password-input-group {
display: flex;
flex-direction: column;
gap: 7px;
}

.admin-password-input-group > label {
color: #343a40;
font-size: 14px;
font-weight: 600;
}

/* Password input + button */

.admin-password-input-row {
display: flex;
align-items: flex-start;
gap: 10px;
}

.admin-password-input-row > input {
flex: 1;
min-width: 0;

width: 100%;
box-sizing: border-box;

padding: 10px 12px;

color: #212529;
background: #ffffff;

border: 1px solid #ced4da;
border-radius: 5px;

font-family: inherit;
font-size: 14px;

height: 40px;

}

.admin-password-input-row > input:focus {
outline: none;

border-color: #86b7fe;

box-shadow:
    0 0 0 2px
    rgba(13, 110, 253, 0.15);

}

/* Generate + Show password */

.admin-password-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;

flex: 0 0 auto;

}

.admin-password-actions .admin-secondary-button {
height: 40px;
min-height: 40px;

margin: 0;

white-space: nowrap;

}

.admin-password-show {
display: inline-flex;
align-items: center;
gap: 7px;

margin: 0;

color: #495057;

font-size: 13px;
font-weight: 500;

cursor: pointer;

}

.admin-password-show input {
width: 15px;
height: 15px;

margin: 0;

cursor: pointer;

}

/* Mobile */

@media (max-width: 700px) {

.admin-password-input-row {
    flex-direction: column;
    align-items: stretch;
}

.admin-password-actions {
    width: 100%;
}

.admin-password-actions .admin-secondary-button {
    width: 100%;
}

}

/* =========================================================
ADMIN QUESTION VIEW
========================================================= */

.admin-question-badges {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}

.admin-question-badge {
display: inline-flex;
align-items: center;

padding: 5px 10px;

color: #495057;
background: #f1f3f5;

border: 1px solid #dee2e6;
border-radius: 20px;

font-size: 12px;
font-weight: 600;

}

/* View Question - Difficulty Badge Colours */

.admin-question-badge-easy {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.admin-question-badge-medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.admin-question-badge-hard {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.admin-question-details {
display: grid;
grid-template-columns: repeat(3, 1fr);

gap: 16px;

margin-top: 20px;
padding-top: 20px;

border-top: 1px solid #edf0f2;

}

.admin-question-detail {
display: flex;
flex-direction: column;
gap: 4px;
}

.admin-question-detail span {
color: #6c757d;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}

.admin-question-detail strong {
color: #212529;
font-size: 14px;
}

.admin-question-description {
margin-bottom: 16px;

color: #6c757d;

font-size: 14px;
line-height: 1.6;

}

.admin-review-options {
display: flex;
flex-direction: column;
gap: 10px;
}

.admin-review-option-content {
display: flex;
align-items: flex-start;
gap: 10px;
}

.admin-review-option-number {
min-width: 22px;

color: #6c757d;
font-weight: 600;

}

.admin-question-explanation {
margin-top: 28px;
padding-top: 24px;

border-top: 1px solid #edf0f2;

}

.admin-question-explanation-content {
padding: 16px;

color: #495057;
background: #f8f9fa;

border: 1px solid #e9ecef;
border-radius: 6px;

font-size: 14px;
line-height: 1.7;

}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 768px) {

.admin-question-details {
    grid-template-columns: 1fr;
}

.admin-review-matching-row {
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-review-matching-arrow {
    display: none;
}

.admin-review-matching-result {
    justify-content: flex-start;
}

}

/* =========================================================
ANSWER OPTIONS SPACING
========================================================= */

.admin-review-options {
display: flex;
flex-direction: column;

gap: 10px;

margin-top: 18px;

}

.admin-review-question-body > .admin-review-section-title + .admin-review-options {
margin-top: 18px;
}

/* Extra separation after question details */

.admin-question-details + .admin-review-section-title {
margin-top: 34px;
}

/* =========================================================
   MFA STATUS
========================================================= */

.mfa-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mfa-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}

.mfa-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.mfa-status-enabled {
    color: #198754;
}

.mfa-status-enabled .mfa-status-dot {
    background: #198754;
}

.mfa-status-disabled {
    color: #dc3545;
}

.mfa-status-disabled .mfa-status-dot {
    background: #dc3545;
}

.mfa-status-required {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.mfa-status-required .mfa-status-dot {
    background: #f59e0b;
}


@media (max-width: 700px) {

    .mfa-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   USER EDIT PAGE
========================================================= */

.user-password-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--admin-border, #e2e8f0);
}

.user-password-section h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.admin-form-help {
    margin: 0 0 18px;
    color: var(--admin-muted, #64748b);
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FINAL PAGE ACTIONS
========================================================= */

.admin-page-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 30px;
}

/* =========================================================
   ADMIN ALERTS
   ========================================================= */

.admin-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
}

.admin-alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f1aeb5;
}

.admin-alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #a3cfbb;
}
.admin-settings-value {
    min-height: 42px;
    padding: 10px 12px;

    display: flex;
    align-items: center;

    background: #f8fafc;
    border: 1px solid #d9e0e7;
    border-radius: 6px;

    color: #263238;
    font-size: 0.95rem;
}

.admin-settings-status {
    padding-top: 4px;
}

/* =========================================================
   SETTINGS DISPLAY
========================================================= */

.admin-settings-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   PROVIDER SUMMARY
========================================================= */

.admin-settings-provider-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.admin-settings-provider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.admin-settings-provider-content {
    flex: 1;
    min-width: 0;
}

.admin-settings-provider-label {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-settings-provider-name {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.admin-settings-provider-description {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}

.admin-settings-provider-status {
    flex-shrink: 0;
}


/* =========================================================
   SETTINGS GRID
========================================================= */

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #e5e7eb;
}

.admin-settings-item {
    min-width: 0;
    padding: 16px 18px;
    background: #ffffff;
}

.admin-settings-item-label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-settings-item-value {
    min-height: 20px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.admin-settings-muted {
    color: #64748b;
    font-weight: 400;
}

.admin-settings-monospace {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 13px;
}

.admin-settings-code {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #334155;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 12px;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.admin-settings-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-settings-badge-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.admin-settings-badge-success {
    background: #ecfdf3;
    color: #047857;
}

.admin-settings-badge-success .admin-settings-badge-dot {
    background: #10b981;
}

.admin-settings-badge-warning {
    background: #fffbeb;
    color: #b45309;
}

.admin-settings-badge-warning .admin-settings-badge-dot {
    background: #f59e0b;
}


/* =========================================================
   INFORMATION PANEL
========================================================= */

.admin-settings-info {
    margin-top: 18px;
    padding: 15px 17px;
    border-left: 3px solid #2563eb;
    border-radius: 6px;
    background: #f8fafc;
}

.admin-settings-info strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 13px;
}

.admin-settings-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SECURITY LIST
========================================================= */

.admin-settings-security-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.admin-settings-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.admin-settings-security-item:last-child {
    border-bottom: 0;
}

.admin-settings-security-item strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 14px;
}

.admin-settings-security-item span {
    color: #64748b;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .admin-settings-provider-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-settings-provider-status {
        width: 100%;
        padding-left: 66px;
    }

    .admin-settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-settings-security-item {
        align-items: flex-start;
        flex-direction: column;
    }

}

.admin-question-image {
    margin: 0 0 24px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.admin-question-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}
.student-exam-question-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.student-exam-question-image img {
    display: block;
    max-width: min(100%, 760px);
    width: auto;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
}
/* =========================================================
   SETTINGS CHECKBOXES
   ========================================================= */

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

/* =========================================================
   SETTINGS CHECKBOXES
   ========================================================= */

.admin-form-group .admin-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px;
    width: auto;
    margin-top: 10px;
    cursor: pointer;
}

.admin-form-group .admin-checkbox-label input[type="checkbox"] {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

.admin-form-group .admin-checkbox-label span {
    display: inline-block;
    width: auto;
    margin: 0;
}
/* =========================================================
   SETTINGS IMAGE PREVIEW
   ========================================================= */

.admin-settings-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-settings-image-preview img {
    display: block;
    width: 100px;
    height: 55px;
    object-fit: cover;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f3f4f6;
}

.admin-settings-image-preview span {
    word-break: break-all;
}

/* =========================================================
   SETTINGS COLOR PREVIEW
   ========================================================= */

.admin-settings-color-preview {
    display: inline-block !important;
    width: 32px !important;
    height: 22px !important;
    min-width: 32px;
    border-radius: 4px;
    border: 1px solid #9ca3af;
    vertical-align: middle;
    margin-right: 10px;
    box-sizing: border-box;
}
/* =========================================================
   SETTINGS COLOR PICKERS
   ========================================================= */

.admin-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}


/* Actual color box */

.admin-color-picker input[type="color"] {
    display: block !important;

    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;

    height: 38px !important;
    min-height: 38px !important;

    padding: 3px !important;
    margin: 0 !important;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #ffffff;

    cursor: pointer;

    box-sizing: border-box;
}


/* HEX value */

.admin-color-picker-value {
    display: inline-flex;
    align-items: center;

    height: 38px;

    padding: 0 12px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #f9fafb;

    color: #374151;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 13px;
}


/* Hover */

.admin-color-picker input[type="color"]:hover {
    border-color: #9ca3af;
}


/* Focus */

.admin-color-picker input[type="color"]:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 2px
        rgba(37, 99, 235, 0.15);
}


/* Menu background image occupies the full row */

.admin-settings-grid .admin-settings-menu-background-image {
    grid-column: 1 / -1;
}

/* =========================================================
   SETTINGS GRID - REMOVE GREY EMPTY CELL
   ========================================================= */

.admin-settings-grid .admin-settings-item:empty {
    display: none;
}

.admin-settings-grid .admin-settings-item {
    background: #ffffff;
}

/* =========================================================
   SETTINGS IMAGE PREVIEWS
   ========================================================= */

.admin-settings-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================================
   FAVICON PREVIEW
   ========================================================= */

.admin-settings-favicon-preview {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    overflow: hidden;
}

.admin-settings-favicon-preview img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

.admin-settings-image-path {
    margin-top: 4px;

    font-size: 12px;

    color: #6b7280;

    word-break: break-all;
}
/* =========================================================
   SETTINGS REMOVE CHECKBOX
   ========================================================= */

.admin-remove-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;

    cursor: pointer;
}

.admin-remove-checkbox input[type="checkbox"] {
    margin: 0;

    width: 16px;
    height: 16px;

    flex: 0 0 auto;
}

.admin-settings-full-width {
    grid-column: 1 / -1;
}
/* =========================================================
   LIVE EXAMINATION MONITORING
   ========================================================= */

.dashboard-live-monitor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 24px;
    padding: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
}


.dashboard-live-monitor h2 {
    margin: 8px 0 4px;

    color: #111827;

    font-size: 18px;
}


.dashboard-live-monitor p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}


.dashboard-live-indicator {
    color: #16a34a;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .05em;
}


.dashboard-live-none {
    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   MONITORING GRID
   ========================================================= */

.exam-monitor-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );

    gap: 20px;
}


.exam-monitor-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    overflow: hidden;
}


.exam-monitor-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px;
}


.exam-monitor-card h2 {
    margin: 10px 0 4px;

    color: #111827;

    font-size: 17px;
}


.exam-monitor-card p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
}


.exam-monitor-live {
    display: inline-block;

    padding: 4px 8px;

    background: #dcfce7;

    border-radius: 999px;

    color: #15803d;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}


.exam-monitor-count {
    min-width: 58px;

    text-align: center;

    color: #111827;

    font-size: 22px;
    font-weight: 700;
}


.exam-monitor-count span {
    display: block;

    margin-top: 2px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 500;
}


.exam-monitor-card-footer {
    padding: 14px 22px;

    background: #fafafa;

    border-top: 1px solid #e5e7eb;

    text-align: right;
}


/* =========================================================
   MONITORING PANEL
   ========================================================= */

.exam-monitor-panel {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    overflow: hidden;
}


.exam-monitor-panel-header {
    padding: 22px;

    border-bottom: 1px solid #e5e7eb;
}


.exam-monitor-panel-header h2 {
    margin: 0;

    color: #111827;

    font-size: 18px;
}


.exam-monitor-panel-header p {
    margin: 5px 0 0;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   MONITORING TABLE
   ========================================================= */

.exam-monitor-table-wrapper {
    overflow-x: auto;
}


.exam-monitor-table {
    width: 100%;

    border-collapse: collapse;
}


.exam-monitor-table th {
    padding: 13px 20px;

    background: #f9fafb;

    color: #6b7280;

    font-size: 12px;
    font-weight: 700;

    text-align: left;
}


.exam-monitor-table td {
    padding: 16px 20px;

    border-top: 1px solid #f0f1f3;

    color: #374151;

    font-size: 13px;
}


.monitor-student strong {
    display: block;

    color: #111827;

    font-size: 14px;
}


.monitor-student span {
    display: block;

    margin-top: 3px;

    color: #9ca3af;

    font-size: 12px;
}


.monitor-status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}


.monitor-status-active {
    background: #dcfce7;

    color: #15803d;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.exam-monitor-empty {
    padding: 60px 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    text-align: center;
}


.exam-monitor-empty h2,
.exam-monitor-empty h3 {
    margin: 0;

    color: #111827;
}


.exam-monitor-empty p {
    margin: 8px 0 0;

    color: #6b7280;

    font-size: 14px;
}

/* =========================================================
   EXAMINATION MONITORING
   ========================================================= */

.exam-monitor-page,
.exam-live-monitor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}


.exam-monitor-page-header,
.exam-live-monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}


.exam-monitor-eyebrow {
    color: var(--menu-active-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 1.25rem;
}


.exam-monitor-page-header h1,
.exam-live-monitor-header h1 {
    margin: 0;
    color: #111827;
    font-size: 32px;
    line-height: 1.2;
}


.exam-monitor-page-header p,
.exam-live-monitor-header p {
    margin: 8px 0 0;
    color: #6b7280;
}


.exam-monitor-header-status,
.exam-live-monitor-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}


.exam-monitor-status-dot {
    width: 9px;
    height: 9px;
    background: #16a34a;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(22,163,74,.12);
}


.exam-monitor-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 16px;
    margin-bottom: 24px;
}


.exam-monitor-summary-card,
.exam-live-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}


.exam-monitor-summary-card span,
.exam-live-summary-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}


.exam-monitor-summary-card strong,
.exam-live-summary-card strong {
    display: block;
    color: #111827;
    font-size: 28px;
}


.exam-monitor-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}


.exam-monitor-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.exam-monitor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}


.exam-monitor-card-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
}


.exam-monitor-live-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 10px;
}


.exam-monitor-card h2 {
    margin: 0;
    color: #111827;
    font-size: 19px;
}


.exam-monitor-subject {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}


.exam-monitor-active-number {
    min-width: 70px;
    text-align: right;
}


.exam-monitor-active-number strong {
    display: block;
    color: #111827;
    font-size: 30px;
    line-height: 1;
}


.exam-monitor-active-number span {
    color: #6b7280;
    font-size: 12px;
}


.exam-monitor-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}


.exam-monitor-card-info > div {
    padding: 15px 22px;
}


.exam-monitor-card-info > div + div {
    border-left: 1px solid #f3f4f6;
}


.exam-monitor-card-info span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}


.exam-monitor-card-info strong {
    color: #374151;
    font-size: 14px;
}


.exam-monitor-card-footer {
    padding: 16px 22px;
    background: #fafafa;
}


.exam-monitor-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 70px 30px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}


.exam-monitor-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf5;
    color: #15803d;
    font-size: 24px;
    font-weight: 700;
}


.exam-monitor-empty h2 {
    margin: 0;
    color: #111827;
}


.exam-monitor-empty p {
    max-width: 500px;
    margin: 10px auto 0;
    color: #6b7280;
}


/* =========================================================
   LIVE MONITOR
   ========================================================= */

.exam-live-monitor-header {
    align-items: center;
}


.exam-monitor-back {
    display: inline-block;
    margin-bottom: 18px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}


.exam-monitor-back:hover {
    color: #111827;
}


.exam-live-monitor-status strong {
    display: block;
    color: #15803d;
    font-size: 12px;
}


.exam-live-monitor-status span:last-child {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 2px;
}


.exam-live-monitor-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}


.exam-live-summary-card {
    min-width: 190px;
}


.exam-live-monitor-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}


.exam-live-monitor-panel-header {
    padding: 22px;
    border-bottom: 1px solid #e5e7eb;
}


.exam-live-monitor-panel-header h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
}


.exam-live-monitor-panel-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}


.exam-monitor-table-wrapper {
    overflow-x: auto;
}


.exam-monitor-table {
    width: 100%;
    border-collapse: collapse;
}


.exam-monitor-table th {
    padding: 13px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}


.exam-monitor-table td {
    padding: 17px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 13px;
    vertical-align: middle;
}


.exam-monitor-table tbody tr:last-child td {
    border-bottom: 0;
}


.exam-monitor-table tbody tr:hover {
    background: #fafafa;
}


.monitor-student {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 210px;
}


.monitor-student-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--menu-background-color);
    color: var(--menu-text-color);
    font-size: 12px;
    font-weight: 700;
}


.monitor-student strong {
    display: block;
    color: #111827;
}


.monitor-student span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 2px;
}


.monitor-progress {
    min-width: 120px;
}


.monitor-progress-bar {
    width: 100%;
    height: 6px;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}


.monitor-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--menu-background-color);
}


.monitor-progress > span {
    color: #6b7280;
    font-size: 11px;
}


.monitor-elapsed,
.monitor-remaining {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


.monitor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}


.monitor-status i {
    width: 6px;
    height: 6px;
    display: block;
    border-radius: 50%;
}


.monitor-status-active {
    background: #ecfdf5;
    color: #15803d;
}


.monitor-status-active i {
    background: #16a34a;
}


.exam-monitor-loading,
.exam-monitor-no-students {
    padding: 50px !important;
    text-align: center;
    color: #6b7280 !important;
}


.exam-monitor-no-students strong,
.exam-monitor-no-students span {
    display: block;
}


.exam-monitor-no-students strong {
    color: #374151;
    margin-bottom: 5px;
}


.exam-monitor-no-students span {
    color: #9ca3af;
    font-size: 12px;
}


@media (max-width: 800px) {

    .exam-monitor-page,
    .exam-live-monitor {
        padding: 20px;
    }


    .exam-monitor-page-header,
    .exam-live-monitor-header {
        flex-direction: column;
    }


    .exam-monitor-summary {
        grid-template-columns: 1fr 1fr;
    }


    .exam-live-monitor-summary {
        flex-wrap: wrap;
    }

}


@media (max-width: 560px) {

    .exam-monitor-summary {
        grid-template-columns: 1fr;
    }


    .exam-monitor-grid {
        grid-template-columns: 1fr;
    }


    .exam-live-summary-card {
        width: 100%;
    }

}

.exam-monitor-card-footer {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.exam-monitor-open-btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.exam-monitor-open-btn span {
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.exam-monitor-open-btn:hover span {
    transform: translateX(3px);
}

.exam-monitor-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.exam-monitor-back-btn span {
    font-size: 1.1em;
}

/* =========================================================
   Examination Monitoring Buttons
   ========================================================= */

.exam-monitor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 13px;
    min-height: 34px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

/* Primary action */

.exam-monitor-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.exam-monitor-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.20);
}


/* Secondary navigation */

.exam-monitor-btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.exam-monitor-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    text-decoration: none;
}


/* Open Monitor fills the card footer */

.exam-monitor-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.exam-monitor-card-footer .exam-monitor-btn {
    width: auto;
}

/* Keep the arrow nicely aligned */

.exam-monitor-btn > span:first-child {
    display: inline-flex;
    align-items: center;
}

/* =========================================================
   EXAMINATION SESSIONS
   ========================================================= */

.exam-sessions-page .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.exam-sessions-page .page-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
}

.exam-sessions-page .page-header p {
    margin: 0;
}

.exam-sessions-page .sessions-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.exam-sessions-page .sessions-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.exam-sessions-page .sessions-card-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 650;
}

.exam-sessions-page .sessions-card-header p {
    margin: 0;
    font-size: 13px;
}

.exam-sessions-page .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.exam-sessions-page .sessions-table {
    width: 100%;
    border-collapse: collapse;
}

.exam-sessions-page .sessions-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 13px 18px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.exam-sessions-page .sessions-table tbody td {
    padding: 17px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.exam-sessions-page .sessions-table tbody tr:last-child td {
    border-bottom: 0;
}

.exam-sessions-page .sessions-table tbody tr:hover {
    background: #fafafa;
}

.exam-sessions-page .primary-text {
    color: #111827;
    font-weight: 600;
}

.exam-sessions-page .secondary-text {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.exam-sessions-page .subject-name {
    color: #475569;
    font-size: 14px;
}

.exam-sessions-page .schedule-date {
    color: #111827;
    font-weight: 600;
    white-space: nowrap;
}

.exam-sessions-page .schedule-time {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.exam-sessions-page .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.exam-sessions-page .status-scheduled {
    color: #92400e;
    background: #fef3c7;
}

.exam-sessions-page .status-active {
    color: #166534;
    background: #dcfce7;
}

.exam-sessions-page .status-completed {
    color: #1e40af;
    background: #dbeafe;
}

.exam-sessions-page .status-cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.exam-sessions-page .empty-state {
    padding: 70px 20px;
    text-align: center;
}

.exam-sessions-page .empty-state-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 25px;
}

.exam-sessions-page .empty-state h3 {
    margin: 0 0 7px;
    font-size: 17px;
    color: #1e293b;
}

.exam-sessions-page .empty-state p {
    margin: 0 0 20px;
    font-size: 14px;
}

.exam-sessions-page .text-muted {
    color: #64748b;
}

.exam-sessions-page .text-right {
    text-align: right;
}

@media (max-width: 900px) {

    .exam-sessions-page .page-header {
        flex-direction: column;
    }

    .exam-sessions-page .sessions-table thead th,
    .exam-sessions-page .sessions-table tbody td {
        padding: 12px;
    }
}

/* =========================================================
   EXAMINATION SESSIONS - LOCATION
   ========================================================= */

.admin-exam-sessions-table .exam-session-room {
    margin-top: 2px;

    color: #64748b;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* =========================================================
   EXAMINATION SESSIONS - FILTER PANEL
   ========================================================= */

.admin-exam-session-filter-panel {
    max-width: none;
    padding: 22px 30px 24px;
}

.admin-exam-session-filter-panel .admin-page-section-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.admin-exam-session-filter-panel .admin-filter-grid {
    padding-top: 0;
    border-top: 0;
}

.admin-exam-session-filter-panel .admin-filter-group {
    gap: 6px;
}

.admin-exam-session-filter-panel .admin-filter-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* =========================================================
   EXAMINATION SESSIONS - TABLE LAYOUT
   ========================================================= */

.admin-exam-sessions-table {
    table-layout: fixed;
}

.admin-exam-sessions-table th:nth-child(1),
.admin-exam-sessions-table td:nth-child(1) {
    width: 15%;
}

.admin-exam-sessions-table th:nth-child(2),
.admin-exam-sessions-table td:nth-child(2) {
    width: 8%;
}

.admin-exam-sessions-table th:nth-child(3),
.admin-exam-sessions-table td:nth-child(3) {
    width: 10%;
}

.admin-exam-sessions-table th:nth-child(4),
.admin-exam-sessions-table td:nth-child(4) {
    width: 13%;
}

.admin-exam-sessions-table th:nth-child(5),
.admin-exam-sessions-table td:nth-child(5) {
    width: 21%;
}

.admin-exam-sessions-table th:nth-child(6),
.admin-exam-sessions-table td:nth-child(6) {
    width: 11%;
}

.admin-exam-sessions-table th:nth-child(7),
.admin-exam-sessions-table td:nth-child(7) {
    width: 22%;
}

.admin-exam-sessions-table .admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-exam-sessions-table .admin-action-form {
    display: inline-flex;
    margin: 0;
}

/* =========================================================
   EXAMINATION SESSIONS - SCHEDULE DISPLAY
   ========================================================= */

.admin-exam-sessions-table .exam-session-schedule {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 180px;
    line-height: 1.3;
}

.admin-exam-sessions-table .exam-session-datetime {
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
}

.admin-exam-sessions-table .exam-session-datetime-label {
    display: inline-block;
    min-width: 34px;
    color: #475569;
    font-weight: 700;
}

.admin-exam-sessions-table .exam-session-at {
    margin: 0 2px;
    color: #94a3b8;
}

.admin-exam-sessions-table .exam-session-timezone {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

/* =========================================================
   EXAMINATION SESSIONS - TABLE ACTIONS
   ========================================================= */

.admin-exam-sessions-table .admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 11px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #334155;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.admin-exam-sessions-table .admin-action-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;

    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);

    text-decoration: none;
}

.admin-exam-sessions-table .admin-action-button-danger {
    color: #b42318;
    border-color: #fecaca;
    background: #fff;
}

.admin-exam-sessions-table .admin-action-button-danger:hover {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* =========================================================
   EXAMINATION SESSIONS - STATUS BADGES
   ========================================================= */

.admin-exam-sessions-table .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 76px;
    min-height: 28px;
    padding: 0 10px;

    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

/* Scheduled */

.admin-exam-sessions-table .status-scheduled {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

/* Active */

.admin-exam-sessions-table .status-active {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

/* Ended */

.admin-exam-sessions-table .status-ended {
    color: #475569;
    background: #f8fafc;
    border-color: #dbe2ea;
}

/* Completed */

.admin-exam-sessions-table .status-completed {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Cancelled */

.admin-exam-sessions-table .status-cancelled {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* =========================================================
   EXAM TABLE ACTIONS
   ========================================================= */

.admin-table-actions-cell {
    min-width: 200px;
    white-space: nowrap;
}

.admin-table-actions-cell .admin-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-table-actions-cell .admin-action-button {
    flex-shrink: 0;
}
.category-actions-cell {
    width: 100px;
    min-width: 100px;
    white-space: nowrap;
}

.category-actions-cell .admin-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.category-actions-cell .admin-action-button {
    flex-shrink: 0;
}
/* =========================================================
   EXAMINATION SESSION SUMMARY
   ========================================================= */

.exam-session-summary {
    padding: 0;
    overflow: hidden;
}


/* Header */

.exam-session-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px 24px;
}


.exam-session-title {
    min-width: 0;
}


.exam-session-label {
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #64748b;
}


.exam-session-title h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;

    color: #1e293b;
}


.exam-session-title p {
    margin: 6px 0 0;

    font-size: 14px;
    line-height: 1.5;

    color: #64748b;
}


/* =========================================================
   EXAMINATION SESSION STATUS
   ========================================================= */

.exam-session-status {
    flex-shrink: 0;

    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    padding-top: 2px;
}


/* Scheduled */



/* Divider */

.exam-session-summary-divider {
    height: 1px;
    margin: 0 30px;

    background: #e5e7eb;
}


/* =========================================================
   EXAMINATION SESSION INFORMATION
   ========================================================= */

.exam-session-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0;

    padding: 24px 30px 28px;
}


/* Individual information cell */

.exam-session-info {
    min-height: 68px;

    padding: 0 24px;

    box-sizing: border-box;

    border-right: 1px solid #e5e7eb;
    border-top: none;
}


/* First column of every row */

.exam-session-info:nth-child(3n + 1) {
    padding-left: 0;
}


/* Last column of every row */

.exam-session-info:nth-child(3n) {
    padding-right: 0;
    border-right: none;
}


/* Horizontal divider between rows */

.exam-session-info:nth-child(n + 4) {
    margin-top: 0;
    padding-top: 24px;

    border-top: 1px solid #e5e7eb;
}


/* Labels */

.exam-session-info-label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;

    color: #64748b;
}


/* Values */

.exam-session-info strong {
    display: block;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #1e293b;
}

/* ---------------------------------------------------------
   Labels
   --------------------------------------------------------- */

.exam-session-info-label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;

    color: #64748b;
}


/* ---------------------------------------------------------
   Values
   --------------------------------------------------------- */

.exam-session-info strong {
    display: block;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #1e293b;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

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


    .exam-session-info {
        border-right: none;
    }


    /* Reset desktop positioning */

    .exam-session-info:nth-child(n) {
        padding-left: 24px;
        padding-right: 24px;
    }


    /* Left column */

    .exam-session-info:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid #e5e7eb;
    }


    /* Right column */

    .exam-session-info:nth-child(even) {
        padding-right: 0;
        border-right: none;
    }


    /*
     * First row has no horizontal divider.
     */

    .exam-session-info:nth-child(-n + 2) {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }


    /*
     * All following rows have a divider.
     */

    .exam-session-info:nth-child(n + 3) {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #e5e7eb;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .exam-session-summary-header {
        flex-direction: column;
        gap: 16px;

        padding: 22px 20px;
    }


    .exam-session-summary-divider {
        margin: 0 20px;
    }


    .exam-session-info-grid {
        grid-template-columns: 1fr;

        padding: 20px;
    }


    .exam-session-info,
    .exam-session-info:nth-child(odd),
    .exam-session-info:nth-child(even) {
        padding-left: 0;
        padding-right: 0;

        border-right: none;
    }


    /*
     * First item starts cleanly.
     */

    .exam-session-info:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }


    /*
     * Every subsequent item gets a
     * full-width divider.
     */

    .exam-session-info:nth-child(n + 2) {
        margin-top: 20px;
        padding-top: 20px;

        border-top: 1px solid #e5e7eb;
    }

}
/* =========================================================
   SESSION DETAILS
   ========================================================= */

.session-details {
    margin-bottom: 24px;
}

.session-details .admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-border-color, #e5e7eb);
}

.session-details .admin-card-header h2 {
    margin: 0 0 4px;
}

.session-details .admin-card-header p {
    margin: 0;
}


/* Details */

.session-details-body {
    padding-top: 4px;
}

.session-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.session-detail-field {
    padding: 18px 20px 18px 0;
}

.session-detail-field + .session-detail-field {
    padding-left: 20px;
    border-left: 1px solid var(
        --admin-border-color,
        #e5e7eb
    );
}

.session-detail-row + .session-detail-row {
    border-top: 1px solid var(
        --admin-border-color,
        #e5e7eb
    );
}


/* Labels */

.session-detail-field .admin-detail-label {
    display: block;

    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: #6b7280;
}


/* Values */

.session-detail-value {
    color: var(
        --admin-text-color,
        #111827
    );

    font-size: 15px;
    font-weight: 600;

    line-height: 1.45;
}


/* Status */

.session-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 82px;

    padding: 6px 12px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    white-space: nowrap;
}

.session-status-scheduled {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #475569;
}

.session-status-active {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.session-status-completed {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #374151;
}

.session-status-cancelled {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .session-details .admin-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-detail-row {
        grid-template-columns: 1fr;
    }

    .session-detail-field {
        padding: 16px 0;
    }

    .session-detail-field + .session-detail-field {
        padding-left: 0;

        border-left: 0;
        border-top: 1px solid var(
            --admin-border-color,
            #e5e7eb
        );
    }

}
/* =========================================================
   SUBJECT ASSIGNMENTS
   ========================================================= */

.subject-assignment-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 14px;

}


/* ---------------------------------------------------------
   SUBJECT CARD
   --------------------------------------------------------- */

.subject-assignment-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 88px;

    padding: 16px 18px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

}


.subject-assignment-card:hover {

    border-color: #94a3b8;

    background: #f8fafc;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, 0.07);

    transform: translateY(-1px);

}


/* ---------------------------------------------------------
   HIDDEN CHECKBOX
   --------------------------------------------------------- */

.subject-assignment-card input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}


/* ---------------------------------------------------------
   CHECK INDICATOR
   --------------------------------------------------------- */

.subject-assignment-check {

    width: 28px;

    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    color: transparent;

    font-size: 14px;

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;

}


/* ---------------------------------------------------------
   SELECTED CARD
   --------------------------------------------------------- */

.subject-assignment-card.selected {

    border-color: #2563eb;

    background: #eff6ff;

    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.08);

}


.subject-assignment-card.selected
.subject-assignment-check {

    border-color: #2563eb;

    background: #2563eb;

    color: #ffffff;

}


/* ---------------------------------------------------------
   SUBJECT CONTENT
   --------------------------------------------------------- */

.subject-assignment-content {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;

}


.subject-assignment-code {

    width: fit-content;

    color: #2563eb;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

}


.subject-assignment-name {

    color: #0f172a;

    font-size: 15px;

    font-weight: 650;

    line-height: 1.3;

}


/* ---------------------------------------------------------
   ASSIGNMENT STATUS
   --------------------------------------------------------- */

.subject-assignment-status {

    margin-left: auto;

    flex-shrink: 0;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 600;

}


.subject-assignment-card.selected
.subject-assignment-status {

    color: #2563eb;

}


/* ---------------------------------------------------------
   ASSIGNMENT SUMMARY
   --------------------------------------------------------- */

.subject-assignment-summary {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 16px;

    color: #64748b;

    font-size: 13px;

}


.subject-assignment-summary strong {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 26px;

    height: 26px;

    padding: 0 8px;

    border-radius: 999px;

    background: #dbeafe;

    color: #1d4ed8;

    font-size: 12px;

    font-weight: 700;

}


/* ---------------------------------------------------------
   KEYBOARD ACCESSIBILITY
   --------------------------------------------------------- */

.subject-assignment-card:focus-within {

    outline: 3px solid rgba(37, 99, 235, 0.15);

    outline-offset: 2px;

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .subject-assignment-grid {

        grid-template-columns: 1fr;

    }


    .subject-assignment-card {

        min-height: 76px;

        padding: 15px 16px;

    }

}
.admin-question-search {
    margin-bottom: 22px;
}

.admin-question-search label {
    display: block;

    margin-bottom: 8px;

    color: #374151;

    font-size: 13px;
    font-weight: 600;
}

.admin-question-search-row {
    display: flex;
    align-items: stretch;

    gap: 10px;
}

.admin-question-search-row input {
    flex: 1;

    min-width: 0;
    height: 42px;

    padding: 0 14px;

    border: 1px solid #d7dde5;
    border-radius: 7px;

    background: #ffffff;
    color: #172033;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.admin-question-search-row input::placeholder {
    color: #9aa3b1;
}

.admin-question-search-row input:hover {
    border-color: #b9c2cf;
}

.admin-question-search-row input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.admin-question-search-row .admin-primary-button {
    min-width: 92px;
}
.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
    padding: 0 2px;
}

.admin-table-header strong {
    color: #172033;

    font-size: 15px;
    font-weight: 700;
}

.admin-table-header span {
    color: #7a8494;

    font-size: 13px;
}


@media (max-width: 800px) {

    .admin-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page-header .admin-action-group {
        width: 100%;
    }

    .admin-filter-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .admin-question-search-row {
        flex-direction: column;
    }

    .admin-question-search-row .admin-primary-button {
        width: 100%;
    }

}


@media (max-width: 560px) {

    .admin-filter-container {
        padding: 20px;
    }

    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-action-group {
        width: 100%;
    }

    .admin-page-header .admin-action-group > * {
        flex: 1;
    }

    .admin-table-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .admin-pagination {
        gap: 8px;
    }

}

/* =========================================================
   QUESTION BANK PAGINATION
   ========================================================= */

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 18px;
    padding: 14px 0;

    border-top: 1px solid #e5e7eb;
}

.admin-pagination-info {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.admin-pagination-info strong {
    color: #334155;
    font-weight: 600;
}

.admin-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 13px;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    background: #ffffff;
    color: #334155;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.admin-pagination-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-pagination-button.disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: default;
    box-shadow: none;
}

.admin-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 12px;

    color: #64748b;

    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.admin-pagination-current strong {
    margin: 0 3px;

    color: #334155;
    font-weight: 600;
}
.admin-question-search-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 10px;
}

.admin-question-search-header label {
    display: block;

    margin-bottom: 4px;

    color: #334155;

    font-size: 13px;
    font-weight: 600;
}

.admin-question-search-header span {
    display: block;

    color: #64748b;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}
.student-exam-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.student-exam-card-header h3 {
    margin: 0.35rem 0 0;
}


/* =========================================================
   SESSION STATUS
   ========================================================= */

.student-session-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0.35rem 0.7rem;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.student-session-status-upcoming,
.student-session-status-scheduled {
    background: #eef2ff;
    color: #4338ca;
}

.student-session-status-available {
    background: #ecfdf3;
    color: #027a48;
}

.student-session-status-in-progress {
    background: #fff7ed;
    color: #c2410c;
}

.student-session-status-ended {
    background: #f2f4f7;
    color: #667085;
}


/* =========================================================
   EXAM SESSION INFORMATION
   ========================================================= */

.student-exam-session {
    margin-top: 1.25rem;
    padding-top: 1.1rem;

    border-top: 1px solid var(
        --border-color,
        #eaecf0
    );
}

.student-exam-session-heading {
    margin-bottom: 0.8rem;

    font-size: 0.75rem;
    font-weight: 700;

    color: var(
        --text-muted,
        #667085
    );

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.student-exam-session-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0.9rem 1.5rem;
}

.student-exam-session-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.student-exam-session-item span {
    font-size: 0.78rem;

    color: var(
        --text-muted,
        #667085
    );
}

.student-exam-session-item strong {
    font-size: 0.9rem;
    font-weight: 600;

    color: var(
        --text-color,
        #101828
    );
}


/* =========================================================
   SESSION NOTICE
   ========================================================= */

.student-exam-notice {
    display: inline-flex;
    align-items: center;

    min-height: 38px;

    font-size: 0.85rem;
    font-weight: 600;

    color: var(
        --text-muted,
        #667085
    );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

    .student-exam-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .student-exam-session-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   STUDENT RESULT CARDS
   ========================================================= */

.student-result-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0.35rem 0.7rem;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.student-result-status-passed {
    background: #ecfdf3;
    color: #027a48;
}

.student-result-status-failed {
    background: #fef3f2;
    color: #b42318;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

    .student-dashboard-section-results .student-result-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .student-dashboard-section-results .student-result-marks {
        text-align: left;
    }
}

/* =========================================================
   STUDENT DASHBOARD SECTIONS
   ========================================================= */

.student-dashboard-section {
    margin-top: 2rem;
}

.student-dashboard-section + .student-dashboard-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;

    border-top: 1px solid var(
        --border-color,
        #eaecf0
    );
}

.student-dashboard-section-header {
    margin-bottom: 1.5rem;
}

.student-dashboard-section-header h2 {
    margin: 0 0 0.35rem;

    font-size: 1.35rem;
    font-weight: 700;

    color: var(
        --text-color,
        #101828
    );
}

.student-dashboard-section-header p {
    margin: 0;

    color: var(
        --text-muted,
        #667085
    );
}
.admin-action-form {
    display: inline;
    margin: 0;
}

.admin-action-button-danger {
    color: #b42318;
    border-color: #fecdca;
    background: #fff;
}

.admin-action-button-danger:hover {
    color: #912018;
    border-color: #fda29b;
    background: #fef3f2;
}
.admin-form-row:has(#invigilator_id) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.admin-form-row:has(#invigilator_id) .admin-form-group {
    margin-bottom: 0;
}

.admin-form-row:has(#invigilator_id) > div:last-child {
    padding-top: 0;
}

.admin-form-row:has(#invigilator_id) .admin-primary-button {
    height: 42px;
    min-height: 42px;
}
.admin-info-message {
    margin-bottom: 24px;
    padding: 16px 18px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    color: #475569;
}

.admin-info-message strong {
    display: block;

    margin-bottom: 5px;

    color: #1e293b;

    font-size: 14px;
    font-weight: 600;
}

.admin-info-message p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}
.student-search-status {
    min-height: 20px;
    margin-top: 6px;

    color: #64748b;

    font-size: 13px;
}

.student-search-results {
    margin-top: 20px;
}

.student-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.student-results-header h3 {
    margin: 0;

    color: #1e293b;

    font-size: 16px;
    font-weight: 600;
}

.student-results-header p {
    margin: 4px 0 0;

    color: #64748b;

    font-size: 13px;
}

.student-select-all {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #475569;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}

.student-select-all input,
.student-result-checkbox {
    width: 16px;
    height: 16px;

    cursor: pointer;
}

.student-checkbox-column {
    width: 44px;
    text-align: center;
}

.student-selection-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 16px;
}

.student-selection-count {
    color: #64748b;

    font-size: 13px;
}

.student-selection-count strong {
    color: #1e293b;
}

.student-search-empty {
    margin-top: 20px;
}

.student-assignment-message {
    margin-top: 16px;
    padding: 12px 14px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 500;
}

.student-assignment-message-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.student-assignment-message-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

#add-selected-students:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 700px) {

    .student-results-header,
    .student-selection-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .student-selection-actions
    .admin-primary-button {
        width: 100%;
    }
}
.exam-session-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}


/* =========================================================
   SESSION TITLE
   ========================================================= */

.exam-session-title-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 6px;

    color: #64748b;

    font-size: 13px;
    font-weight: 500;
}

.exam-session-meta-divider {
    color: #cbd5e1;
}


/* =========================================================
   SESSION ACTIONS
   ========================================================= */

.exam-session-actions {
    display: flex;
    flex-direction: column;
}

.exam-session-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    padding: 4px 0;
}

.exam-session-action-item > div {
    flex: 1;
}

.exam-session-action-item strong {
    display: block;

    margin-bottom: 4px;

    color: #1e293b;

    font-size: 14px;
    font-weight: 600;
}

.exam-session-action-item p {
    max-width: 620px;

    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.55;
}

.exam-session-action-divider {
    height: 1px;

    margin: 20px 0;

    background: #e8edf3;
}


/* =========================================================
   ENDED STATUS
   ========================================================= */

.status-ended {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 4px 10px;

    border: 1px solid #d7dde5;
    border-radius: 999px;

    background: #f8fafc;

    color: #475569;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .exam-session-header-actions {
        justify-content: flex-start;
    }

    .exam-session-action-item {
        align-items: stretch;
        flex-direction: column;

        gap: 14px;
    }

    .exam-session-action-item form,
    .exam-session-action-item button {
        width: 100%;
    }
}
.admin-secondary-button-danger {
    border-color: #fecaca;
    background: #fff;
    color: #b91c1c;
}

.admin-secondary-button-danger:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}
/* =========================================================
   EXAM SESSION DANGER ZONE
   ========================================================= */

.exam-session-danger-zone {
    border-color: #fecaca;
}

.exam-session-danger-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.exam-session-danger-content > div {
    flex: 1;
}

.exam-session-danger-content h2 {
    margin: 0 0 5px;

    color: #991b1b;

    font-size: 16px;
    font-weight: 600;
}

.exam-session-danger-content p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 760px) {

    .exam-session-danger-content {
        align-items: stretch;
        flex-direction: column;

        gap: 16px;
    }

    .exam-session-danger-content form,
    .exam-session-danger-content button {
        width: 100%;
    }
}
.exam-filter-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(0, 1fr)
        minmax(0, .8fr)
        auto;

    gap: 16px;

    align-items: end;
}

.exam-filter-grid .admin-filter-group select {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;
}

.exam-filter-grid .admin-filter-group {
    min-width: 0;
}
.admin-filter-group input {
    width: 100%;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #d7dde5;
    border-radius: 7px;

    background: #fff;
    color: #263244;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.exam-filter-grid .admin-filter-group input {
    display: block;

    width: 100%;
    height: 40px;

    box-sizing: border-box;

    padding: 0 12px;

    border: 1px solid #d7dde5;
    border-radius: 7px;

    background-color: #fff;
    color: #263244;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}
.admin-filter-group input:focus {
    border-color: #aeb8c5;

    box-shadow:
        0 0 0 3px rgba(15, 23, 42, .05);
}

.admin-filter-group input::placeholder {
    color: #94a3b8;
}


.exam-filter-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 40px;

    white-space: nowrap;
}
.exam-filter-actions .admin-primary-button,
.exam-filter-actions .admin-filter-reset {
    margin: 0;

    align-self: center;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.admin-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 18px;
}

.admin-pagination-summary {
    color: #64748b;

    font-size: 13px;
}

.admin-pagination-summary strong {
    color: #334155;

    font-weight: 600;
}

.admin-pagination {
    display: flex;
    align-items: center;

    gap: 6px;
}

.admin-pagination-button,
.admin-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 0 11px;

    border: 1px solid #d7dde5;
    border-radius: 6px;

    background: #fff;
    color: #475569;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.admin-pagination-page {
    min-width: 34px;

    padding: 0 8px;
}

.admin-pagination-button:hover,
.admin-pagination-page:hover {
    border-color: #c3cad4;

    background: #f8fafc;

    color: #1e293b;
}

.admin-pagination-page-active {
    border-color: #cbd5e1;

    background: #f1f5f9;

    color: #0f172a;

    cursor: default;
}

.admin-pagination-ellipsis {
    padding: 0 4px;

    color: #94a3b8;
}


@media (max-width: 900px) {

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

    .admin-filter-actions {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .exam-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        grid-column: auto;

        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-actions .admin-primary-button,
    .admin-filter-actions .admin-filter-reset {
        width: 100%;
    }

    .admin-pagination-wrapper {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-pagination {
        flex-wrap: wrap;
    }
}
.exam-session-filter-grid {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(0, 1fr)
        minmax(0, .8fr)
        auto !important;

    gap: 16px !important;

    align-items: end;
}


.exam-session-filter-grid .admin-filter-group {
    min-width: 0;
}


.exam-session-filter-grid .admin-filter-group input,
.exam-session-filter-grid .admin-filter-group select {
    display: block;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;
}


.exam-session-filter-grid .admin-filter-actions {
    display: flex !important;

    flex-direction: row !important;

    align-items: center;
    justify-content: flex-start;

    gap: 10px !important;

    min-height: 40px;

    margin-top: 0 !important;
    padding-top: 0 !important;

    border-top: 0 !important;

    white-space: nowrap;
}


.exam-session-filter-grid .admin-filter-actions .admin-primary-button,
.exam-session-filter-grid .admin-filter-actions .admin-filter-reset {
    width: auto !important;

    flex: 0 0 auto;
}

@media (max-width: 900px) {

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

    .exam-session-filter-grid .admin-filter-actions {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .exam-session-filter-grid {
        grid-template-columns: 1fr;
    }

    .exam-session-filter-grid .admin-filter-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
    }

}
.student-exam-session-timezone {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.65;
}

/* ============================================================
   RESULTS REPORTING SUMMARY
   ============================================================ */

.admin-results-reporting-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}

.admin-results-reporting-card {
    position: relative;
    min-width: 0;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-results-reporting-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-results-reporting-value {
    margin-bottom: 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}

.admin-results-reporting-meta {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}


/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1100px) {

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

}

@media (max-width: 700px) {

    .admin-results-reporting-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-results-reporting-card {
        padding: 18px;
    }

    .admin-results-reporting-value {
        font-size: 25px;
    }

}
/* ============================================================
   RESULTS - PERFORMANCE BY EXAMINATION
   ============================================================ */

.admin-results-performance-section {
    margin: 0 0 28px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-results-performance-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-results-performance-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.admin-results-performance-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}


.admin-results-performance-table th {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-results-performance-table td {
    vertical-align: middle;
}

.admin-results-performance-table td:first-child {
    min-width: 220px;
}

.admin-results-performance-table td:nth-child(3),
.admin-results-performance-table td:nth-child(4),
.admin-results-performance-table td:nth-child(5),
.admin-results-performance-table td:nth-child(6),
.admin-results-performance-table td:nth-child(7) {
    white-space: nowrap;
}

.admin-results-performance-meta {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.4;
    color: #94a3b8;
}

@media (max-width: 900px) {

    .admin-results-performance-section {
        padding: 18px;
    }

    .admin-results-performance-header {
        margin-bottom: 15px;
    }

}
.admin-question-performance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 76px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.03em;
    text-transform: uppercase;

    white-space: nowrap;
}


/* Strong performance */

.admin-question-performance-strong {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}


/* Good performance */

.admin-question-performance-good {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}


/* Requires review */

.admin-question-performance-review {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}


/* Difficult question */

.admin-question-performance-difficult {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.admin-results-performance-table td {
    vertical-align: middle;
}

.admin-results-performance-table td:not(:first-child) {
    text-align: center;
}

.admin-results-performance-table th:not(:first-child) {
    text-align: center;
}

.admin-results-performance-table strong {
    line-height: 1.45;
}

.admin-results-performance-meta {
    margin-top: 4px;
}
/* =========================================================
   QUESTION PERFORMANCE ANALYSIS TABLE
   ========================================================= */

.admin-question-analysis-wrapper {
    width: 100%;
    overflow: hidden;
}

.admin-results-performance-table.admin-question-analysis-table {
    width: 100%;
    table-layout: fixed;
}


/* Column widths */

.admin-question-analysis-table th:nth-child(1) {
    width: 27%;
}

.admin-question-analysis-table th:nth-child(2) {
    width: 8.5%;
}

.admin-question-analysis-table th:nth-child(3) {
    width: 9.5%;
}

.admin-question-analysis-table th:nth-child(4) {
    width: 8%;
}

.admin-question-analysis-table th:nth-child(5) {
    width: 7%;
}

.admin-question-analysis-table th:nth-child(6) {
    width: 9%;
}

.admin-question-analysis-table th:nth-child(7) {
    width: 10.5%;
}

.admin-question-analysis-table th:nth-child(8) {
    width: 9.5%;
}

.admin-question-analysis-table th:nth-child(9) {
    width: 10.5%;
}

/* Compact cells */

.admin-question-analysis-table th,
.admin-question-analysis-table td {
    padding: 10px 7px;
}


/* Allow headings to wrap cleanly */

.admin-results-performance-table.admin-question-analysis-table th {
    white-space: normal;
    line-height: 1.2;
    font-size: 11px;
    padding-left: 5px;
    padding-right: 5px;
}


/* Remove the generic 220px first-column minimum */

.admin-results-performance-table.admin-question-analysis-table td:first-child {
    min-width: 0;
    width: auto;
    text-align: left;
}


/* Question text */

.admin-question-analysis-table td:first-child strong {
    display: block;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
}


/* Supporting question information */

.admin-question-analysis-table .admin-results-performance-meta {
    white-space: normal;
    line-height: 1.35;
}


/* Centre statistics */

.admin-question-analysis-table th:not(:first-child),
.admin-question-analysis-table td:not(:first-child) {
    text-align: center;
}


/* Smaller performance badge */

.admin-question-analysis-table .admin-question-performance-badge {
    min-width: 0;
    padding: 5px 8px;
    font-size: 10px;
}

.admin-question-analysis-table th:last-child,
.admin-question-analysis-table td:last-child {
    padding-left: 6px;
    padding-right: 10px;
}

.admin-question-analysis-table th:last-child {
    font-size: 10px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
/* =========================================================
   LECTURER RESULTS OVERVIEW
   ========================================================= */

.lecturer-results-overview {
    margin-bottom: 24px;
}
/* =========================================================
   LECTURER WIDE DASHBOARD CARD
   ========================================================= */

.lecturer-dashboard-card-wide {
    grid-column: 1 / -1;
}
/* =========================================================
   LECTURER DASHBOARD CARD SUBTITLE
   ========================================================= */

.lecturer-dashboard-card-subtitle {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
/* =========================================================
   EXAM LIST COLUMN WIDTHS
   ========================================================= */

.admin-exams-table {
    table-layout: fixed;
}

.admin-exams-table th:nth-child(1),
.admin-exams-table td:nth-child(1) {
    width: 20%;
}

.admin-exams-table th:nth-child(2),
.admin-exams-table td:nth-child(2) {
    width: 30%;
}

.admin-exams-table th:nth-child(3),
.admin-exams-table td:nth-child(3) {
    width: 12%;
}

.admin-exams-table th:nth-child(4),
.admin-exams-table td:nth-child(4) {
    width: 14%;
}

.admin-exams-table th:nth-child(5),
.admin-exams-table td:nth-child(5) {
    width: 24%;
}

.admin-exams-table .admin-table-actions-cell {
    white-space: nowrap;
}

.admin-exams-table .admin-action-group {
    flex-wrap: nowrap;
    gap: 6px;
}

/* =========================================================
   EXAM MANAGEMENT - TABLE ACTIONS
   ========================================================= */

.admin-exams-table .admin-table-actions-cell {
    white-space: nowrap;
}

.admin-exams-table .admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.admin-exams-table .admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 11px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #334155;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.admin-exams-table .admin-action-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;

    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);

    text-decoration: none;
}

/* =========================================================
   EXAM MANAGEMENT - FILTER PANEL
   ========================================================= */

.admin-exam-filter-panel {
    max-width: none;
    padding: 22px 30px 24px;
}

.admin-exam-filter-panel .admin-page-section-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.admin-exam-filter-panel .admin-filter-grid {
    padding-top: 0;
    border-top: 0;
}

.admin-exam-filter-panel .admin-filter-group {
    gap: 6px;
}

.admin-exam-filter-panel .admin-filter-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.invigilator-session-students {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.invigilator-session-students > span {
    display: inline-block;
    color: #6b7280;
}

.invigilator-session-students .invigilator-session-writing {
    color: #2563eb;
    font-weight: 700;
}
.invigilator-active-session {
    padding: 20px 24px;
}

.invigilator-active-session-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.invigilator-active-session-header strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.invigilator-active-session-header > div > span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 13px;
}

.invigilator-active-session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.invigilator-active-session-stats {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.invigilator-active-session-stats > div {
    min-width: 110px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.invigilator-active-session-stats strong {
    display: block;
    color: #111827;
    font-size: 18px;
    line-height: 1.2;
}

.invigilator-active-session-stats span {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.invigilator-active-session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.student-dashboard-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 30px;
}

.student-dashboard-stat {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.student-dashboard-stat-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.student-dashboard-stat-value {
    margin-top: 8px;
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

@media (max-width: 900px) {

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

@media (max-width: 520px) {

    .student-dashboard-overview {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Result Footer
   ========================================================= */

.student-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 0;
    padding: 20px 24px 24px;

    border-top: 1px solid #e5e7eb;
}

.student-result-confirmation {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #667085;

    font-size: 13px;
    font-weight: 500;
}

.student-result-confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ecfdf3;
    color: #15803d;

    font-size: 13px;
    font-weight: 700;
}

.student-result-actions {
    display: flex;
    justify-content: flex-end;

    padding: 0;
}

.student-result-actions .student-button {
    width: auto;
    min-width: 180px;
}

@media (max-width: 600px) {

    .student-result-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .student-result-actions {
        justify-content: stretch;
    }

    .student-result-actions .student-button {
        width: 100%;
    }
}
/* =========================================================
   STUDENT DASHBOARD - RESULT SCORE
   ========================================================= */

.student-dashboard-section-results .student-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.25rem;

    margin: 1.25rem 0;

    padding: 1rem 1.1rem;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #f9fafb;
}

.student-dashboard-section-results .student-result-percentage {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.student-dashboard-section-results .student-result-percentage strong {
    color: #101828;

    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.student-dashboard-section-results .student-result-percentage span {
    color: #667085;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.student-dashboard-section-results .student-result-marks {
    color: #344054;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    white-space: nowrap;
}

.student-dashboard-section-results .student-result-marks span {
    margin: 0 4px;

    color: #98a2b3;
}
/* =========================================================
   QUESTION CATEGORIES - FILTER PANEL
   ========================================================= */

.admin-category-filter-panel {
    max-width: none;
    padding: 22px 30px 24px;
}

.admin-category-filter-panel .admin-page-section-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.admin-category-filter-panel .admin-filter-grid {
    display: flex;
    align-items: flex-end;
    gap: 16px;

    padding-top: 0;
    border-top: 0;
}

.admin-category-filter-panel .admin-filter-group {
    width: 240px;
    gap: 6px;
}

.admin-category-filter-panel .admin-secondary-button {
    flex-shrink: 0;
}
/* =========================================================
   QUESTION CATEGORIES - TABLE ACTIONS
   ========================================================= */

.category-actions-cell .admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.category-actions-cell .admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 11px;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #334155;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.category-actions-cell .admin-action-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;

    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);

    text-decoration: none;
}

.category-actions-cell .admin-action-button.danger {
    color: #b42318;
    border-color: #fecaca;
}

.category-actions-cell .admin-action-button.danger:hover {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fca5a5;
}
/* =========================================================
   EXAM BLUEPRINT - QUESTION AVAILABILITY
   ========================================================= */

.blueprint-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.blueprint-category-heading {
    min-width: 0;
}

.blueprint-availability {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.blueprint-availability-total {
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.blueprint-availability-total strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.blueprint-availability-breakdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blueprint-availability-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 28px;
    padding: 0 9px;

    border: 1px solid #e2e8f0;
    border-radius: 6px;

    background: #f8fafc;
    color: #64748b;

    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.blueprint-availability-breakdown strong {
    color: #334155;
    font-weight: 700;
}

/* =========================================================
   EXAM BLUEPRINT SUMMARY TABLE
   ========================================================= */

.exam-blueprint-summary-table th:not(:first-child),
.exam-blueprint-summary-table td:not(:first-child) {
    text-align: center;
}

.exam-blueprint-summary-table tfoot {
    background: #f8fafc;
}

.exam-blueprint-summary-table tfoot td {
    padding-top: 14px;
    padding-bottom: 14px;

    border-top: 2px solid #cbd5e1;

    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.exam-blueprint-summary-table tfoot .exam-blueprint-total-label {
    padding-left: 16px;

    color: #334155;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0;
    text-transform: none;
}

.admin-question-subject {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-question-subject-code {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #334155;
}

.admin-question-subject-name {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
    color: #94a3b8;
}

.auth-verification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 14px;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 24px;
    line-height: 1;
}

.auth-verification-email {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.auth-verification-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.auth-verification-email strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.auth-verification-help {
    margin-bottom: 22px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.auth-verification-help p {
    margin: 0;
}

.auth-verification-help p + p {
    margin-top: 10px;
}

.auth-verification-form {
    margin-bottom: 18px;
}

.auth-verification-button {
    width: 100%;
}

.auth-verification-button:disabled {
    cursor: wait;
    opacity: .7;
}

.auth-verification-note {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.auth-verification-note strong {
    color: #475569;
}

.auth-verification-footer {
    margin-top: 20px;
    text-align: center;
}

.auth-verification-login-link {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-verification-login-link:hover {
    color: #334155;
    text-decoration: underline;
}
.auth-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.auth-verification-card {
    width: 100%;
    max-width: 560px;
    padding: 32px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.auth-verification-card .auth-card-header {
    text-align: center;
}

.auth-verification-card .auth-card-header h1 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-verification-card .auth-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.auth-verification-card .auth-card-body {
    margin-top: 28px;
}

.auth-verification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 14px;
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 24px;
    line-height: 1;
}

.auth-verification-email {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.auth-verification-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.auth-verification-email strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.auth-verification-help {
    margin-bottom: 22px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.auth-verification-help p {
    margin: 0;
}

.auth-verification-help p + p {
    margin-top: 10px;
}

.auth-verification-button {
    width: 100%;
}

.auth-verification-footer {
    margin-top: 22px;
    text-align: center;
}

.auth-verification-login-link {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-verification-login-link:hover {
    color: #334155;
    text-decoration: underline;
}

.admin-modal-backdrop[hidden] {
    display: none;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .45);
}

.admin-modal {
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 20px 25px -5px rgba(15, 23, 42, .10),
        0 8px 10px -6px rgba(15, 23, 42, .10);
}

.admin-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-modal-header h2 {
    margin: 0 0 6px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.admin-modal-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.admin-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.admin-modal-body {
    padding: 24px;
}

.admin-verification-user {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-verification-user-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-verification-user strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.admin-verification-user span:last-child {
    color: #64748b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-verification-warning {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.admin-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px 24px;
}

.admin-modal-footer form {
    margin: 0;
}

.admin-modal-open {
    overflow: hidden;
}

#verification-modal-submit:disabled {
    cursor: wait;
    opacity: .7;
}
/* =========================================================
   QUESTION PREVIEW
   ========================================================= */

.question-preview-filter {
    margin-bottom: 24px;
    padding: 22px;
}

.question-preview-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(220px, 1fr)
        auto;
    gap: 18px;
    align-items: end;
}

.question-preview-filter-grid .admin-form-group {
    margin-bottom: 0;
}

.question-preview-filter-action {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1px;
}

.question-preview-filter-action .admin-primary-button {
    height: 42px;
    min-height: 42px;
    margin: 0;
}

.question-preview-filter-action button {
    min-height: 40px;
    white-space: nowrap;
}


.question-preview-filter select {
    width: 100%;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 38px 0 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #334155;
}

.question-preview-filter select option {
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
}

.question-preview-filter .admin-form-group label {
    display: block;
    margin-bottom: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
}

/* =========================================================
   PREVIEW CONTAINER
   ========================================================= */

.question-preview-container {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.question-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.question-preview-position {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.question-preview-position strong {
    color: #1e293b;
    font-weight: 700;
}

.question-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-preview-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* =========================================================
   PREVIEW DIFFICULTY
   ========================================================= */

#preview-question-difficulty.easy {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

#preview-question-difficulty.medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

#preview-question-difficulty.hard {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}


/* =========================================================
   TOP NEXT
   ========================================================= */

.question-preview-top-next {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================================================
   QUESTION AREA
   ========================================================= */

.question-preview-stage {
    padding: 32px;
}

.question-preview-question[hidden] {
    display: none;
}

.question-preview-text {
    margin-bottom: 26px;
    color: #1e293b;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}


/* =========================================================
   QUESTION IMAGE
   ========================================================= */

.question-preview-image {
    margin: 0 0 28px;
    text-align: center;
}

.question-preview-image img {
    display: inline-block;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}


/* =========================================================
   MCQ / TRUE FALSE OPTIONS
   ========================================================= */

.question-preview-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-preview-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.question-preview-option input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.question-preview-option span {
    flex: 1;
}



/* =========================================================
   SHORT / LONG ANSWERS
   ========================================================= */

.question-preview-answer input,
.question-preview-answer textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font: inherit;
}

.question-preview-answer input {
    min-height: 42px;
}

.question-preview-answer textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   ADMIN ANSWER PANEL
   ========================================================= */

.question-preview-answer-panel {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.question-preview-answer-content {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #d8b4fe;
    border-radius: 8px;
    background: #faf5ff;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.question-preview-answer-content[hidden] {
    display: none;
}

.question-preview-answer-heading {
    margin-bottom: 10px;
    color: #6b21a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.question-preview-answer-content ul {
    margin: 0;
    padding-left: 20px;
}

.question-preview-answer-content p {
    margin: 0;
}

.question-preview-correct-matches {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.question-preview-correct-matches span {
    margin: 0 8px;
    color: #9333ea;
}

.question-preview-explanation {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e9d5ff;
}

.question-preview-explanation strong {
    display: block;
    margin-bottom: 5px;
    color: #6b21a8;
}


/* =========================================================
   PREVIOUS / NEXT
   ========================================================= */

.question-preview-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.question-preview-top-next:disabled {
    cursor: not-allowed;
    opacity: .45;
}
.question-preview-navigation button:disabled {
    cursor: not-allowed;
    opacity: .45;
}


/* =========================================================
   QUESTION NAVIGATOR
   ========================================================= */

.question-preview-navigator {
    padding: 22px 24px 26px;
    border-top: 1px solid #e2e8f0;
}

.question-preview-navigator-title {
    margin-bottom: 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.question-preview-navigator-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.question-preview-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.question-preview-number:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.question-preview-number.active {
    border-color: #7e22ce;
    background: #7e22ce;
    color: #ffffff;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.question-preview-empty {
    padding: 38px 24px;
    text-align: center;
}

.question-preview-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 15px;
}

.question-preview-empty p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .question-preview-filter-grid {
        grid-template-columns: 1fr;
    }

    .question-preview-filter-action button {
        width: 100%;
    }

    .question-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .question-preview-stage {
        padding: 22px 18px;
    }


}

/* =========================================================
   GLOBAL FORM SELECT TYPOGRAPHY
   ========================================================= */

.admin-select {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #263244;
}

.admin-select option {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #263244;
}

/* =========================================================
   CATEGORY PERFORMANCE
   ========================================================= */

.admin-category-performance-wrapper {
    overflow-x: auto;
}

.admin-category-performance-table {
    width: 100%;
    min-width: 850px;
}

.admin-category-performance-table th,
.admin-category-performance-table td {
    white-space: nowrap;
}

.admin-category-performance-table th:first-child,
.admin-category-performance-table td:first-child {
    min-width: 190px;
}

.admin-category-performance-average {
    min-width: 145px;
}
/* =========================================================
   CERTIFICATE DESIGNER
   ========================================================= */

.certificate-designer-workspace {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.certificate-designer-controls {
    min-width: 0;
}

.certificate-designer-preview-panel {
    min-width: 0;
}

.certificate-designer-section {
    margin-bottom: 20px;
}

.certificate-designer-section:last-child {
    margin-bottom: 0;
}

.certificate-designer-section-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.certificate-designer-issuer {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
}

.certificate-designer-issuer strong {
    display: block;
    margin-bottom: 3px;
    color: #1e293b;
}

.certificate-designer-issuer span {
    color: #64748b;
    font-size: 12px;
}

.certificate-designer-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.certificate-designer-preview-toolbar h2 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.certificate-designer-preview-toolbar span {
    color: #64748b;
    font-size: 12px;
}

.certificate-designer-stage {
    display: flex;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #eef2f7;
}

.certificate-preview {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.certificate-preview.landscape {
    aspect-ratio: 297 / 210;
}

.certificate-preview.portrait {
    max-width: 640px;
    aspect-ratio: 210 / 297;
}

/*
 * Certificate decorative borders.
 *
 * Border 1 occupies the original 4% certificate
 * frame. Additional borders are nested inward
 * without changing the certificate content
 * coordinate system.
 */
.certificate-border-layer {
    position: absolute;
    box-sizing: border-box;
    pointer-events: none;
    border-style: solid;
    z-index: 1;
}

.certificate-border-1 {
    inset: 2%;
}

.certificate-border-2,
.certificate-border-3 {
    display: none;
}

.certificate-preview-inner {
    position: absolute;
    inset: 4%;
    box-sizing: border-box;
    padding: 0;
    text-align: center;
}

.certificate-preview-header {
    position: absolute;
    top: 5%;
    left: 7%;
    right: 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.certificate-preview-content {
    position: absolute;
    top: 22%;
    left: 7%;
    right: 7%;
    bottom: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 0;
}

.certificate-preview-bottom {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 4%;
    min-height: 14%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.certificate-preview-logo {
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
}

.certificate-preview-organization {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.certificate-preview-heading {
    margin: 4px 0 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 700;
    line-height: 1;
}

.certificate-preview-subheading {
    margin: 0;
    font-size: clamp(10px, 1.2vw, 14px);
}

.certificate-preview-student {
    margin: 8px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1;
}

.certificate-preview-achievement {
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(9px, 1.1vw, 13px);
    line-height: 1.35;
}

.certificate-preview-exam {
    margin-top: 6px;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 700;
    line-height: 1.1;
}

.certificate-preview-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin-top: 6px;
    font-size: clamp(8px, 0.8vw, 10px);
}

.certificate-preview-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 70%;
    margin-top: 0px;
    margin-bottom: 5px;
}

.certificate-preview-signature {
    min-width: 0;
    padding-top: 8px;
    border-top: 1px solid currentColor;
    font-size: 10px;
}

.certificate-preview-signature strong {
    display: block;
    font-size: 11px;
}

.certificate-preview-footer {
    margin-top: 8px;
    font-size: 8px;
    line-height: 1.3;
}

/* =========================================================
   Certificate Designer - Display Options
   ========================================================= */

.certificate-display-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.certificate-display-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 14px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.certificate-display-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.certificate-display-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.certificate-display-option-text strong {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.certificate-display-option-text small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}


/*
 * Toggle
 */

.certificate-toggle {
    position: relative;
    display: inline-block;

    width: 44px;
    height: 24px;

    flex: 0 0 44px;
}

.certificate-toggle input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.certificate-toggle-slider {
    position: absolute;
    inset: 0;

    background: #cbd5e1;

    border-radius: 999px;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.certificate-toggle-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.18);

    transition: transform 0.2s ease;
}


/*
 * Checked
 */

.certificate-toggle input:checked +
.certificate-toggle-slider {
    background: #7e0c0c;
}

.certificate-toggle input:checked +
.certificate-toggle-slider::before {
    transform: translateX(20px);
}


/*
 * Keyboard focus
 */

.certificate-toggle input:focus-visible +
.certificate-toggle-slider {
    box-shadow:
        0 0 0 3px rgba(126, 12, 12, 0.18);
}


/*
 * Disabled
 */

.certificate-toggle input:disabled +
.certificate-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1050px) {

    .certificate-designer-workspace {
        grid-template-columns: 1fr;
    }

    .certificate-designer-controls {
        order: 1;
    }

    .certificate-designer-preview-panel {
        order: 2;
    }
}

@media (max-width: 650px) {

    .certificate-designer-stage {
        padding: 12px;
    }

    .certificate-preview-inner {
        inset: 8px;
        padding: 4%;
    }

    .certificate-preview-signatures {
        gap: 20px;
        width: 85%;
    }
}

/* =========================================================
   CERTIFICATE DESIGN ELEMENTS
   ========================================================= */

.certificate-design-element {
    position: absolute;
    box-sizing: border-box;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    user-select: none;
    z-index: 2;
}

/*
 * QR coordinates represent the centre of the
 * square in both the Designer and PDF.
 */
.certificate-design-element[data-element="qr_code"] {
    transform: translate(-50%, -50%);
}

/*
 * Certificate signature block.
 *
 * The element Y coordinate represents the
 * signing-line position.
 *
 * The handwritten signature is positioned
 * above that line. The printed signer details
 * are positioned below it.
 */
.certificate-design-element[data-element="signature_1"],
.certificate-design-element[data-element="signature_2"] {
    overflow: visible;
}


/*
 * Handwritten signature area.
 *
 * The bottom of this area is anchored to the
 * signature line. Increasing the image height
 * therefore makes the signature grow upward
 * without moving the line.
 */
.certificate-signature-signing-area {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


/*
 * Handwritten signature image.
 */
.certificate-signature-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 52px;
    margin: 0 auto;
    object-fit: contain;
}

.certificate-signature-name {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
}

.certificate-signature-title {
    margin-top: 0.5mm;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.2;
}

/*
 * Signing line.
 *
 * This is the baseline represented by the
 * signature element's Y coordinate.
 */
.certificate-signature-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    border-top: 1px solid currentColor;
}


/*
 * Printed signer information below the line.
 */
.certificate-signature-details {
    position: absolute;
    left: 0;
    top: 3px;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.certificate-signature-name {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
}

.certificate-signature-title {
    margin-top: 2px;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.2;
}

.certificate-design-element:hover {
    outline: 1px dashed #94a3b8;
    outline-offset: 4px;
}

.certificate-design-element.selected {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    z-index: 10;
}

.certificate-design-element img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.certificate-design-element[data-element="heading"],
.certificate-design-element[data-element="student_name"] {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.certificate-design-element[data-element="organization"],
.certificate-design-element[data-element="exam_title"] {
    font-weight: 700;
}

.certificate-design-element[data-element="metadata"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
}

.certificate-design-element[data-element="signature_1"],
.certificate-design-element[data-element="signature_2"] {
    padding-top: 0;
}

.certificate-design-element[data-element="footer"] {
    line-height: 1.3;
}
/* Certificate element selection */

.certificate-design-element {
    cursor: pointer;
    transition:
        outline-color 0.15s ease,
        box-shadow 0.15s ease;
}

.certificate-design-element:hover {
    outline: 1px dashed #94a3b8;
    outline-offset: 3px;
}

.certificate-design-element.selected {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.12);
    z-index: 20;
}

.certificate-layout-controls output {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}

.certificate-layout-controls .is-disabled {
    opacity: 0.45;
}

.certificate-design-element {
    cursor: grab;
}

.certificate-design-element.dragging {
    cursor: grabbing;
    z-index: 30;
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}

/* =========================================================
   Certificate Designer - QR Placeholder
   ========================================================= */

.certificate-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-qr-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 8%;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d1d5db;
    border-radius: 4px;

    color: #111827;
}

.certificate-qr-placeholder-grid {
    width: 78%;
    aspect-ratio: 1 / 1;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);

    gap: 3px;

    padding: 3px;

    background: #ffffff;
}

.certificate-qr-placeholder-grid span {
    background: #111827;
}

.certificate-qr-placeholder-grid span:nth-child(2),
.certificate-qr-placeholder-grid span:nth-child(4),
.certificate-qr-placeholder-grid span:nth-child(6),
.certificate-qr-placeholder-grid span:nth-child(8) {
    background: #ffffff;
}

.certificate-qr-placeholder small {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}
/* =========================================================
   Public Certificate Verification
   ========================================================= */

.public-page {
    margin: 0;
    min-height: 100vh;
    background: #f3f4f6;
    color: #1f2937;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.public-main {
    min-height: 100vh;
}

.certificate-verification-page {
    --verification-primary: #1f2937;
    --verification-secondary: #6b7280;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    box-sizing: border-box;

    padding: 48px 20px;
}

.certificate-verification-card {
    width: 100%;
    max-width: 820px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-top: 5px solid
        var(--verification-secondary);

    border-radius: 12px;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.08);

    overflow: hidden;

    padding: 36px;
}


/* =========================================================
   Organization
   ========================================================= */

.certificate-verification-organization {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 28px;

    text-align: center;
}

.certificate-verification-logo {
    display: block;

    max-width: 180px;
    max-height: 70px;

    width: auto;
    height: auto;

    object-fit: contain;
}

.certificate-verification-org-name {
    color:
        var(--verification-primary);

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   Header
   ========================================================= */

.certificate-verification-header {
    text-align: center;

    margin-bottom: 28px;
}

.certificate-verification-eyebrow {
    margin-bottom: 8px;

    color:
        var(--verification-secondary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.certificate-verification-header h1 {
    margin:
        0 0 10px;

    color:
        var(--verification-primary);

    font-size: 32px;
    line-height: 1.2;
}

.certificate-verification-header p {
    margin: 0;

    color: #64748b;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   Verification Status
   ========================================================= */

.certificate-verification-status {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 28px;

    padding: 18px 20px;

    border: 1px solid transparent;
    border-radius: 10px;
}

.certificate-verification-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    font-size: 24px;
    font-weight: 700;
}

.certificate-verification-status h2 {
    margin:
        0 0 4px;

    font-size: 19px;
}

.certificate-verification-status p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;
}


/* Valid */

.certificate-verification-valid {
    background: #f0fdf4;
    border-color: #bbf7d0;

    color: #166534;
}

.certificate-verification-valid
.certificate-verification-status-icon {
    background: #dcfce7;
    color: #15803d;
}


/* Expired */

.certificate-verification-expired,
.certificate-verification-superseded {
    background: #fffbeb;
    border-color: #fde68a;

    color: #92400e;
}

.certificate-verification-expired
.certificate-verification-status-icon,
.certificate-verification-superseded
.certificate-verification-status-icon {
    background: #fef3c7;
    color: #b45309;
}


/* Revoked / Invalid */

.certificate-verification-revoked,
.certificate-verification-invalid {
    background: #fef2f2;
    border-color: #fecaca;

    color: #991b1b;
}

.certificate-verification-revoked
.certificate-verification-status-icon,
.certificate-verification-invalid
.certificate-verification-status-icon {
    background: #fee2e2;
    color: #b91c1c;
}


/* =========================================================
   Certificate Details
   ========================================================= */

.certificate-verification-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    overflow: hidden;

    margin-bottom: 24px;

    background: #e5e7eb;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.certificate-verification-detail {
    min-width: 0;

    padding: 16px 18px;

    background: #ffffff;
}

.certificate-verification-detail-wide {
    grid-column: 1 / -1;
}

.certificate-verification-detail span {
    display: block;

    margin-bottom: 6px;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}

.certificate-verification-detail strong {
    display: block;

    color: #1f2937;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =========================================================
   Verification Confirmation
   ========================================================= */

.certificate-verification-confirmation {
    padding: 15px 18px;

    background: #f8fafc;

    border-left:
        3px solid
        var(--verification-secondary);

    border-radius: 4px;

    color: #475569;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   Not Found Message
   ========================================================= */

.certificate-verification-message {
    padding: 16px 18px;

    background: #f8fafc;

    border-radius: 8px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   Footer
   ========================================================= */

.certificate-verification-footer {
    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid #e5e7eb;

    color: #64748b;

    font-size: 12px;
    line-height: 1.7;

    text-align: center;
}

.certificate-verification-footer a {
    color:
        var(--verification-secondary);

    text-decoration: none;
}

.certificate-verification-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {

    .certificate-verification-page {
        padding: 20px 12px;
    }

    .certificate-verification-card {
        padding: 24px 18px;

        border-radius: 10px;
    }

    .certificate-verification-header h1 {
        font-size: 26px;
    }

    .certificate-verification-details {
        grid-template-columns: 1fr;
    }

    .certificate-verification-detail-wide {
        grid-column: auto;
    }

    .certificate-verification-status {
        align-items: flex-start;

        padding: 16px;
    }

    .certificate-verification-org-name {
        font-size: 16px;
    }
}

/* =========================================================
   Issued Certificate Preview
   ========================================================= */

.certificate-issued-preview-page .certificate-design-element {
    cursor: default;
    user-select: text;
    transition: none;
}

.certificate-issued-preview-page .certificate-design-element:hover {
    outline: none;
    box-shadow: none;
}

.certificate-issued-preview-page .certificate-design-element.selected {
    outline: none;
    box-shadow: none;
}

.certificate-issued-preview-page .certificate-qr-code {
    cursor: default;
    user-select: none;
}

.certificate-issued-preview-page .certificate-qr-code img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
/* =========================================================
   ISSUED CERTIFICATES - STATUS
   ========================================================= */

.admin-certificates-table .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 76px;
    min-height: 28px;
    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


/* Valid */

.admin-certificates-table .status-valid {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}


/* Expired */

.admin-certificates-table .status-expired {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}


/* Revoked */

.admin-certificates-table .status-revoked {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}


/* Superseded */

.admin-certificates-table .status-superseded {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}
/* =========================================================
   CERTIFICATE RECORD
   ========================================================= */

.certificate-record-page {
    width: 100%;
}


/* =========================================================
   CERTIFICATE SUMMARY
   ========================================================= */

.certificate-record-summary {
    padding: 0;
    overflow: hidden;
}

.certificate-record-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    padding: 26px 28px;

    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.certificate-record-eyebrow,
.certificate-record-label {
    display: block;

    margin-bottom: 6px;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.certificate-record-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.certificate-record-heading p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.5;
}

/*
 * =========================================================
 * CERTIFICATE RECORD HEADER
 * =========================================================
 */

.certificate-record-page .admin-page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.certificate-record-page .admin-page-header > div:first-child {
    width: 100%;
}

.certificate-record-page .admin-action-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    width: 100%;
}

.certificate-record-page .admin-action-group > a,
.certificate-record-page .admin-action-group > form,
.certificate-record-page .admin-action-group > form > button {
    width: 100%;
    box-sizing: border-box;
}

.certificate-record-page .admin-action-group > a,
.certificate-record-page .admin-action-group > form > button {
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    white-space: nowrap;
}

.certificate-record-page .admin-action-group > form {
    display: block !important;
    margin: 0;
}


/*
 * Certificate header responsiveness
 */

@media (max-width: 900px) {

    .certificate-record-page .admin-action-group {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 560px) {

    .certificate-record-page .admin-action-group {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   CERTIFICATE STATUS
   ========================================================= */

.certificate-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 84px;
    min-height: 30px;
    padding: 0 12px;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.certificate-status-valid {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.certificate-status-expired {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.certificate-status-revoked {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.certificate-status-superseded {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}


/* =========================================================
   PRIMARY CERTIFICATE INFORMATION
   ========================================================= */

.certificate-record-primary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 0;

    padding: 0 28px;
}

.certificate-record-primary-grid
.certificate-record-field {
    min-width: 0;
    padding: 24px 22px 24px 0;
}

.certificate-record-primary-grid
.certificate-record-field:not(:last-child) {
    margin-right: 22px;
    border-right: 1px solid #e2e8f0;
}

.certificate-record-field strong {
    display: block;

    color: #1e293b;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

.certificate-record-score {
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}


/* =========================================================
   DETAILS GRID
   ========================================================= */

.certificate-record-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.certificate-record-grid >
.admin-card {
    margin-bottom: 24px;
}

.certificate-record-card {
    min-width: 0;
}


/* =========================================================
   DETAIL ROWS
   ========================================================= */

.certificate-detail-list {
    border-top: 1px solid #e2e8f0;
}

.certificate-detail-row {
    display: grid;

    grid-template-columns:
        minmax(130px, 0.8fr)
        minmax(0, 1.5fr);

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #f1f5f9;
}

.certificate-detail-row:last-child {
    border-bottom: 0;
}

.certificate-detail-row > span {
    color: #64748b;

    font-size: 13px;
    font-weight: 500;
}

.certificate-detail-row > strong {
    color: #1e293b;

    font-size: 13px;
    font-weight: 600;

    text-align: right;

    overflow-wrap: anywhere;
}


/* =========================================================
   VERIFICATION
   ========================================================= */

.certificate-verification-card {
    overflow: hidden;
}

.certificate-verification-token {
    padding: 16px 18px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
}

.certificate-verification-token code {
    display: block;

    width: 100%;

    color: #334155;

    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
    word-break: break-all;
}


/* =========================================================
   REVOKED CERTIFICATE
   ========================================================= */

.certificate-revoked-card {
    border-color: #fecaca;
}

.certificate-revoked-card
.admin-card-header {
    padding-bottom: 16px;

    border-bottom: 1px solid #fee2e2;
}

.certificate-revoked-card
.admin-card-header h2 {
    color: #991b1b;
}


/* =========================================================
   CERTIFICATE DANGER ZONE
   ========================================================= */

.certificate-danger-card {
    border-color: #fecaca;
    background: #fff;
}

.certificate-danger-card
.admin-card-header {
    margin-bottom: 22px;
    padding-bottom: 18px;

    border-bottom: 1px solid #fee2e2;
}

.certificate-danger-card
.admin-card-header h2 {
    color: #991b1b;
}

.certificate-danger-card
.admin-card-header p {
    max-width: 720px;
}

.certificate-danger-card
.admin-form-group {
    max-width: 760px;
}

.certificate-danger-card textarea {
    width: 100%;
    min-height: 110px;

    box-sizing: border-box;

    resize: vertical;
}

.certificate-danger-card
.admin-form-actions {
    display: flex;
    justify-content: flex-end;

    max-width: 760px;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #f1f5f9;
}


/* =========================================================
   CERTIFICATE RECORD RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

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

    .certificate-record-primary-grid
    .certificate-record-field {
        margin-right: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid #f1f5f9;
    }


}



@media (max-width: 760px) {

    .certificate-record-heading {
        flex-direction: column;
    }

    .certificate-record-primary-grid,
    .certificate-record-grid {
        grid-template-columns: 1fr;
    }

    .certificate-record-primary-grid {
        padding: 0 22px;
    }

    .certificate-record-primary-grid
    .certificate-record-field {
        padding: 18px 0;
    }

    .certificate-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .certificate-detail-row > strong {
        text-align: left;
    }

}
/* =========================================================
   CERTIFICATE REVOCATION MODAL
   ========================================================= */

.certificate-revoke-modal
.admin-modal-header h2 {
    color: #991b1b;
}

.certificate-revoke-modal-reason {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 16px;
    padding: 14px 16px;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    background: #f8fafc;
}

.certificate-revoke-modal-reason > span {
    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.certificate-revoke-modal-reason > strong {
    color: #334155;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.certificate-revoke-modal-warning {
    margin: 16px 0 0;
    padding: 12px 14px;

    color: #991b1b;

    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 7px;

    font-size: 13px;
    line-height: 1.55;
}

.certificate-revoke-modal-warning strong {
    display: block;
    margin-bottom: 2px;
}

#certificate-revoke-modal-confirm:disabled {
    cursor: wait;
    opacity: .7;
}
/* =========================================================
   CERTIFICATE OVERVIEW
   ========================================================= */

.certificate-overview-stats {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.certificate-overview-stat {
    position: relative;
    overflow: hidden;

    min-width: 0;
    padding: 20px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04);
}

.certificate-overview-stat::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background: #64748b;

    content: "";
}

.certificate-overview-stat-valid::before {
    background: #16a34a;
}

.certificate-overview-stat-expired::before {
    background: #d97706;
}

.certificate-overview-stat-revoked::before {
    background: #dc2626;
}

.certificate-overview-stat-label {
    display: block;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .05em;
    text-transform: uppercase;
}

.certificate-overview-stat-value {
    display: block;

    margin-top: 10px;

    color: #1e293b;

    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.certificate-overview-stat-meta {
    display: block;

    margin-top: 8px;

    color: #94a3b8;

    font-size: 12px;
    line-height: 1.4;
}


/* Recent certificates */

.certificate-overview-table-meta {
    margin-top: 3px;

    color: #64748b;

    font-size: 11px;
    font-weight: 500;
}


/* Configuration */

.certificate-overview-config-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.certificate-overview-config-card {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.certificate-overview-config-card > div {
    min-width: 0;
}

.certificate-overview-config-label {
    display: block;

    color: #64748b;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.certificate-overview-config-value {
    display: block;

    margin-top: 8px;

    color: #1e293b;

    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.certificate-overview-config-card p {
    max-width: 440px;

    margin: 10px 0 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}


/* Responsive */

@media (max-width: 1100px) {

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

}

@media (max-width: 760px) {

    .certificate-overview-stats,
    .certificate-overview-config-grid {
        grid-template-columns: 1fr;
    }

    .certificate-overview-config-card {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   CERTIFICATE MANAGEMENT LISTS
   ========================================================= */

.certificate-management-list-page .admin-card {
    overflow: hidden;
}

.certificate-management-list-page
.admin-card
.admin-table-container {
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px;
}

.certificate-management-list-page
.admin-card
.admin-table {
    margin-bottom: 0;
}

.certificate-management-list-page
.admin-card
.admin-table th:first-child,
.certificate-management-list-page
.admin-card
.admin-table td:first-child {
    padding-left: 24px;
}

.certificate-management-list-page
.admin-card
.admin-table th:last-child,
.certificate-management-list-page
.admin-card
.admin-table td:last-child {
    padding-right: 24px;
}

.certificate-management-meta {
    margin-top: 4px;

    color: #64748b;

    font-size: 12px;
    line-height: 1.4;
}

.certificate-management-muted {
    color: #94a3b8;
}

.certificate-prefix-badge {
    display: inline-flex;

    align-items: center;

    padding: 3px 8px;

    color: #475569;
    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .04em;
}

.certificate-status-badge {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;
}

.certificate-status-active {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.certificate-status-inactive {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.certificate-management-actions {
    flex-wrap: nowrap;
}
/* =========================================================
   CERTIFICATE TEMPLATE FILTERS
   ========================================================= */

.certificate-management-list-page
.exam-filter-grid {
    grid-template-columns:
        minmax(160px, 0.75fr)
        minmax(180px, 0.9fr)
        minmax(240px, 1.25fr)
        max-content;

    column-gap: 16px;
}

.certificate-management-list-page
.admin-filter-actions {
    display: flex;

    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: row;

    gap: 8px;

    min-width: 0;

    white-space: nowrap;
}

.certificate-management-list-page
.admin-filter-actions
.admin-primary-button,
.certificate-management-list-page
.admin-filter-actions
.admin-action-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: auto;
    height: 42px;

    margin: 0;

    box-sizing: border-box;
    white-space: nowrap;
}

@media (max-width: 1000px) {

    .certificate-management-list-page
    .exam-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .certificate-management-list-page
    .exam-filter-grid {
        grid-template-columns: 1fr;
    }

    .certificate-management-list-page
    .admin-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

}
/*
 * Certificate Designer actions
 */
.certificate-designer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.certificate-designer-actions .admin-primary-button,
.certificate-designer-actions .admin-action-button {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
/*
 * Certificate design Copy / Clone modals
 */
.certificate-design-transfer-modal {
    height: auto;
    min-height: 0;
}

.certificate-design-transfer-modal .admin-modal-body {
    padding-bottom: 20px;
}

.certificate-design-transfer-modal .admin-form-group {
    margin-bottom: 18px;
}

.certificate-design-transfer-modal
.admin-verification-warning {
    margin-top: 0;
    margin-bottom: 0;
}

.certificate-design-transfer-modal
.admin-modal-footer {
    margin-top: 0;
}

.certificate-design-transfer-modal
.admin-verification-user
+ .admin-form-group {
    margin-top: 18px;
}
/*
 * Initial certificate design source
 */
#initial-design-source-group[hidden] {
    display: none !important;
}
/*
 * ============================================================
 * Certificate Template — Initial Design
 * ============================================================
 */

.certificate-design-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}


/*
 * Selectable design card
 */
.certificate-design-choice {
    position: relative;
    display: block;
    min-height: 96px;
    padding: 18px 52px 18px 18px;
    margin: 0;

    border: 1px solid #d9dee8;
    border-radius: 8px;

    background: #ffffff;
    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}


.certificate-design-choice:hover {
    border-color: #aeb7c6;
}


/*
 * IMPORTANT:
 * Override the normal admin form input styles.
 */
.certificate-design-choice
input[type="radio"] {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;

    margin: 0 !important;
    padding: 0 !important;

    display: block;

    accent-color: #5b35f5;

    cursor: pointer;
}


/*
 * Selected card
 */
.certificate-design-choice:has(
    input[type="radio"]:checked
) {
    border-color: #5b35f5;
    background: #faf9ff;
    box-shadow: 0 0 0 1px #5b35f5;
}


/*
 * Card text
 */
.certificate-design-choice-content {
    display: block;
}


.certificate-design-choice-content strong {
    display: block;

    margin: 0 0 6px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #1f2937;
}


.certificate-design-choice-content > span {
    display: block;

    margin: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    color: #667085;
}


/*
 * =========================================================
 * CERTIFICATE EMAIL DELIVERY STATUS
 * =========================================================
 */

.certificate-delivery-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/*
 * Successful delivery
 */
.certificate-delivery-status-sent {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}


/*
 * Failed delivery
 */
.certificate-delivery-status-failed {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}


/*
 * Empty delivery history
 */
.certificate-delivery-empty {
    padding: 18px 20px;

    border: 1px dashed #d8dee8;
    border-radius: 8px;

    color: #64748b;
    font-size: 14px;

    background: #f8fafc;
}

/*
 * Center the delivery status column.
 */
.certificate-delivery-card .admin-table th:nth-child(3),
.certificate-delivery-card .admin-table td:nth-child(3) {
    text-align: center;
}

/*
 * Existing design selector
 */
#initial-design-source-group {
    margin-top: 18px;
}


#initial-design-source-group[hidden] {
    display: none !important;
}


@media (max-width: 700px) {

    .certificate-design-choice-group {
        grid-template-columns: 1fr;
    }
}


/*
 * Certificate display options may also be used inside
 * standard admin form groups.
 *
 * Override the generic .admin-form-group label styling
 * so the text remains on the left and the toggle remains
 * aligned on the right.
 */
.admin-form-group label.certificate-display-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 0;

    cursor: pointer;
}
.admin-form-group .certificate-toggle input {
    width: 1px;
    height: 1px;

    padding: 0;
    margin: 0;

    border: 0;
}
/*
 * Admin modal message
 */

.admin-modal-message {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: #475569;
}
