
/***********************************************************************
VIDYA VAHINI
Student Lifecycle Management System (SLMS)

Organization : Ekalavya Foundation
Framework    : Flask + PostgreSQL
Version      : 1.0
Sprint       : Productization

This stylesheet contains the common UI components used throughout
the Vidya Vahini platform. All dashboards 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;
    }

}

/***********************************************************************
DEVELOPER NOTES

VIDYA VAHINI
Student Lifecycle Management System (SLMS)

Organization : Ekalavya Foundation

This stylesheet defines the common UI framework used throughout the
Student Lifecycle Management System.

Design Principles
-----------------
• One CSS class = One definition
• One component = One section
• Keep related components together
• Avoid duplicate class definitions
• Reuse UI components across all dashboards
• Maintain consistent spacing, colors and typography

This stylesheet is intended to be shared across:

✓ Student Dashboard
✓ School Dashboard
✓ Tutor Dashboard
✓ Mentor Dashboard
✓ Alumni Dashboard
✓ Reports
✓ 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

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