/* =====================================================
   PRIMARY ADMIN LAYOUT
===================================================== */

.primary-admin-wrapper {

    min-height: 100vh;

    background: #f6f7fb;
    
    margin-top: 90px;

}


/* Main area starts beside sidebar */

.primary-admin-main {

    margin-left: 260px;

    min-height: 100vh;

}


/* =====================================================
   TOP HEADER
===================================================== */

.primary-admin-header {

    height: 76px;

    background: #ffffff;

    border-bottom: 1px solid #e9edf3;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 30px;

    position: sticky;

    top: 0;

    z-index: 1000;

}


/* Menu button */

.primary-menu-button {

    display: none;

    width: 40px;

    height: 40px;

    border: 0;

    background: #fff3f4;

    color: #d71920;

    border-radius: 9px;

    cursor: pointer;

    font-size: 17px;

}


/* Heading */

.primary-header-left {

    display: flex;

    align-items: center;

    gap: 15px;

}

.primary-page-heading h1 {

    margin: 0;

    color: #172033;

    font-size: 21px;

    font-weight: 700;

}

.primary-page-heading p {

    margin: 4px 0 0;

    color: #9098a7;

    font-size: 10px;

}


/* Header right */

.primary-header-right {

    display: flex;

    align-items: center;

    gap: 15px;

}


/* Session */

.primary-session {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

}

.primary-session span {

    color: #a0a8b5;

    font-size: 9px;

}

.primary-session strong {

    color: #273044;

    font-size: 10px;

    margin-top: 3px;

}


/* Notification */

.primary-notification {

    position: relative;

    width: 39px;

    height: 39px;

    border-radius: 10px;

    background: #f7f8fa;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #657083;

}

.primary-notification .notification-count {

    position: absolute;

    right: -3px;

    top: -4px;

    width: 16px;

    height: 16px;

    background: #d71920;

    color: #ffffff;

    border-radius: 50%;

    font-size: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   CONTENT
===================================================== */

.primary-dashboard-content {

    padding: 30px;

}


/* =====================================================
   WELCOME
===================================================== */

.primary-welcome {

    background: linear-gradient(
        120deg,
        #d71920,
        #b51118
    );

    color: #ffffff;

    border-radius: 16px;

    padding: 25px 28px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;

    overflow: hidden;

    position: relative;

}

.primary-welcome h2 {

    margin: 0 0 6px;

    font-size: 20px;

}

.primary-welcome p {

    margin: 0;

    opacity: .85;

    font-size: 11px;

}

.primary-welcome-icon {

    width: 100px;

    height: 100px;

    border-radius: 50%;

    background: rgba(255,255,255,.1);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 45px;

    opacity: .8;

}


/* =====================================================
   STATISTICS
===================================================== */

.primary-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 22px;

}


.primary-stat-card {

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    padding: 19px;

    display: flex;

    align-items: center;

    gap: 14px;

    transition: .2s;

}

.primary-stat-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.05);

}


.primary-stat-icon {

    width: 47px;

    height: 47px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    font-size: 17px;

}

.primary-stat-icon.red {

    color: #d71920;

    background: #fff0f1;

}

.primary-stat-icon.blue {

    color: #3578db;

    background: #eef5ff;

}

.primary-stat-icon.orange {

    color: #db9412;

    background: #fff7e7;

}

.primary-stat-icon.green {

    color: #15915a;

    background: #eaf8f1;

}


.primary-stat-info span {

    display: block;

    color: #929aaa;

    font-size: 10px;

}

.primary-stat-info strong {

    display: block;

    color: #172033;

    font-size: 23px;

    margin-top: 4px;

}

.primary-stat-info small {

    display: block;

    color: #15915a;

    font-size: 8px;

    margin-top: 3px;

}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.primary-section-title {

    margin-bottom: 13px;

}

.primary-section-title h2 {

    margin: 0;

    color: #172033;

    font-size: 15px;

}

.primary-section-title p {

    margin: 4px 0 0;

    color: #969eac;

    font-size: 10px;

}


.primary-quick-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 13px;

    margin-bottom: 22px;

}


.primary-quick-card {

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 12px;

    padding: 15px;

    text-decoration: none;

    color: #172033;

    display: flex;

    align-items: center;

    gap: 11px;

    transition: .2s;

}

.primary-quick-card:hover {

    text-decoration: none;

    color: #d71920;

    border-color: #f0b8ba;

    transform: translateY(-2px);

}

.primary-quick-icon {

    width: 39px;

    height: 39px;

    border-radius: 9px;

    background: #fff1f2;

    color: #d71920;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.primary-quick-card strong {

    display: block;

    font-size: 10px;

}

.primary-quick-card span {

    display: block;

    color: #969eac;

    font-size: 8px;

    margin-top: 3px;

}


/* =====================================================
   TWO COLUMN
===================================================== */

.primary-dashboard-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(280px, 1fr);

    gap: 18px;

    margin-bottom: 20px;

}


.primary-panel {

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 14px;

    overflow: hidden;

}


.primary-panel-header {

    padding: 18px 20px;

    border-bottom: 1px solid #edf0f4;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.primary-panel-header h2 {

    margin: 0;

    color: #172033;

    font-size: 14px;

}

.primary-panel-header p {

    margin: 4px 0 0;

    color: #969eac;

    font-size: 9px;

}

.primary-panel-header a {

    color: #d71920;

    font-size: 9px;

    font-weight: 600;

    text-decoration: none;

}


/* =====================================================
   RECENT PUPILS TABLE
===================================================== */

.primary-table-wrapper {

    overflow-x: auto;

}

.primary-table {

    width: 100%;

    border-collapse: collapse;

}

.primary-table th {

    color: #9ca4b2;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .5px;

    padding: 12px 20px;

    text-align: left;

}

.primary-table td {

    padding: 12px 20px;

    border-top: 1px solid #f0f2f5;

    color: #657083;

    font-size: 9px;

}

.primary-pupil {

    display: flex;

    align-items: center;

    gap: 9px;

}

.primary-pupil-avatar {

    width: 31px;

    height: 31px;

    border-radius: 8px;

    background: #fff1f2;

    color: #d71920;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 9px;

    font-weight: 700;

}

.primary-pupil strong {

    display: block;

    color: #273044;

    font-size: 9px;

}

