
/***********************************************************************
AKSHAYA VIDYA EDUCATION MANAGEMENT SYSTEM (AEMS)

Organization : Akshaya Vidya Foundation
Technology   : Flask + PostgreSQL
UI Framework : Bootstrap 5 + Custom CSS

This stylesheet provides common UI components and styling for AEMS.
All dashboards and application pages should reuse these styles
to maintain a consistent look and feel.

***********************************************************************/

/* ==========================================================
   GENERAL
========================================================== */

body{
    background:#f5f7fa;
    font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color:#343a40;
    margin:0;
    padding:0;
}

a{
    text-decoration:none;
}

a:hover{
    text-decoration:none;
}


/* ==========================================================
   TYPOGRAPHY
========================================================== */

.foundation-name{
    font-size:34px;
    font-weight:700;
    color:#0B4F8A;
}
.application-name{
    font-size:24px;
    font-weight:700;
    color:#0B4F8A;
}

.initial {
    font-weight: 700;
    text-decoration: underline;
}

.application-subtitle{
    color:#6c757d;
    font-size:15px;
}

.page-title{
    color:#0B4F8A;
    font-size:2.2rem;
    font-weight:700;
    margin-top:10px;
    margin-bottom:30px;
}

.page-subtitle{
    font-size:1.9rem;
    font-weight:400;
    color:#333;
    margin-top:-20px;
    margin-bottom:35px;
}

.section-title{
    color:#0B4F8A;
    font-size:1.4rem;
    font-weight:600;
    margin-bottom:15px;
    border-left:5px solid #2E8B57;
    padding-left:12px;
}


/* ======================================================
   PAGE HEADERS
====================================================== */

.programme-summary {
    margin-top: 2rem;
}

.page-header {
    text-align: center;
    margin: 2.5rem 0 3rem 0;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0d4d92;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* =====================================================
   PROGRAMME PAGE HEADERS
===================================================== */

.programme-header{
    text-align: center;
    margin: 35px 0 30px;
}

.programme-title{
    font-size: 2.3rem;
    font-weight: 700;
    color: #0B4F8A;
    margin-bottom: 8px;
}

.programme-subtitle{
    font-size: 1.8rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 20px;
}

.programme-list {
    list-style-type: disc;
    padding-left: 22px;
    margin-top: 15px;
    text-align: left;
}

.programme-list li {
    margin-bottom: 8px;
}

.programme-list a {
    color: #0b4f94;
    text-decoration: none;
    font-weight: 500;
}

.programme-list a:hover {
    color: #198754;
    text-decoration: underline;
}
/*==========================================================
  HOME PAGE
==========================================================*/

.home-summary{

    font-size:1.05rem;
    line-height:1.7;
    color:#444;

}

.home-kpi-number{

    font-size:2.5rem;
    font-weight:700;
    color:#0B4F8A;

}

.home-kpi-label{

    font-size:1rem;
    font-weight:500;
    color:#6c757d;

}

.home-kpi-card{

    padding-top:35px;
    padding-bottom:35px;

}

/* ==========================================================
  APPLICATION TAG LINE
========================================================== */

.application-tagline {

    font-size: 0.90rem;

    color: #6c757d;

    margin-top: 3px;

}

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

.header{
    background:#ffffff;
    border-bottom:4px solid #0B4F8A;
    padding:10px 30px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.logo{
    height:70px;
}


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

.navbar{
    background:#0B4F8A !important;
}

.navbar-brand,
.nav-link{
    color:#ffffff !important;
    font-weight:500;
}

.nav-link:hover{
    color:#FFD54F !important;
}

/* =====================================================
   ACTIVE NAVIGATION
===================================================== */

.navbar .nav-link.active{

    background-color:#0B4F8A;

    color:#ffffff !important;

    border-radius:8px;

    font-weight:600;

    padding-left:16px;

    padding-right:16px;

}




/* ==========================================================
   PAGE LAYOUT
========================================================== */

/*
   Reserved for future layout styles.

   This section will contain:
   • Dashboard layouts
   • Multi-column layouts
   • Sidebar layouts
   • Search page layouts
   • Dashboard spacing utilities
*/

/* ==========================================================
   DASHBOARD COMPONENTS
========================================================== */

/* Bootstrap Cards */

.card{

    border:none;

    border-radius:12px;

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

    margin-bottom:25px;

    height:100%;

    display:flex;

    flex-direction:column;

}

.card-body{

    display:flex;

    flex-direction:column;

    height:100%;

}

.card-body .btn{

    margin-top:auto;

}

.card-header{
    background:#0B4F8A;
    color:#ffffff;
    font-weight:600;
    font-size:18px;
    border-radius:12px 12px 0 0 !important;
}


/* Dashboard Cards */

.dashboard-card{
    background:#ffffff;
    border:none;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:all .30s ease;
    margin-bottom:30px;
    height:100%;
}

.dashboard-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.dashboard-header{
    background:#0B4F8A;
    color:#ffffff;
    height:60px;
    display:flex;
    align-items:center;
    padding:0 22px;
    font-size:22px;
    font-weight:600;
    border-radius:16px 16px 0 0;
}

.dashboard-section{
    margin-top:35px;
}

.dashboard-gap{
    margin-top:30px;
}

/* Dashboard Tables */

.dashboard-table td{
    padding:12px 6px;
    vertical-align:middle;
}

.filter-select{
    width:320px;
}

/* ==========================================================
   IDENTITY CARD
========================================================== */

.student-photo{
    width:180px;
    height:220px;
    border-radius:10px;
    border:3px solid #dee2e6;
    object-fit:cover;
}

.student-name{
    font-size:38px;
    font-weight:700;
    color:#0B4F8A;
}

.student-code{
    color:#777;
    font-size:22px;
    margin-bottom:20px;
}

/* ==========================================================
   KPI CARDS
========================================================== */

.kpi-card{
    background:#ffffff;
    border-radius:16px;
    padding:28px 20px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:all .30s ease;
    height:100%;
}

.kpi-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.kpi-icon{
    font-size:42px;
    color:#0B4F8A;
    margin-bottom:15px;
}

.kpi-title{
    color:#666;
    font-size:16px;
    font-weight:600;
    margin-bottom:15px;
}

.kpi-value{
    color:#0B4F8A;
    font-size:42px;
    font-weight:700;
    line-height:1;
}

.kpi-text{
    color:#0B4F8A;
    font-size:22px;
    font-weight:700;
}



.tutor-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #e8f0fe;
}

.tutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.personal-details-row {
    column-gap: 30px;
}

.personal-details-row > .col-md-6 {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}


.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    min-height: 38px;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: #5f7690;
    font-size: 0.9rem;
}