.primary-pupil span {

    display: block;

    color: #a1a8b5;

    font-size: 7px;

    margin-top: 2px;

}


.primary-status {

    display: inline-block;

    padding: 4px 8px;

    border-radius: 20px;

    font-size: 7px;

    font-weight: 700;

}

.primary-status.active {

    background: #eaf8f1;

    color: #148354;

}


/* =====================================================
   ATTENDANCE
===================================================== */

.primary-attendance {

    padding: 25px;

    text-align: center;

}

.primary-attendance-circle {

    width: 135px;

    height: 135px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background:
        conic-gradient(
            #15915a 0deg 338deg,
            #edf0f3 338deg 360deg
        );

    display: flex;

    align-items: center;

    justify-content: center;

}

.primary-attendance-inner {

    width: 103px;

    height: 103px;

    background: #ffffff;

    border-radius: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}

.primary-attendance-inner strong {

    color: #172033;

    font-size: 25px;

}

.primary-attendance-inner span {

    color: #969eac;

    font-size: 8px;

    margin-top: 2px;

}


.primary-attendance-summary {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid #edf0f4;

    margin: 0 -25px -25px;

}

.primary-attendance-summary div {

    padding: 13px 5px;

}

.primary-attendance-summary div + div {

    border-left: 1px solid #edf0f4;

}

.primary-attendance-summary strong {

    display: block;

    color: #172033;

    font-size: 15px;

}

.primary-attendance-summary span {

    display: block;

    color: #969eac;

    font-size: 8px;

    margin-top: 3px;

}


/* =====================================================
   CLASS OVERVIEW
===================================================== */

.primary-class-list {

    padding: 8px 20px 18px;

}

.primary-class-row {

    display: grid;

    grid-template-columns:
        100px 1fr 35px;

    gap: 12px;

    align-items: center;

    padding: 10px 0;

}

.primary-class-name strong {

    display: block;

    color: #273044;

    font-size: 9px;

}

.primary-class-name span {

    color: #9ba3b1;

    font-size: 7px;

}

.primary-progress {

    height: 6px;

    background: #edf0f3;

    border-radius: 20px;

    overflow: hidden;

}

.primary-progress span {

    display: block;

    height: 100%;

    background: #d71920;

    border-radius: inherit;

}

.primary-class-count {

    color: #273044;

    font-size: 9px;

    text-align: right;

}


/* =====================================================
   ACTIVITY
===================================================== */

.primary-activity-list {

    padding: 5px 20px 15px;

}

.primary-activity {

    display: flex;

    gap: 10px;

    padding: 12px 0;

}

.primary-activity + .primary-activity {

    border-top: 1px solid #f0f2f5;

}

.primary-activity-icon {

    width: 32px;

    height: 32px;

    flex-shrink: 0;

    background: #fff1f2;

    color: #d71920;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

}

.primary-activity strong {

    display: block;

    color: #273044;

    font-size: 9px;

}

.primary-activity span {

    display: block;

    color: #9ba3b1;

    font-size: 8px;

    margin-top: 3px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

    .primary-stat-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .primary-quick-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 991px) {

    .primary-admin-main {

        margin-left: 0;

    }

    .primary-menu-button {

        display: flex;

        align-items: center;

        justify-content: center;

    }

    .primary-dashboard-grid {

        grid-template-columns: 1fr;

    }

    .primary-admin-header {

        padding: 0 18px;

    }

    .primary-dashboard-content {

        padding: 20px;

    }

    .primary-session {

        display: none;

    }

}


@media (max-width: 600px) {

    .primary-stat-grid {

        grid-template-columns: 1fr;

    }

    .primary-quick-grid {

        grid-template-columns: 1fr;

    }

    .primary-dashboard-content {

        padding: 14px;

    }

    .primary-admin-header {

        height: 68px;

    }

    .primary-page-heading h1 {

        font-size: 17px;

    }

    .primary-page-heading p {

        display: none;

    }

    .primary-welcome {

        padding: 20px;

    }

    .primary-welcome h2 {

        font-size: 17px;

    }

    .primary-welcome-icon {

        width: 65px;

        height: 65px;

        font-size: 27px;

    }

    .primary-table {

        min-width: 550px;

    }

}


/*Manage Students*/

.student-page-intro {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    margin-bottom: 25px;

}

.student-page-label {

    display: inline-block;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #d71920;

    margin-bottom: 6px;

}

.student-page-intro h2 {

    margin: 0 0 7px;

    font-size: 28px;

    font-weight: 700;

    color: #1f2937;

}

.student-page-intro p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;

}


/* ==========================================
   ADD BUTTON
========================================== */

.primary-add-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 19px;

    background: #d71920;

    color: #fff !important;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none !important;

    transition: .25s ease;

    white-space: nowrap;

}

.primary-add-button:hover {

    background: #b9151b;

    transform: translateY(-1px);

    box-shadow: 0 7px 18px rgba(215,25,32,.20);

}


/* ==========================================
   SUMMARY CARDS
========================================== */

.student-summary-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 25px;

}

.student-summary-card {

    background: #fff;

    border: 1px solid #edf0f4;

    border-radius: 14px;

    padding: 19px;

    display: flex;

    align-items: center;

    gap: 14px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.035);

}

.student-summary-icon {

    width: 48px;

    height: 48px;

    min-width: 48px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(215,25,32,.10);

    color: #d71920;

    font-size: 19px;

}

.student-summary-icon.blue {

    background: rgba(37,99,235,.10);

    color: #2563eb;

}

.student-summary-icon.green {

    background: rgba(16,185,129,.10);

    color: #10b981;

}

.student-summary-icon.orange {

    background: rgba(245,158,11,.12);

    color: #f59e0b;

}

.student-summary-card span {

    display: block;

    font-size: 12px;

    color: #6b7280;

    margin-bottom: 5px;

}

.student-summary-card strong {

    display: block;

    font-size: 23px;

    color: #1f2937;

}


/* ==========================================
   PANEL
========================================== */

.student-management-panel {

    overflow: hidden;

}


/* ==========================================
   PANEL HEADER
========================================== */

.student-panel-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 22px 20px;

    border-bottom: 1px solid #edf0f4;

}

.student-panel-header h2 {

    margin: 0 0 5px;

    font-size: 19px;

    color: #1f2937;

}