.profile-value {
    color: #222;
    font-weight: 500;
    text-align: right;
}



/* ==========================================================
   INFORMATION COMPONENTS
========================================================== */

.info-row{

    display:flex;

    align-items:center;

    padding:16px 20px;

    border-bottom:1px solid #ececec;

    gap:24px;

}

.info-row:last-child{
    border-bottom:none;
}

.info-label{

    width: 220px;

    flex-shrink:0;

    color:#555;

    font-weight:600;

    font-size:15px;

}

.info-value{

    flex:1;

    color:#0B4F8A;

    font-size:18px;

    font-weight:700;

    text-align:right;

    white-space:nowrap;

    
}

.badge-merit{

    display:inline-block;
    background:#198754;
    color:#ffffff;
    font-size:13px;
    padding:6px 12px;
    border-radius:20px;
    white-space:normal;
    text-align:center;
    max-width:180px;
}


/* ==========================================================
   TABLES
========================================================== */

.table{
    background:#ffffff;
}

.table th{
    width:35%;
    color:#0B4F8A;
    font-weight:600;
}

.table td{
    color:#343a40;
}

/* ==========================================
   REPORT TABLE
========================================== */

.report-table thead th{

    position:sticky;

    top:0;

    z-index:10;

    vertical-align:middle;

    background:#d9e8fb;

    color:#0b4f94;

    font-weight:600;

}

.report-table tbody tr:hover{

    background:#eef6ff;

    transition:0.2s;

}

/* Serial Number */
.report-table th:nth-child(1),
.report-table td:nth-child(1){
    width:5%;
    text-align:center;
}

/* Centre ID */
.report-table th:nth-child(2),
.report-table td:nth-child(2){
    width:8%;
    text-align:center;
}

/* Centre Name */
.report-table th:nth-child(3),
.report-table td:nth-child(3){
    width:28%;
}

/* Village */
.report-table th:nth-child(4),
.report-table td:nth-child(4){
    width:20%;
}

/* Tutor */
.report-table th:nth-child(5),
.report-table td:nth-child(5){
    width:20%;
}

/* Status */
.report-table th:nth-child(6),
.report-table td:nth-child(6){
    width:8%;
    text-align:center;
}

/* Start Date */
.report-table th:nth-child(7),
.report-table td:nth-child(7){
    width:11%;
    text-align:center;
}

.report-table td:last-child{

    font-weight:700;

    color:#0b4f94;
}

.report-summary{

    margin-top:20px;

    padding:15px 20px;

    background:#e8f1fc;

    border-left:5px solid #0B4F94;

    border-radius:8px;

    font-size:1rem;

    font-weight:500;

    display:flex;

    gap:35px;

    align-items:center;

    flex-wrap:wrap;
}

.report-summary strong{

    color:#0B4F94;
}

/* ==========================================================
   BADGES
========================================================== */

.badge-primary{
    background:#0B4F8A;
}

.badge-success{
    background:#2E8B57;
}

/* ==========================================================
   BUTTONS
========================================================== */

.btn-primary{
    background:#0B4F8A;
    border:none;
    transition:all .25s ease;
}

.btn-primary:hover{
    background:#083B68;
}

.btn-success{
    background:#2E8B57;
    border:none;
    transition:all .25s ease;
}

.btn-success:hover{
    background:#256E47;
}


/*----------------------------------------------------
REPORT COLUMN WIDTHS
----------------------------------------------------*/

.report-table td:first-child,
.report-table th:first-child {
    white-space: nowrap;
}


.report-table th:nth-child(1),
.report-table td:nth-child(1){
    width:5%;
}

.report-table th:nth-child(2),
.report-table td:nth-child(2){
    width:28%;
}

.report-table th:nth-child(3),
.report-table td:nth-child(3){
    width:18%;
}

.report-table th:nth-child(4),
.report-table td:nth-child(4){
    width:22%;
}

.report-table th:nth-child(5),
.report-table td:nth-child(5){
    width:9%;
}

.report-table th:nth-child(6),
.report-table td:nth-child(6){
    width:9%;
}

.report-table th:nth-child(7),
.report-table td:nth-child(7){
    width:9%;
}

.report-table td{

    padding:12px 14px;

    vertical-align:middle;
}