.student-panel-header p {

    margin: 0;

    font-size: 13px;

    color: #7b8494;

}


/* ==========================================
   CLASS SELECTOR
========================================== */

.student-class-selector {

    min-width: 250px;

}

.student-class-selector label {

    display: block;

    font-size: 11px;

    font-weight: 700;

    color: #5f6775;

    margin-bottom: 6px;

    text-transform: uppercase;

    letter-spacing: .5px;

}

.student-class-selector label i {

    color: #d71920;

    margin-right: 4px;

}

.student-class-select {

    width: 100%;

    height: 43px;

    border: 1px solid #dfe3e8;

    border-radius: 8px;

    background: #fff;

    padding: 0 12px;

    color: #374151;

    font-size: 13px;

    outline: none;

    cursor: pointer;

    transition: .2s ease;

}

.student-class-select:focus {

    border-color: #d71920;

    box-shadow:
        0 0 0 3px rgba(215,25,32,.08);

}


/* ==========================================
   EMPTY STATE
========================================== */

.student-empty-state {

    text-align: center;

    padding: 75px 20px;

}

.student-empty-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #f7f8fa;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #a5acb7;

    font-size: 26px;

}

.student-empty-state h3 {

    margin: 0 0 7px;

    font-size: 18px;

    color: #374151;

}

.student-empty-state p {

    margin: 0;

    color: #8a929f;

    font-size: 13px;

}


/* ==========================================
   TABLE
========================================== */

.student-table-container {

    padding: 20px;

}

.primary-students-table {

    margin: 0 !important;

    border-collapse: separate;

    border-spacing: 0;

}

.primary-students-table thead th {

    background: #f8f9fb;

    color: #6b7280;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .4px;

    border: none !important;

    padding: 13px 12px !important;

    white-space: nowrap;

}

.primary-students-table tbody td {

    padding: 13px 12px !important;

    vertical-align: middle !important;

    border-top: 1px solid #edf0f4 !important;

    color: #4b5563;

    font-size: 13px;

    white-space: nowrap;

}

.primary-students-table tbody tr {

    transition: background .15s ease;

}

.primary-students-table tbody tr:hover {

    background: #fafbfc;

}


/* ==========================================
   PUPIL DISPLAY
========================================== */

.student-name-wrapper {

    display: flex;

    align-items: center;

    gap: 10px;

}

.student-passport {

    width: 38px;

    height: 38px;

    border-radius: 10px;

    object-fit: cover;

    background: #f1f3f5;

}

.student-avatar {

    width: 38px;

    height: 38px;

    min-width: 38px;

    border-radius: 10px;

    background: rgba(215,25,32,.10);

    color: #d71920;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 12px;

}

.student-name {

    display: block;

    font-weight: 700;

    color: #252b35;

    margin-bottom: 2px;

}

.student-gender {

    font-size: 11px;

    color: #9299a5;

}


/* ==========================================
   ADMISSION NUMBER
========================================== */

.admission-number {

    font-weight: 700;

    color: #374151;

}


/* ==========================================
   STATUS
========================================== */

.student-status {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 700;

}

.student-status.active {

    background: #eaf8f1;

    color: #138a55;

}

.student-status.inactive {

    background: #fceced;

    color: #c62828;

}

.student-status::before {

    content: "";

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: currentColor;

}


/* ==========================================
   ACTION BUTTON
========================================== */

.student-action {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    border-radius: 8px;

    background: #f5f6f8;

    color: #596273;

    text-decoration: none !important;

    transition: .2s ease;

    margin-right: 4px;

}

.student-action:hover {

    background: #d71920;

    color: #fff !important;

}

.student-action.edit:hover {

    background: #2563eb;

}

.student-action.view:hover {

    background: #10b981;

}


/* ==========================================
   DATATABLE
========================================== */

.dataTables_wrapper {

    font-size: 13px;

}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {

    border: 1px solid #dfe3e8;

    border-radius: 7px;

    padding: 7px 10px;

    outline: none;

}

.dataTables_wrapper .dataTables_filter input {

    margin-left: 7px;

}

.dataTables_wrapper .dataTables_filter input:focus {

    border-color: #d71920;

}

.dataTables_wrapper .dataTables_paginate .paginate_button {

    border-radius: 6px !important;

    border: none !important;

    margin: 2px;

}

.dataTables_wrapper
.dataTables_paginate
.paginate_button.current {

    background: #d71920 !important;

    color: #fff !important;

}

.dataTables_wrapper
.dataTables_paginate
.paginate_button:hover {

    background: #f1f2f4 !important;

    color: #333 !important;

}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .student-summary-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 768px) {

    .student-page-intro {

        flex-direction: column;

        align-items: flex-start;

    }

    .primary-add-button {

        width: 100%;

        justify-content: center;

    }

    .student-summary-grid {

        grid-template-columns: 1fr 1fr;

        gap: 12px;

    }

    .student-summary-card {

        padding: 14px;

    }

    .student-summary-icon {

        width: 42px;

        height: 42px;

        min-width: 42px;

    }

    .student-summary-card strong {

        font-size: 19px;

    }

    .student-panel-header {

        flex-direction: column;

        align-items: stretch;

    }

    .student-class-selector {

        width: 100%;

        min-width: 0;

    }

    .student-table-container {

        padding: 12px;

    }

}


@media (max-width: 480px) {

    .student-summary-grid {

        grid-template-columns: 1fr;

    }

    .student-page-intro h2 {

        font-size: 23px;

    }

}


/* ==========================================
   MOBILE DATATABLE
========================================== */

@media (max-width: 768px) {

    .dataTables_wrapper
    .dataTables_length,
    .dataTables_wrapper
    .dataTables_filter {

        float: none !important;

        text-align: left !important;

        margin-bottom: 10px;

    }

    .dataTables_wrapper
    .dataTables_filter input {

        width: 100%;

        margin: 6px 0 0;

    }

}


/* Classes Page*/

/* =====================================================
   PRIMARY CLASSES PAGE
===================================================== */

.primary-admin-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
    background: #f5f7fb;
}

.primary-admin-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 50px;
}

.primary-page-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px;
}


/* =====================================================
   PAGE HEADER
===================================================== */

.classes-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.classes-page-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #182230;
}

.classes-page-title p {
    margin: 7px 0 0;
    color: #7a8494;
    font-size: 14px;
}