.report-table tbody tr:nth-child(even){

    background:#f8fafc;
}

/* ==========================================================
   FOOTER
========================================================== */

.footer{
    background:#0B4F8A;
    color:#ffffff;
    padding:18px;
    margin-top:50px;
    text-align:center;
}


/* ==========================================================
   RESPONSIVE DESIGN
========================================================== */

@media (max-width:768px){

    .foundation-name{
        font-size:24px;
    }

    .application-name{
        font-size:18px;
    }

  
    .student-photo{
        width:140px;
        height:180px;
    }

    .student-name{
        font-size:28px;
    }

    .student-code{
        font-size:18px;
    }

    .dashboard-header{
        font-size:18px;
        padding:0 16px;
    }

    .kpi-card{
        margin-bottom:20px;
    }
    .info-row{

        flex-direction:column;

        gap:8px;

    }

    .info-label{

        width:100%;

    }

    .info-value{

        width:100%;

    }

}

/* ==========================================
   PROGRAMME CARDS
========================================== */

.programme-card{

    padding:30px;

    min-height:360px;

    transition:0.3s;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

}

.programme-card:hover{

    transform:translateY(-5px);

}

.programme-icon{

    font-size:2.5rem;

    color:#0B4F8A;

    margin-bottom:15px;

}

.programme-title{

    font-size:1.5rem;

    font-weight:700;

    color:#0B4F8A;

}

.programme-subtitle{
    font-size:1.05rem;
    font-weight:600;
    color:#2c3e50;
    margin-bottom:25px;
}

.programme-description{

    color:#34495e;
    font-size:0.98rem;
    font-weight:500;
    line-height:1.8;
    margin-top:20px;
    margin-bottom:30px;
}

.programme-button{

    width:170px;

}

.programme-list{

    list-style-type: disc;

    text-align:left;

    width:75%;

    margin:20px auto 30px auto;

    color:#2c3e50;

    font-size:0.95rem;

    font-weight:500;

    line-height:1.8;

}

.programme-list li{

    margin-bottom:4px;

}


/* =========================================
   RAG STATUS INDICATORS
   ========================================= */

.rag-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
}

.rag-green {
    background-color: #198754;
}

.rag-amber {
    background-color: #ffc107;
}

.rag-red {
    background-color: #dc3545;
}


/* =========================================
   USER CONTEXT BAR
   ========================================= */

.user-context-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.centre-photo {
    width: 100%;
    max-width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}


/* ==========================================================
   STUDENT GROUP CARDS
   ========================================================== */

.student-group-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 12px;
    background: #ffffff;
    text-align: center;
    height: 100%;
}

.student-group-card .group-icon {
    font-size: 42px;
    color: #0B4F8A;
    margin-bottom: 10px;
}

.student-group-card .group-value {
    color: #0B4F8A;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    margin-top: 10px;
}

.student-group-card .group-title {
    color: #666;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.group-gender-summary {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

.group-gender-summary i {
    font-size: 0.85rem;
}


/* ============================================================
   CENTRE ATTENDANCE PAGE
   ============================================================ */

.attendance-page-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 92px;
}

.attendance-page-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 600;
    color: #174f85;
}

.attendance-page-meta {
    margin-top: 6px;
    color: #666;
    font-size: 0.95rem;
}

.attendance-page-asof {
    text-align: right;
    min-width: 180px;
}

.attendance-page-asof-label {
    color: #777;
    font-size: 0.85rem;
}

.attendance-page-asof-date {
    color: #174f85;
    font-size: 1rem;
    font-weight: 600;
}


/* Section heading inside attendance cards */

.attendance-section-header {
    background: #14578f;
    color: #ffffff;

    padding: 12px 18px;

    font-size: 1.05rem;
    font-weight: 600;

    border-radius: 10px 10px 0 0;

    display: flex;
    align-items: center;
}

.attendance-section-header i {
    margin-right: 8px;
}


/* Attendance summary cards */

.attendance-summary-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;

    padding: 18px 12px;

    min-height: 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.attendance-summary-label {
    color: #666;
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.attendance-summary-value {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.attendance-summary-note {
    color: #777;
    font-size: 0.78rem;
    margin-top: 5px;
}


/* Attendance trend */

.attendance-chart-container {
    height: 320px;
    position: relative;
}


/* Group cards */

.attendance-group-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

.attendance-group-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #174f85;
}

.attendance-group-percentage {
    font-size: 1.1rem;
    font-weight: 600;
}


/* Tables */

.attendance-table th {
    white-space: nowrap;
    font-size: 0.88rem;
}

.attendance-table td {
    font-size: 0.9rem;
}

.attendance-student-name {
    font-weight: 600;
}

.attendance-student-code {
    color: #777;
    font-size: 0.78rem;
}


/* Mobile */

@media (max-width: 768px) {

    .attendance-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .attendance-page-asof {
        text-align: left;
    }

    .attendance-page-title {
        font-size: 1.35rem;
    }

    .attendance-chart-container {
        height: 260px;
    }

}


/* ---------- Manage Forms ---------- */

.manage-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}

.manage-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.manage-form-group label {
    color: #495057;
    font-size: 13px;
    font-weight: 600;
}

.manage-form-group input,
.manage-form-group select {
    width: 100%;
    height: 40px;
    padding: 7px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    color: #212529;
    font-size: 14px;
    box-sizing: border-box;
}

.manage-form-group input:focus,
.manage-form-group select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
}

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

.required {
    color: #dc3545;
}

.manage-error {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 6px;
    padding: 10px 14px;
    color: #842029;
    font-size: 14px;
}

.manage-error ul {
    margin: 0;
    padding-left: 20px;
}

.manage-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.manage-btn-primary,
.manage-btn-secondary {
    height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.manage-btn-primary {
    border: 1px solid #0d4f8b;
    background: #0d4f8b;
    color: #ffffff;
}

.manage-btn-primary:hover {
    background: #0b4375;
}

.manage-btn-secondary {
    border: 1px solid #adb5bd;
    background: #ffffff;
    color: #495057;
}

.manage-btn-secondary:hover {
    background: #f8f9fa;
}

@media (max-width: 650px) {

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

    .manage-form-actions {
        justify-content: stretch;
    }

    .manage-btn-primary,
    .manage-btn-secondary {
        flex: 1;
    }
}


/* ============================================================
   TUTOR MAINTENANCE
   ============================================================ */

.tutor-maintenance-value {
    font-size: 17px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 18px;
}

.tutor-maintenance-empty {
    color: #6c757d;
    margin-bottom: 18px;
}

.tutor-action-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
}

.tutor-action-title {
    color: #0d4f8b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
}

.tutor-action-note {
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.tutor-end-panel {
    border-left: 4px solid #adb5bd;
}



/* ---------- Manage Success Message ---------- */

.manage-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-radius: 8px;
    padding: 11px 16px;
    margin-bottom: 20px;
    color: #146c43;
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   TUTOR MAINTENANCE
   ============================================================ */

.manage-back-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.tutor-maintenance-header {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.tutor-maintenance-title h1 {
    margin: 0;
    color: #0d4f8b;
    font-size: 30px;
    font-weight: 700;
}

.tutor-maintenance-name {
    margin: 7px 0 0;
    color: #495057;
    font-size: 15px;
}

.tutor-maintenance-year {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 13px;
}

.tutor-maintenance-year strong {
    color: #0d4f8b;
    font-size: 15px;
}

.tutor-current-avlc {
    min-width: 260px;
    padding-left: 30px;
    border-left: 1px solid #dee2e6;
}

.tutor-current-avlc-label {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 5px;
}

.tutor-current-avlc-code {
    color: #0d4f8b;
    font-size: 22px;
    font-weight: 700;
}

.tutor-current-avlc-name {
    margin-top: 3px;
    color: #495057;
    font-size: 13px;
}

/* ============================================================
   TUTOR MAINTENANCE
   ============================================================ */

.tutor-maintenance-page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 45px;
}


/* -------------------- Back Button -------------------- */

.tutor-maintenance-back {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}


/* -------------------- Page Header -------------------- */

.tutor-maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 24px;
}

.tutor-maintenance-title {
    flex: 1;
    min-width: 0;
}

.tutor-maintenance-title h1 {
    margin: 0 0 6px;
    color: #263238;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
}

.tutor-maintenance-name {
    margin: 0 0 10px;
    color: #0d4f8b;
    font-size: 15px;
    font-weight: 500;
}

.tutor-maintenance-name span {
    color: #6c757d;
    font-weight: 400;
}

.tutor-maintenance-year {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

.tutor-maintenance-year strong {
    color: #263238;
    font-weight: 700;
}


/* -------------------- Current AVLC Summary -------------------- */

.tutor-current-avlc-summary {
    min-width: 280px;
    padding-top: 4px;
    text-align: right;
}

.tutor-current-avlc-label {
    margin-bottom: 4px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
}

.tutor-current-avlc-value {
    color: #0d4f8b;
    font-size: 22px;
    font-weight: 700;
}

.tutor-current-avlc-value span {
    color: #495057;
    font-size: 14px;
    font-weight: 400;
}

.tutor-no-avlc {
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
}


/* -------------------- Sections -------------------- */

.tutor-maintenance-section {
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tutor-maintenance-section-header {
    padding: 12px 18px;
    background: #0d4f8b;
    color: #ffffff;
}

.tutor-maintenance-section-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.tutor-maintenance-section-body {
    padding: 18px;
}


/* -------------------- Action Panels -------------------- */

.tutor-action-panel {
    display: none;
    margin-top: 18px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
}

.tutor-action-panel.is-open {
    display: block;
}

.tutor-action-title {
    margin-bottom: 16px;
    color: #0d4f8b;
    font-size: 15px;
    font-weight: 600;
}

.tutor-action-note {
    margin: 0 0 18px;
    color: #5f6b76;
    font-size: 13px;
    line-height: 1.5;
}


/* -------------------- Tutor Role Status -------------------- */

.tutor-role-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tutor-status-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
}

.tutor-status-value {
    color: #146c43;
    font-size: 14px;
    font-weight: 700;
}


/* -------------------- Empty State -------------------- */

.tutor-maintenance-empty {
    margin-bottom: 14px;
    color: #6c757d;
    font-size: 14px;
}


/* -------------------- Responsive -------------------- */

@media (max-width: 750px) {

    .tutor-maintenance-page {
        width: calc(100% - 28px);
        padding-top: 14px;
    }

    .tutor-maintenance-header {
        flex-direction: column;
        gap: 14px;
    }

    .tutor-current-avlc-summary {
        width: 100%;
        min-width: 0;
        padding-top: 0;
        text-align: left;
    }

    .tutor-current-avlc-value {
        font-size: 20px;
    }

    .tutor-maintenance-title h1 {
        font-size: 30px;
    }
}

/* =========================================================
   MANAGE TUTORS
   ========================================================= */

.tutor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.add-tutor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background: #ffffff;
    color: #0d4f8b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.add-tutor-btn:hover {
    background: #f1f5f9;
}