.primary-add-button {
    border: 0;
    border-radius: 10px;
    background: #d71920;
    color: #fff;
    padding: 13px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: .2s;
}

.primary-add-button:hover {
    color: #fff;
    background: #b9141a;
    transform: translateY(-1px);
}


/* =====================================================
   CARDS
===================================================== */

.primary-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 8px 25px rgba(20, 30, 50, .05);
    margin-bottom: 25px;
    overflow: hidden;
}

.primary-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.primary-card-header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #182230;
}

.primary-card-header p {
    margin: 5px 0 0;
    color: #87909d;
    font-size: 13px;
}

.primary-card-body {
    padding: 24px;
}


/* =====================================================
   CLASS STATISTICS
===================================================== */

.class-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.class-stat {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.class-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fce9ea;
    color: #d71920;
    font-size: 20px;
}

.class-stat strong {
    display: block;
    font-size: 24px;
    color: #182230;
}

.class-stat span {
    color: #87909d;
    font-size: 13px;
}


/* =====================================================
   FORMS
===================================================== */

.primary-form-group {
    margin-bottom: 18px;
}

.primary-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.primary-form-control {
    width: 100%;
    min-height: 45px;
    border: 1px solid #dce1e8;
    border-radius: 9px;
    padding: 10px 13px;
    outline: none;
    background: #fff;
    color: #344054;
}

.primary-form-control:focus {
    border-color: #d71920;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .08);
}

.primary-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.primary-submit {
    border: 0;
    border-radius: 9px;
    background: #d71920;
    color: white;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
}

.primary-cancel {
    border: 1px solid #dce1e8;
    border-radius: 9px;
    background: #fff;
    color: #344054;
    padding: 10px 18px;
    text-decoration: none;
    display: inline-block;
}


/* =====================================================
   CLASS TABLE
===================================================== */

.primary-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.primary-class-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.primary-class-table th {
    background: #f8f9fb;
    color: #667085;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e8ecf2;
}

.primary-class-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #edf0f4;
    color: #344054;
    font-size: 14px;
    vertical-align: middle;
}

.class-name {
    font-weight: 700;
    color: #182230;
}

.class-code {
    color: #8993a2;
    font-size: 12px;
}

.manager-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

.manager-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fce9ea;
    color: #d71920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.class-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.class-status.active {
    background: #e9f8ef;
    color: #16834a;
}

.class-status.inactive {
    background: #f1f2f4;
    color: #667085;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.class-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.class-action {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid #e4e7ec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475467;
    background: #fff;
    cursor: pointer;
}

.class-action:hover {
    color: #d71920;
    border-color: #d71920;
}

.class-action.primary {
    background: #d71920;
    color: #fff;
    border-color: #d71920;
}


/* =====================================================
   SUBJECT TAGS
===================================================== */

.subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-tag {
    background: #f5f7fa;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.subject-tag strong {
    color: #344054;
}

.subject-remove {
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    padding: 0;
}

.subject-remove:hover {
    color: #d71920;
}


/* =====================================================
   TWO COLUMN SECTION
===================================================== */

.class-management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.primary-empty {
    padding: 35px;
    text-align: center;
    color: #98a2b3;
}

.primary-empty i {
    font-size: 35px;
    margin-bottom: 12px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .class-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .class-management-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .primary-page-container {
        padding: 20px 15px;
    }

    .classes-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .classes-page-title h1 {
        font-size: 24px;
    }

    .class-stat-grid {
        grid-template-columns: 1fr;
    }

    .primary-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .primary-card-header {
        padding: 17px;
    }

    .primary-card-body {
        padding: 17px;
    }

}

/*Footer 2*/


/* =====================================================
   PRIMARY ADMIN FOOTER
   ===================================================== */

.primary-admin-footer {

    margin-top: 40px;

    background: #ffffff;

    border-top: 1px solid #e9ecef;

    color: #667085;

    font-family:
        "Open Sans",
        Arial,
        sans-serif;

}


/* MAIN FOOTER CONTAINER */

.primary-footer-container {

    max-width: 1500px;

    margin: 0 auto;

    padding: 22px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/* =====================================================
   BRAND
   ===================================================== */

.primary-footer-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 230px;

}


.primary-footer-logo {

    width: 42px;

    height: 42px;

    border-radius: 10px;

    background: #fef2f2;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


.primary-footer-logo img {

    width: 30px;

    height: 30px;

    object-fit: contain;

}


.primary-footer-brand strong {

    display: block;

    color: #1f2937;

    font-size: 14px;

    font-weight: 700;

}


.primary-footer-brand span {

    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #98a2b3;

}


/* =====================================================
   FOOTER INFORMATION
   ===================================================== */

.primary-footer-info {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-size: 12px;

    color: #98a2b3;

    text-align: center;

}


.footer-divider {

    color: #d0d5dd;

}


/* =====================================================
   LOGGED-IN USER
   ===================================================== */

.primary-footer-user {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 200px;

    justify-content: flex-end;

}


.primary-footer-user-icon {

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: #fef2f2;

    color: #d71920;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

}


.primary-footer-user strong {

    display: block;

    color: #344054;

    font-size: 12px;

    font-weight: 600;

    text-align: right;

}


.primary-footer-user span {

    display: block;

    margin-top: 3px;

    color: #98a2b3;

    font-size: 10px;

    text-transform: capitalize;

    text-align: right;

}


/* =====================================================
   FOOTER BOTTOM
   ===================================================== */

.primary-footer-bottom {

    border-top: 1px solid #f0f2f5;

    padding: 12px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    font-size: 10px;

    color: #98a2b3;

}


.primary-footer-bottom > div:last-child {

    display: flex;

    align-items: center;

    gap: 8px;

}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

    .primary-footer-container {

        flex-wrap: wrap;

        justify-content: center;

        text-align: center;

    }


    .primary-footer-brand {

        justify-content: center;

        width: 100%;

    }


    .primary-footer-info {

        width: 100%;

    }


    .primary-footer-user {

        width: 100%;

        justify-content: center;

    }


    .primary-footer-user strong,
    .primary-footer-user span {

        text-align: left;

    }

}


@media (max-width: 600px) {

    .primary-footer-container {

        padding: 20px 15px;

        gap: 18px;

    }


    .primary-footer-info {

        flex-direction: column;

        gap: 4px;

    }


    .primary-footer-info .footer-divider {

        display: none;

    }


    .primary-footer-bottom {

        padding: 12px 15px;

        flex-direction: column;

        text-align: center;

    }


    .primary-footer-bottom > div:last-child {

        justify-content: center;

    }

}

/*Student form*/

/* =====================================================
   STUDENT FORM
===================================================== */

.student-form-body {
    padding: 28px;
}

.student-form-section {
    padding: 0 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaecf0;
}

.student-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.student-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.student-form-section-title > i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff1f2;
    color: #d71920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.student-form-section-title strong {
    display: block;
    color: #101828;
    font-size: 16px;
}

.student-form-section-title span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-top: 3px;
}

.primary-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.primary-form-group {
    min-width: 0;
}

.primary-form-group.full {
    grid-column: 1 / -1;
}

.primary-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.primary-form-group label span {
    color: #d71920;
}

.primary-form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    padding: 10px 13px;
    background: #fff;
    color: #101828;
    font-size: 14px;
    outline: none;
    transition: .2s ease;
    box-sizing: border-box;
}

textarea.primary-form-control {
    resize: vertical;
    min-height: 110px;
}

.primary-form-control:focus {
    border-color: #d71920;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .08);
}

.primary-form-group small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
}

.student-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 25px;
    border-top: 1px solid #eaecf0;
}