.tutor-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr)
                           minmax(150px, 0.7fr)
                           minmax(230px, 1.2fr)
                           auto;
    gap: 16px;
    align-items: end;
}

.tutor-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tutor-filter-group label {
    color: #495057;
    font-size: 13px;
    font-weight: 600;
}

.tutor-filter-group input,
.tutor-filter-group select {
    width: 100%;
    height: 40px;
    padding: 7px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    color: #212529;
    font-size: 14px;
    box-sizing: border-box;
}

.tutor-filter-group input:focus,
.tutor-filter-group select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
}

.tutor-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tutor-btn-primary,
.tutor-btn-secondary {
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
}

.tutor-btn-primary {
    border: 1px solid #0d4f8b;
    background: #0d4f8b;
    color: #ffffff;
}

.tutor-btn-primary:hover {
    background: #0b4375;
}

.tutor-btn-secondary {
    border: 1px solid #adb5bd;
    background: #ffffff;
    color: #495057;
}

.tutor-btn-secondary:hover {
    background: #f8f9fa;
}

.tutor-list-body {
    padding: 0;
}

.manage-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.manage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.manage-table th {
    background: #f1f5f9;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.manage-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
    vertical-align: middle;
}

.manage-table tbody tr:hover {
    background: #f8fafc;
}

.tutor-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #0d4f8b;
    border-radius: 5px;
    background: #0d4f8b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tutor-view-btn:hover {
    background: #0b4375;
}

.status-active,
.status-inactive {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    color: #198754;
}

.status-inactive {
    color: #dc3545;
}

.manage-empty-state {
    padding: 30px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.manage-page-back {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.manage-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #adb5bd;
    border-radius: 6px;
    background: #ffffff;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.manage-back-btn:hover {
    background: #f8f9fa;
}


/* =========================================================
   TUTOR MAINTENANCE
   ========================================================= */

.tutor-maintenance-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 0 50px;
}

.tutor-maintenance-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.tutor-maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 24px;
}

.tutor-maintenance-title {
    flex: 1;
    min-width: 0;
}

.tutor-maintenance-title h1 {
    margin: 0 0 8px;
    color: #212529;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.tutor-maintenance-title p {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

.tutor-code-separator {
    margin: 0 6px;
    color: #adb5bd;
}

.tutor-maintenance-context {
    display: flex;
    gap: 42px;
    align-items: flex-start;
    padding-top: 5px;
    white-space: nowrap;
}

.tutor-context-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.tutor-context-item span {
    color: #6c757d;
    font-size: 12px;
}

.tutor-context-item strong {
    color: #0d4f8b;
    font-size: 16px;
    font-weight: 700;
}

.tutor-maintenance-value {
    margin-bottom: 14px;
    color: #212529;
    font-size: 17px;
    font-weight: 600;
}

.tutor-maintenance-empty {
    margin-bottom: 14px;
    color: #6c757d;
    font-size: 14px;
}

.tutor-action-panel {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #d9dee3;
    border-radius: 7px;
    background: #ffffff;
}

.tutor-action-panel.is-open {
    display: block;
}

.tutor-action-title {
    margin-bottom: 18px;
    color: #0d4f8b;
    font-size: 15px;
    font-weight: 600;
}

.tutor-action-note {
    margin: 0 0 18px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.6;
}

.tutor-end-panel {
    border-left: 3px solid #adb5bd;
}


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

@media (max-width: 900px) {

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

    .tutor-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .tutor-maintenance-header {
        flex-direction: column;
        gap: 16px;
    }

    .tutor-maintenance-context {
        width: 100%;
        justify-content: flex-start;
        gap: 35px;
    }

    .tutor-context-item {
        text-align: left;
    }

}


@media (max-width: 650px) {

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

    .tutor-filter-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .tutor-btn-primary,
    .tutor-btn-secondary {
        flex: 1;
    }

    .tutor-maintenance-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tutor-maintenance-title h1 {
        font-size: 28px;
    }

    .tutor-maintenance-context {
        flex-direction: column;
        gap: 12px;
    }

    .tutor-context-item {
        text-align: left;
    }

    .manage-table {
        min-width: 760px;
    }

}

/* ============================================================
   TUTOR MAINTENANCE
   ============================================================ */

.tutor-maintenance-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 28px 50px;
}


/* ---------- Back Button ---------- */

.tutor-maintenance-back {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}


/* ---------- Page Header ---------- */

.tutor-maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    background: #ffffff;
    border-radius: 12px;
    padding: 22px 26px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);

    margin-bottom: 24px;
}

.tutor-maintenance-title {
    min-width: 0;
}

.tutor-maintenance-title h1 {
    margin: 0 0 6px;
    color: #0d4f8b;
    font-size: 30px;
    font-weight: 700;
}

.tutor-maintenance-title p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.tutor-code {
    color: #6c757d;
}


/* ---------- Header Context ---------- */

.tutor-maintenance-context {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-shrink: 0;
}

.tutor-context-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.tutor-context-item span {
    color: #6c757d;
    font-size: 12px;
}

.tutor-context-item strong {
    color: #0d4f8b;
    font-size: 15px;
}


/* ---------- Main Two-Column Layout ---------- */

.tutor-maintenance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}