.primary-submit,
.primary-cancel {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.primary-submit {
    border: none;
    background: #d71920;
    color: #fff;
}

.primary-submit:hover {
    background: #b9151b;
}

.primary-cancel {
    background: #fff;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.primary-cancel:hover {
    background: #f9fafb;
}

.student-form-errors {
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: 10px;
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.student-form-errors div {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 4px 0;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .primary-form-row {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .student-form-body {
        padding: 18px;
    }

    .primary-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .primary-form-group.full {
        grid-column: auto;
    }

    .student-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .primary-submit,
    .primary-cancel {
        width: 100%;
    }

}

.student-actions form {
    display: inline-flex;
}

.student-action.activate,
.student-action.deactivate {
    border: none;
    cursor: pointer;
}

.student-action.activate {
    color: #027a48;
    background: #ecfdf3;
}

.student-action.deactivate {
    color: #b42318;
    background: #fef3f2;
}

.student-action.activate:hover {
    background: #d1fadf;
}

.student-action.deactivate:hover {
    background: #fee4e2;
}

/* Teachers Dashboard*/

/* =========================================================
   PRIMARY TEACHER MANAGEMENT
   Matches the Teacher Dashboard Design
========================================================= */

:root {
    --teacher-primary: #d71920;
    --teacher-primary-dark: #b9141a;
    --teacher-secondary: #1d2939;
    --teacher-text: #344054;
    --teacher-muted: #667085;
    --teacher-border: #eaecf0;
    --teacher-bg: #f8f9fc;
    --teacher-card: #ffffff;
    --teacher-success: #12b76a;
    --teacher-warning: #f79009;
    --teacher-danger: #f04438;
    --teacher-info: #1570ef;
    --teacher-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.primary-admin-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    background: var(--teacher-bg);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.primary-admin-main {
    flex: 1;
    margin-left: 270px;
    min-width: 0;
    background: var(--teacher-bg);
    transition: margin-left 0.3s ease;
}


/* =========================================================
   TOP DASHBOARD HEADER
========================================================= */

.primary-admin-header {
    min-height: 82px;
    background: #ffffff;
    border-bottom: 1px solid var(--teacher-border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 30px;

    position: sticky;
    top: 0;

    z-index: 100;
}


/* LEFT */

.primary-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}


/* MENU BUTTON */

.primary-menu-button {
    width: 42px;
    height: 42px;

    border: 1px solid var(--teacher-border);
    background: #ffffff;

    border-radius: 10px;

    display: none;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: var(--teacher-secondary);

    transition: all 0.2s ease;
}

.primary-menu-button:hover {
    background: #f9fafb;
    border-color: #d0d5dd;
}


/* PAGE HEADING */

.primary-page-heading h1 {
    margin: 0;

    font-size: 22px;
    line-height: 1.3;

    font-weight: 700;

    color: var(--teacher-secondary);
}

.primary-page-heading p {
    margin: 5px 0 0;

    font-size: 13px;

    color: var(--teacher-muted);
}


/* =========================================================
   HEADER RIGHT
========================================================= */

.primary-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* SESSION */

.primary-session {
    text-align: right;
}

.primary-session span {
    display: block;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.8px;

    color: var(--teacher-primary);

    margin-bottom: 3px;
}

.primary-session strong {
    display: block;

    font-size: 13px;

    font-weight: 600;

    color: var(--teacher-secondary);
}


/* =========================================================
   NOTIFICATION
========================================================= */

.primary-notification {
    width: 42px;
    height: 42px;

    border: 1px solid var(--teacher-border);

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    color: var(--teacher-muted);

    background: #ffffff;

    text-decoration: none;

    transition: all 0.2s ease;
}

.primary-notification:hover {
    color: var(--teacher-primary);
    background: #fff5f5;
    border-color: #fecdca;
}

.primary-notification .notification-count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    border-radius: 50%;

    background: var(--teacher-primary);
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
}


/* =========================================================
   PAGE CONTAINER
========================================================= */

.primary-page-container {
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.teachers-page-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.teachers-page-title h1 {
    margin: 0;

    font-size: 24px;
    line-height: 1.3;

    font-weight: 700;

    color: var(--teacher-secondary);
}

.teachers-page-title p {
    margin: 6px 0 0;

    font-size: 14px;

    color: var(--teacher-muted);
}


/* =========================================================
   ADD BUTTON
========================================================= */

.primary-add-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 9px;

    background: var(--teacher-primary);
    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition: all 0.2s ease;

    box-shadow: 0 2px 5px rgba(215, 25, 32, 0.15);
}

.primary-add-button:hover {
    background: var(--teacher-primary-dark);

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(215, 25, 32, 0.2);
}


/* =========================================================
   STATISTICS
========================================================= */

.teacher-stat-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 25px;
}


.teacher-stat {
    background: var(--teacher-card);

    border: 1px solid var(--teacher-border);

    border-radius: 14px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: var(--teacher-shadow);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.teacher-stat:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}


/* STAT ICON */

.teacher-stat-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #fff1f2;

    color: var(--teacher-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.teacher-stat-icon.active {
    background: #ecfdf3;
    color: var(--teacher-success);
}

.teacher-stat-icon.inactive {
    background: #fef3f2;
    color: var(--teacher-danger);
}


/* STAT TEXT */

.teacher-stat strong {
    display: block;

    font-size: 25px;

    line-height: 1.2;

    font-weight: 700;

    color: var(--teacher-secondary);
}

.teacher-stat span {
    display: block;

    margin-top: 4px;

    font-size: 12px;

    color: var(--teacher-muted);
}


/* =========================================================
   CARD
========================================================= */

.primary-card {
    background: #ffffff;

    border: 1px solid var(--teacher-border);

    border-radius: 14px;

    box-shadow: var(--teacher-shadow);

    margin-bottom: 25px;

    overflow: hidden;
}


/* CARD HEADER */

.primary-card-header {
    padding: 20px 24px;

    border-bottom: 1px solid var(--teacher-border);

    background: #ffffff;
}

.primary-card-header h2 {
    margin: 0;

    font-size: 17px;

    font-weight: 700;

    color: var(--teacher-secondary);
}

.primary-card-header p {
    margin: 5px 0 0;

    font-size: 12px;

    color: var(--teacher-muted);
}


/* CARD BODY */

.primary-card-body {
    padding: 24px;
}


/* =========================================================
   FORM
========================================================= */

.primary-form-row {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 18px;
}


.primary-form-group {
    min-width: 0;
}

.primary-form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 600;

    color: var(--teacher-secondary);
}


/* FORM CONTROL */

.primary-form-control {
    width: 100%;

    min-height: 43px;

    padding: 10px 12px;

    border: 1px solid #d0d5dd;

    border-radius: 8px;

    background: #ffffff;

    color: var(--teacher-text);

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-form-control:focus {
    border-color: var(--teacher-primary);

    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.08);
}

.primary-form-control::placeholder {
    color: #98a2b3;
}

.primary-form-control[readonly] {
    background: #f8fafc;
    color: #667085;
}


/* FILE INPUT */

input[type="file"].primary-form-control {
    padding: 8px 10px;

    cursor: pointer;
}


/* SELECT */

select.primary-form-control {
    cursor: pointer;
}


/* =========================================================
   FORM BUTTONS
========================================================= */

.primary-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 43px;

    padding: 0 18px;

    border: 0;

    border-radius: 8px;

    background: var(--teacher-primary);

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.primary-submit:hover {
    background: var(--teacher-primary-dark);

    transform: translateY(-1px);
}


.primary-cancel {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 18px;

    margin-left: 8px;

    border: 1px solid #d0d5dd;

    border-radius: 8px;

    background: #ffffff;

    color: var(--teacher-text);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: all 0.2s ease;
}

.primary-cancel:hover {
    background: #f9fafb;

    color: var(--teacher-secondary);

    border-color: #98a2b3;
}


/* =========================================================
   TABLE
========================================================= */

.primary-table-responsive {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* TABLE */

.primary-class-table {
    width: 100%;

    min-width: 1150px;

    border-collapse: separate;

    border-spacing: 0;

    font-size: 13px;
}


/* HEADER */

.primary-class-table thead th {
    padding: 13px 14px;

    background: #f9fafb;

    border-bottom: 1px solid var(--teacher-border);

    color: #475467;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.3px;

    text-align: left;

    white-space: nowrap;
}


/* BODY */

.primary-class-table tbody td {
    padding: 15px 14px;

    border-bottom: 1px solid #f2f4f7;

    color: var(--teacher-text);

    vertical-align: middle;

    background: #ffffff;
}


/* HOVER */

.primary-class-table tbody tr:hover td {
    background: #fcfcfd;
}


/* LAST ROW */

.primary-class-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   TEACHER NAME
========================================================= */

.manager-name {
    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 190px;
}

.manager-name strong {
    display: block;

    color: var(--teacher-secondary);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
}


/* AVATAR */

.manager-avatar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #fff1f2;

    color: var(--teacher-primary);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;

    font-weight: 700;

    border: 1px solid #fecdca;
}


/* =========================================================
   STATUS
========================================================= */

.class-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 70px;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;

    text-transform: capitalize;
}

.class-status.active {
    background: #ecfdf3;

    color: #027a48;
}

.class-status.inactive {
    background: #fef3f2;

    color: #b42318;
}


/* =========================================================
   ACTIONS
========================================================= */

.class-actions {
    display: flex;

    align-items: center;

    gap: 6px;
}

.class-action {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid #e4e7ec;

    border-radius: 7px;

    background: #ffffff;

    color: #667085;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    cursor: pointer;

    transition: all 0.2s ease;
}

.class-action:hover {
    background: #f9fafb;

    color: var(--teacher-primary);

    border-color: #fecdca;
}

.class-action.primary {
    background: #ecfdf3;

    color: #027a48;

    border-color: #abefc6;
}

.class-action.primary:hover {
    background: #d1fadf;

    color: #05603a;
}


/* =========================================================
   DATATABLE
========================================================= */

.dataTables_wrapper {
    width: 100%;
}


/* TOP CONTROLS */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 18px;

    font-size: 12px;

    color: var(--teacher-muted);
}


/* SEARCH */

.dataTables_wrapper .dataTables_filter input {
    min-height: 38px;

    width: 220px;

    margin-left: 8px;

    padding: 7px 11px;

    border: 1px solid #d0d5dd;

    border-radius: 8px;

    outline: none;

    font-size: 12px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--teacher-primary);

    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.08);
}


/* LENGTH */

.dataTables_wrapper .dataTables_length select {
    min-height: 36px;

    padding: 5px 28px 5px 8px;

    margin: 0 5px;

    border: 1px solid #d0d5dd;

    border-radius: 7px;

    background: #ffffff;

    font-size: 12px;

    outline: none;
}


/* INFO */

.dataTables_wrapper .dataTables_info {
    padding-top: 18px;

    color: var(--teacher-muted);

    font-size: 12px;
}


/* PAGINATION */

.dataTables_wrapper .dataTables_paginate {
    padding-top: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;

    height: 34px;

    margin-left: 4px;

    padding: 8px 10px !important;

    border: 1px solid #e4e7ec !important;

    border-radius: 7px;

    background: #ffffff !important;

    color: #475467 !important;

    font-size: 12px;

    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff5f5 !important;

    border-color: #fecdca !important;

    color: var(--teacher-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--teacher-primary) !important;

    border-color: var(--teacher-primary) !important;

    color: #ffffff !important;
}


/* =========================================================
   EMPTY TABLE
========================================================= */

.primary-class-table tbody td.dataTables_empty {
    padding: 50px 20px;

    text-align: center;

    color: var(--teacher-muted);

    font-size: 13px;
}


/* =========================================================
   MESSAGES
========================================================= */

.primary-page-container .message {
    margin-bottom: 20px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.primary-sidebar {
    position: fixed;

    top: 80px;
    left: 0;

    width: 270px;

    height: calc(100vh - 80px);

    z-index: 1000;

    overflow-y: auto;

    transition: transform 0.3s ease;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1200px) {

    .primary-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 992px) {

    .primary-admin-main {
        margin-left: 0;
    }

    .primary-menu-button {
        display: flex;
    }

    .primary-sidebar {
        transform: translateX(-100%);
    }

    .primary-sidebar.active {
        transform: translateX(0);
    }

    .primary-admin-header {
        padding: 16px 20px;
    }

    .primary-page-container {
        padding: 22px 20px;
    }

    .teacher-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .primary-admin-header {
        min-height: 70px;

        padding: 13px 15px;
    }

    .primary-page-heading h1 {
        font-size: 18px;
    }

    .primary-page-heading p {
        display: none;
    }

    .primary-header-right {
        gap: 10px;
    }

    .primary-session {
        display: none;
    }

    .primary-notification {
        width: 38px;
        height: 38px;
    }


    .primary-page-container {
        padding: 18px 15px;
    }


    .teachers-page-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;
    }

    .teachers-page-title h1 {
        font-size: 21px;
    }

    .teachers-page-title p {
        font-size: 13px;
    }


    .primary-add-button {
        width: 100%;
    }


    .teacher-stat-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .primary-card {
        border-radius: 11px;

        margin-bottom: 18px;
    }

    .primary-card-header {
        padding: 17px;
    }

    .primary-card-body {
        padding: 17px;
    }


    .primary-form-row {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 15px;
    }


    .primary-submit {
        width: 100%;
    }

    .primary-cancel {
        width: 100%;

        margin: 10px 0 0;
    }


    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;

        text-align: left !important;

        width: 100%;

        margin-bottom: 12px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;

        margin: 8px 0 0;
    }

}


@media (max-width: 480px) {

    .primary-page-heading h1 {
        font-size: 17px;
    }

    .primary-menu-button {
        width: 38px;
        height: 38px;
    }


    .teacher-stat {
        padding: 16px;
    }

    .teacher-stat-icon {
        width: 43px;
        height: 43px;
    }

    .teacher-stat strong {
        font-size: 22px;
    }


    .teachers-page-title h1 {
        font-size: 19px;
    }


    .primary-card-header h2 {
        font-size: 15px;
    }

}

/* Student Dashboard*/

/* =====================================================
   STUDENT PROFILE HERO
===================================================== */

.student-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            #d71920 0%,
            #b7131a 55%,
            #8e0e14 100%
        );
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    position: relative;
}

.student-profile-hero::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: 100px;
    top: -100px;
}