/* ---------- Maintenance Cards ---------- */

.tutor-maintenance-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.tutor-maintenance-card-header {
    background: #0d4f8b;
    color: #ffffff;
    padding: 11px 16px;
}

.tutor-maintenance-card-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.tutor-maintenance-card-body {
    padding: 20px;
}


/* ---------- Values ---------- */

.tutor-status-label {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 4px;
}

.tutor-maintenance-value {
    color: #212529;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tutor-maintenance-value span {
    color: #6c757d;
    font-size: 15px;
    font-weight: 400;
}

.tutor-active-status {
    color: #198754;
}


/* ---------- Empty State ---------- */

.tutor-maintenance-empty {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
}


/* ---------- Action Panel ---------- */

.tutor-action-panel {
    margin-top: 20px;
    padding: 18px;

    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #f8f9fa;
}

.tutor-action-title {
    color: #0d4f8b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tutor-action-note {
    margin: 0 0 18px;
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
}


/* ---------- End Role ---------- */

.tutor-end-panel {
    border-left: 3px solid #adb5bd;
}


/* ---------- Responsive ---------- */

@media (max-width: 800px) {

    .tutor-maintenance-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tutor-maintenance-context {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .tutor-context-item {
        align-items: flex-start;
    }

    .tutor-maintenance-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .tutor-maintenance-page {
        padding: 20px 16px 40px;
    }

    .tutor-maintenance-header {
        padding: 18px;
    }

    .tutor-maintenance-title h1 {
        font-size: 26px;
    }

    .tutor-maintenance-context {
        gap: 24px;
    }

}

/* ============================================================
   MANAGE TUTORS LIST PAGE
   Page-specific styling for /manage/tutors
   Does not alter Tutor Maintenance / Add Tutor pages
   ============================================================ */


/* ------------------------------------------------------------
   PAGE CONTAINER
   ------------------------------------------------------------ */

.manage-tutors-page {
    width: min(1145px, calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0 45px;
}


/* ------------------------------------------------------------
   BACK BUTTON
   ------------------------------------------------------------ */

.manage-tutors-page .manage-tutors-back {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.manage-tutors-page .manage-tutors-back .manage-btn-secondary {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;
    padding: 0 15px;

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

    background: #ffffff;
    color: #495057;

    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.manage-tutors-page .manage-tutors-back .manage-btn-secondary:hover {
    background: #f8f9fa;
}


/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */

.manage-tutors-page .manage-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    background: #ffffff;

    border-radius: 12px;

    padding: 20px 24px;
    margin-bottom: 20px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.manage-tutors-page .manage-page-header > div:first-child {
    min-width: 0;
}

.manage-tutors-page .manage-page-header h1 {
    margin: 0 0 6px;

    color: #0d4f8b;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.manage-tutors-page .manage-page-header p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;
}


/* ------------------------------------------------------------
   ACADEMIC YEAR
   ------------------------------------------------------------ */

.manage-tutors-page .manage-academic-year {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;

    flex-shrink: 0;

    color: #6c757d;

    font-size: 12px;

    white-space: nowrap;
}

.manage-tutors-page .manage-academic-year strong {
    color: #0d4f8b;

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


/* ------------------------------------------------------------
   KPI CARDS
   ------------------------------------------------------------ */

.manage-tutors-page .manage-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 20px;
}

.manage-tutors-page .manage-kpi-card {
    background: #ffffff;

    border-radius: 12px;

    padding: 20px 22px;

    text-align: center;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.manage-tutors-page .manage-kpi-value {
    margin-bottom: 5px;

    color: #0d4f8b;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.manage-tutors-page .manage-kpi-title {
    color: #495057;

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


/* ------------------------------------------------------------
   SUCCESS MESSAGE
   ------------------------------------------------------------ */

.manage-tutors-page .manage-success {
    margin-bottom: 20px;
}


/* ------------------------------------------------------------
   MAIN SECTIONS
   ------------------------------------------------------------ */

.manage-tutors-page .manage-section {
    margin-bottom: 20px;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}


/* ------------------------------------------------------------
   BLUE SECTION HEADER
   ------------------------------------------------------------ */

.manage-tutors-page .manage-section-header {
    min-height: 52px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    background: #0d4f8b;
    color: #ffffff;
}

.manage-tutors-page .manage-section-header h2 {
    margin: 0;

    color: #ffffff;

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


/* ------------------------------------------------------------
   SECTION BODY
   ------------------------------------------------------------ */

.manage-tutors-page .manage-section-body {
    padding: 20px;
}


/* ------------------------------------------------------------
   SEARCH / FILTER
   ------------------------------------------------------------ */

.manage-tutors-page .tutor-filter-form {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.6fr)
        minmax(145px, 0.7fr)
        minmax(220px, 1.2fr)
        auto;

    gap: 16px;

    align-items: end;
}

.manage-tutors-page .tutor-filter-group {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.manage-tutors-page .tutor-filter-group label {
    color: #495057;

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

.manage-tutors-page .tutor-filter-group input,
.manage-tutors-page .tutor-filter-group select {
    width: 100%;
    height: 40px;

    padding: 7px 10px;

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

    background: #ffffff;
    color: #212529;

    font-size: 14px;

    box-sizing: border-box;
}

.manage-tutors-page .tutor-filter-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.manage-tutors-page .tutor-btn-primary,
.manage-tutors-page .tutor-btn-secondary {
    height: 40px;

    padding: 0 16px;

    border-radius: 6px;

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

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

    text-decoration: none;

    white-space: nowrap;
}

.manage-tutors-page .tutor-btn-primary {
    border: 1px solid #0d4f8b;

    background: #0d4f8b;
    color: #ffffff;
}

.manage-tutors-page .tutor-btn-primary:hover {
    background: #0b4375;
}

.manage-tutors-page .tutor-btn-secondary {
    border: 1px solid #adb5bd;

    background: #ffffff;
    color: #495057;
}

.manage-tutors-page .tutor-btn-secondary:hover {
    background: #f8f9fa;
}


/* ------------------------------------------------------------
   TUTOR LIST HEADER
   ------------------------------------------------------------ */

.manage-tutors-page .tutor-list-header {
    justify-content: space-between;
}

.manage-tutors-page .add-tutor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;

    padding: 0 14px;

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

    background: #ffffff;
    color: #0d4f8b;

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

    text-decoration: none;

    white-space: nowrap;
}

.manage-tutors-page .add-tutor-btn:hover {
    background: #f1f5f9;
}


/* ------------------------------------------------------------
   TUTOR LIST TABLE
   ------------------------------------------------------------ */

.manage-tutors-page .tutor-list-body {
    padding: 0;
}

.manage-tutors-page .manage-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.manage-tutors-page .manage-table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    font-size: 14px;
}

.manage-tutors-page .manage-table th {
    padding: 13px 14px;

    background: #f1f5f9;
    color: #495057;

    border-bottom: 1px solid #dee2e6;

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

    text-align: left;

    white-space: nowrap;
}

.manage-tutors-page .manage-table td {
    padding: 13px 14px;

    border-bottom: 1px solid #e9ecef;

    color: #212529;

    vertical-align: middle;
}

.manage-tutors-page .manage-table tbody tr:last-child td {
    border-bottom: none;
}

.manage-tutors-page .manage-table tbody tr:hover {
    background: #f8fafc;
}


/* ------------------------------------------------------------
   VIEW BUTTON
   ------------------------------------------------------------ */

.manage-tutors-page .tutor-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    height: 32px;

    padding: 0 12px;

    border: 1px solid #0d4f8b;
    border-radius: 5px;

    background: #0d4f8b;
    color: #ffffff;

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

    text-decoration: none;
}

.manage-tutors-page .tutor-view-btn:hover {
    background: #0b4375;
}


/* ------------------------------------------------------------
   STATUS
   ------------------------------------------------------------ */

.manage-tutors-page .status-active,
.manage-tutors-page .status-inactive {
    display: inline-block;

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

.manage-tutors-page .status-active {
    color: #198754;
}

.manage-tutors-page .status-inactive {
    color: #dc3545;
}


/* ------------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------------ */

.manage-tutors-page .manage-empty-state {
    padding: 30px 20px;

    color: #6c757d;

    font-size: 14px;

    text-align: center;
}


/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

    .manage-tutors-page .tutor-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .manage-tutors-page .tutor-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 650px) {

    .manage-tutors-page {
        width: calc(100% - 28px);

        padding-top: 14px;
    }

    .manage-tutors-page .manage-page-header {
        flex-direction: column;
        align-items: flex-start;

        gap: 14px;

        padding: 18px;
    }

    .manage-tutors-page .manage-page-header h1 {
        font-size: 28px;
    }

    .manage-tutors-page .manage-academic-year {
        align-items: flex-start;
    }

    .manage-tutors-page .manage-kpi-grid {
        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }

    .manage-tutors-page .manage-kpi-card {
        padding: 17px 12px;
    }

    .manage-tutors-page .manage-kpi-value {
        font-size: 26px;
    }

    .manage-tutors-page .tutor-filter-form {
        grid-template-columns: 1fr;
    }

    .manage-tutors-page .tutor-filter-actions {
        grid-column: auto;

        justify-content: stretch;
    }

    .manage-tutors-page .tutor-btn-primary,
    .manage-tutors-page .tutor-btn-secondary {
        flex: 1;
    }

    .manage-tutors-page .manage-section-body {
        padding: 16px;
    }

    .manage-tutors-page .tutor-list-body {
        padding: 0;
    }

    .manage-tutors-page .manage-table {
        min-width: 760px;
    }

}


/* ============================================================
   ADD TUTOR PAGE
   Page-specific styling for /manage/tutors/add
   ============================================================ */

.add-tutor-page {
    width: min(1145px, calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0 45px;
}


/* ---------- Back ---------- */

.add-tutor-page .add-tutor-back {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.add-tutor-page .add-tutor-back .manage-btn-secondary {
    flex: none;
    height: 36px;
    padding: 0 15px;
}


/* ---------- Header ---------- */

.add-tutor-page .add-tutor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    background: #ffffff;
    border-radius: 12px;

    padding: 20px 24px;
    margin-bottom: 20px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.add-tutor-page .add-tutor-title {
    min-width: 0;
}

.add-tutor-page .add-tutor-title h1 {
    margin: 0 0 6px;

    color: #0d4f8b;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.add-tutor-page .add-tutor-title p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;
}


/* ---------- Academic Year ---------- */

.add-tutor-page .add-tutor-academic-year {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;

    flex-shrink: 0;

    color: #6c757d;
    font-size: 12px;

    white-space: nowrap;
}

.add-tutor-page .add-tutor-academic-year strong {
    color: #0d4f8b;

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


/* ---------- Sections ---------- */

.add-tutor-page .add-tutor-section {
    margin-bottom: 20px;

    background: #ffffff;

    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.add-tutor-page .add-tutor-section-header {
    min-height: 52px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    background: #0d4f8b;
    color: #ffffff;
}

.add-tutor-page .add-tutor-section-header h2 {
    margin: 0;

    color: #ffffff;

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

.add-tutor-page .add-tutor-section-body {
    padding: 22px;
}


/* ---------- Form Grid ---------- */

.add-tutor-page .add-tutor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 24px;
    row-gap: 20px;
}

.add-tutor-page .add-tutor-form-group {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.add-tutor-page .add-tutor-form-group label {
    color: #495057;

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

.add-tutor-page .add-tutor-form-group input,
.add-tutor-page .add-tutor-form-group select {
    width: 100%;
    height: 40px;

    padding: 7px 10px;

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

    background: #ffffff;
    color: #212529;

    font-size: 14px;

    box-sizing: border-box;
}

.add-tutor-page .add-tutor-form-group input:focus,
.add-tutor-page .add-tutor-form-group select:focus {
    outline: none;

    border-color: #0d6efd;

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

.add-tutor-page .add-tutor-form-group small {
    color: #6c757d;

    font-size: 12px;
    line-height: 1.4;
}

.add-tutor-page .required {
    color: #dc3545;
}


/* ---------- Validation ---------- */

.add-tutor-page .add-tutor-error {
    margin-bottom: 20px;

    padding: 14px 18px;

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

    background: #f8d7da;
    color: #842029;

    font-size: 14px;
}

.add-tutor-page .add-tutor-error ul {
    margin: 0;
    padding-left: 20px;
}


/* ---------- Actions ---------- */

.add-tutor-page .add-tutor-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    margin-top: 4px;
}

.add-tutor-page .add-tutor-actions .manage-btn-primary,
.add-tutor-page .add-tutor-actions .manage-btn-secondary {
    flex: none;

    min-width: 110px;
    height: 40px;

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


/* ---------- Responsive ---------- */

@media (max-width: 700px) {

    .add-tutor-page {
        width: calc(100% - 28px);
        padding-top: 14px;
    }

    .add-tutor-page .add-tutor-header {
        flex-direction: column;
        align-items: flex-start;

        gap: 14px;

        padding: 18px;
    }

    .add-tutor-page .add-tutor-title h1 {
        font-size: 28px;
    }

    .add-tutor-page .add-tutor-academic-year {
        align-items: flex-start;
    }

    .add-tutor-page .add-tutor-form-grid {
        grid-template-columns: 1fr;
    }

    .add-tutor-page .add-tutor-section-body {
        padding: 16px;
    }

    .add-tutor-page .add-tutor-actions {
        justify-content: stretch;
    }

    .add-tutor-page .add-tutor-actions .manage-btn-primary,
    .add-tutor-page .add-tutor-actions .manage-btn-secondary {
        flex: 1;
    }

}

/* =========================================================
   STUDENT LIST TABLE
   ========================================================= */

.student-list-table {
    width: 100%;
    table-layout: fixed;
}

.student-list-table th:nth-child(1),
.student-list-table td:nth-child(1) {
    width: 4%;
}

.student-list-table th:nth-child(2),
.student-list-table td:nth-child(2) {
    width: 14%;
}

.student-list-table th:nth-child(3),
.student-list-table td:nth-child(3) {
    width: 25%;
}

.student-list-table th:nth-child(4),
.student-list-table td:nth-child(4) {
    width: 14%;
}

.student-list-table th:nth-child(5),
.student-list-table td:nth-child(5) {
    width: 9%;
}

.student-list-table th:nth-child(6),
.student-list-table td:nth-child(6) {
    width: 8%;
}

.student-list-table th:nth-child(7),
.student-list-table td:nth-child(7) {
    width: 14%;
}

.student-list-table th:nth-child(8),
.student-list-table td:nth-child(8) {
    width: 12%;
}

/***********************************************************************
DEVELOPER NOTES
AKSHAYA VIDYA EDUCATION MANAGEMENT SYSTEM (AEMS)

Organization : Akshaya Vidya Foundation
Technology   : Flask + PostgreSQL
UI Framework : Bootstrap 5 + Custom CSS

This stylesheet provides shared UI styling for AEMS dashboards,
attendance pages, management screens and other application components.

Design Principles
-----------------
- Maintain consistent spacing, colors and typography
- Reuse common UI components across dashboards
- Keep related CSS definitions together
- Avoid duplicate or conflicting CSS rules
- Preserve responsive layouts for desktop and mobile devices

Application Areas
-----------------
- Learning Centre Dashboard
- Tutor Dashboard
- Cluster Dashboard
- Segment Dashboard
- Management Dashboard
- Attendance and Performance
- Administration

***********************************************************************/

/***********************************************************************
CHANGE LOG
-----------------------------------------------------------------------

Version 1.0  (Productization Sprint)

✓ CSS reorganized
✓ Duplicate class definitions removed
✓ Dashboard Components introduced
✓ Identity Card introduced
✓ KPI Card framework introduced
✓ Information Components introduced
✓ Standardized section organization
✓ Responsive layout consolidated

Future Versions
---------------

Version 1.1
- Dashboard Productization
- Student Timeline
- Student Journey Visualization

Version 1.2
- School Dashboard
- Student Search
- Dashboard Filters

Version 1.3
- Alumni Dashboard
- Mentor Dashboard

***********************************************************************/