.student-profile-left {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.student-profile-picture {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #ffffff;
    color: #d71920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid rgba(255, 255, 255, 0.35);
}

.student-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile-heading h2 {
    margin: 3px 0 8px;
    font-size: 28px;
    font-weight: 800;
}

.student-welcome-label {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.student-profile-heading p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.student-profile-heading p strong {
    font-weight: 700;
}

.student-profile-status-row {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.student-status-badge,
.student-class-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.student-status-badge {
    background: rgba(255, 255, 255, 0.18);
}

.student-status-badge.active {
    color: #ffffff;
}

.student-status-badge.inactive {
    opacity: 0.85;
}

.student-status-badge i {
    font-size: 7px;
}

.student-class-badge {
    background: rgba(255, 255, 255, 0.14);
}

.student-profile-school-icon {
    width: 85px;
    height: 85px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    position: relative;
    z-index: 2;
}


/* =====================================================
   COMPLETE PROFILE
===================================================== */

.student-complete-profile {
    margin-top: 25px;
}

.student-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.student-profile-section {
    padding: 22px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #ffffff;
}

.student-profile-section:last-child {
    grid-column: 1 / -1;
}

.student-profile-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.student-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.student-section-icon.red {
    background: #d71920;
}

.student-section-icon.blue {
    background: #2563eb;
}

.student-section-icon.orange {
    background: #f59e0b;
}

.student-profile-section-title h3 {
    margin: 0 0 3px;
    font-size: 16px;
    color: #222222;
}

.student-profile-section-title p {
    margin: 0;
    font-size: 12px;
    color: #888888;
}

.student-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.student-detail-item {
    min-width: 0;
}

.student-detail-item span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.student-detail-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #222222;
    word-break: break-word;
}


/* =====================================================
   STUDENT ATTENDANCE
===================================================== */

.student-summary-box {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 190px;
}

.student-summary-circle {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background:
        conic-gradient(
            #d71920 0deg,
            #d71920 0deg,
            #eeeeee 0deg,
            #eeeeee 360deg
        );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

.student-summary-circle::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: #ffffff;
    border-radius: 50%;
}

.student-summary-circle strong,
.student-summary-circle span {
    position: relative;
    z-index: 2;
}

.student-summary-circle strong {
    font-size: 26px;
    color: #222222;
}

.student-summary-circle span {
    font-size: 11px;
    color: #888888;
    margin-top: 3px;
}

.student-summary-message {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.student-summary-message > i {
    color: #d71920;
    font-size: 21px;
    margin-top: 2px;
}

.student-summary-message strong {
    display: block;
    margin-bottom: 5px;
    color: #222222;
}

.student-summary-message p {
    margin: 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
}


/* =====================================================
   RESULTS EMPTY STATE
===================================================== */

.student-result-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.student-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #fbe8e9;
    color: #d71920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 13px;
}

.student-result-empty h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.student-result-empty p {
    max-width: 450px;
    margin: 0 0 15px;
    color: #777777;
    line-height: 1.6;
    font-size: 13px;
}

.student-view-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 9px;
    background: #d71920;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.student-view-button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}


/* =====================================================
   INFORMATION PANEL
===================================================== */

.student-info-panel {
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff8f8;
    border: 1px solid #f4d6d8;
}

.student-info-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #fbe8e9;
    color: #d71920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.student-info-panel h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.student-info-panel p {
    margin: 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .student-profile-grid {
        grid-template-columns: 1fr;
    }

    .student-profile-section:last-child {
        grid-column: auto;
    }

}


@media (max-width: 700px) {

    .student-profile-hero {
        padding: 22px;
    }

    .student-profile-left {
        align-items: flex-start;
    }

    .student-profile-picture {
        width: 82px;
        height: 82px;
        font-size: 25px;
    }

    .student-profile-heading h2 {
        font-size: 21px;
    }

    .student-profile-school-icon {
        display: none;
    }

    .student-detail-grid {
        grid-template-columns: 1fr;
    }

    .student-summary-box {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .student-summary-message {
        text-align: left;
    }

}


@media (max-width: 480px) {

    .student-profile-hero {
        border-radius: 16px;
    }

    .student-profile-left {
        gap: 13px;
    }

    .student-profile-picture {
        width: 68px;
        height: 68px;
        border-width: 3px;
        font-size: 20px;
    }

    .student-profile-heading h2 {
        font-size: 18px;
    }

    .student-profile-heading p {
        font-size: 12px;
    }

    .student-profile-section {
        padding: 16px;
    }

}

/* Edit Profile */

/* =========================================================
   EDIT PROFILE INPUTS ONLY
========================================================= */

/* Form grid */
.student-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 25px;
}

.student-form-full {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM GROUP
========================================================= */

.student-form-group {
    width: 100%;
}


/* =========================================================
   LABEL
========================================================= */

.student-form-group label {
    display: block;
    margin-bottom: 8px;

    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.student-form-group label span {
    color: #d71920;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.student-input-wrapper {
    position: relative;
    width: 100%;
}


/* =========================================================
   INPUT ICON
========================================================= */

.student-input-wrapper > i {
    position: absolute;
    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;
    font-size: 14px;

    pointer-events: none;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
========================================================= */

.student-input-wrapper input,
.student-input-wrapper select,
.student-input-wrapper textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #dfe3e8;
    border-radius: 10px;

    background: #fff;
    color: #1f2937;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* =========================================================
   TEXT INPUT + SELECT
========================================================= */

.student-input-wrapper input,
.student-input-wrapper select {
    height: 48px;

    padding: 0 14px 0 43px;
}


/* =========================================================
   TEXTAREA
========================================================= */

.student-input-wrapper textarea {
    min-height: 120px;

    padding: 14px 14px 14px 43px;

    resize: vertical;

    line-height: 1.5;
}


/* =========================================================
   TEXTAREA ICON
========================================================= */

.student-textarea-wrapper > i {
    top: 17px;
    transform: none;
}


/* =========================================================
   FOCUS
========================================================= */

.student-input-wrapper input:focus,
.student-input-wrapper select:focus,
.student-input-wrapper textarea:focus {
    border-color: #d71920;

    box-shadow:
        0 0 0 3px rgba(215, 25, 32, 0.10);
}


.student-input-wrapper:focus-within > i {
    color: #d71920;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.student-input-wrapper input::placeholder,
.student-input-wrapper textarea::placeholder {
    color: #a1aab5;
}


/* =========================================================
   READ ONLY / DISABLED
========================================================= */

.student-input-wrapper input[readonly],
.student-input-wrapper input:disabled {
    background: #f5f6f8;

    color: #64748b;

    border-color: #e5e7eb;

    cursor: not-allowed;
}


/* =========================================================
   SELECT
========================================================= */

.student-input-wrapper select {
    cursor: pointer;
}


/* =========================================================
   FIELD HELP TEXT
========================================================= */

.student-field-help {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 11px;
}


/* =========================================================
   PASSPORT UPLOAD
========================================================= */

.student-upload-area {
    padding: 25px;
}

.student-upload-box {
    min-height: 140px;

    width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 2px dashed #d7dce2;
    border-radius: 12px;

    background: #f8fafc;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.student-upload-box:hover {
    border-color: #d71920;

    background: #fff7f7;
}

.student-upload-box i {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 50%;

    color: #d71920;
    background: rgba(215, 25, 32, .08);

    font-size: 18px;
}

.student-upload-box span {
    color: #374151;

    font-size: 13px;
    font-weight: 700;
}

.student-upload-box small {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 11px;
}


/* =========================================================
   FORM ACTION BUTTONS
========================================================= */

.student-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    padding: 0 25px 25px;
}


/* CANCEL */

.student-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 9px;

    border: 1px solid #e2e8f0;

    background: #f8fafc;

    color: #475569;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: .2s ease;
}

.student-cancel-button:hover {
    background: #e2e8f0;
}


/* SAVE */

.student-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 44px;

    padding: 0 20px;

    border: none;
    border-radius: 9px;

    background: #d71920;

    color: #fff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.student-save-button:hover {
    background: #b9151b;

    transform: translateY(-1px);
}


/* =========================================================
   ERROR ALERT
========================================================= */

.student-form-alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 0 25px 20px;

    padding: 14px 16px;

    border-radius: 10px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #991b1b;

    font-size: 13px;
}

.student-form-alert ul {
    margin: 5px 0 0;
    padding-left: 18px;
}


/* =========================================================
   RESPONSIVE INPUTS
========================================================= */

@media (max-width: 768px) {

    .student-edit-grid {
        grid-template-columns: 1fr;

        padding: 20px;

        gap: 17px;
    }

    .student-form-full {
        grid-column: auto;
    }

    .student-upload-area {
        padding: 20px;
    }

    .student-form-actions {
        padding: 0 20px 20px;
    }

}


@media (max-width: 480px) {

    .student-edit-grid {
        padding: 16px;
    }

    .student-input-wrapper input,
    .student-input-wrapper select {
        height: 46px;

        font-size: 13px;
    }

    .student-input-wrapper textarea {
        font-size: 13px;
    }

    .student-form-actions {
        flex-direction: column-reverse;

        align-items: stretch;

        padding: 0 16px 20px;
    }

    .student-save-button,
    .student-cancel-button {
        width: 100%;
    }

}