﻿/* ===== Mobile Sidebar Behavior ===== */
.sidebar-toggle {
    display: none;
}

.hamburger-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 20px;
    font-size: 24px;
    z-index: 1100;
    color: white;
    background: #D6202A;
    border: solid;
    border-color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .hamburger-btn {
        display: block;
    }

    .main-sidebar {
        transform: translateX(-100%);
    }

    .sidebar-toggle:checked ~ .main-sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/*Hide logo image on small screens*/
.logo-img {
    width: 220px;
    height: auto;
    margin-bottom: 0.5rem;
}

@media (max-width: 991px) {
    .logo-section {
        display: none;
    }
}

.user-card {
    text-align: center;
    margin-top: 1rem;
}

    
.logout-button {
    margin-top: auto; /*Push the logout button to the bottom */
    padding: 16px;
}

.logout-section {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-sidebar {
    width: 250px;
    background-color: #1B1B2F;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar {
    width: 250px;
    background-color: #1B1B2F;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    height: 100vh; /* Make sure it fills the full height */
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: auto; /* keep this if you want only inner links scroll */
}

.nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background-color: #D6202A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .logout-btn:hover {
        background-color: #c82333;
    }





body, html {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}



.m-l-2 {
    margin-left: 8px;
}

.topbar-title {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

@media (min-width: 768px) {
    .top-bar {
        margin-left: 0; /* matches the sidebar width */
    }
}

/*--- Main Content Area ---*/
.main-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f6f6f6;
    overflow: hidden;
}

/* Mobile view: sidebar is hidden */
@media (max-width: 767px) {
    .main-content {
        margin-left: 0 !important;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .title {
        text-align: center;
        margin-bottom: 10px;
        font-size: 22px;
        font-weight: bold;
        font-size: 1rem; /* default size (28px) */
    }
}

/* Desktop view: sidebar is visible */
@media (min-width: 768px) {
    .main-content {
        margin-left: 250px !important;
    }
}

.content-body {
    overflow-y: auto;
    flex: 1;
}

.form-container {
    margin: 1rem auto;
    background-color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
    font-size: 1.4rem; /* default size (28px) */
}

@media (max-width: 576px) {
    .title {
        font-size: 1.1rem; /* smaller on mobile (20px) */
    }
}

.section {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    background-color: #fff;
    margin-bottom: 1.5rem;
}

/*.section {
    border: 1px dashed #a6a6a6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}*/

.section-header {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(to right, #ffe1e1, #fff5f5);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-card-header {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji-circle {
    font-size: 1.1rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


.subsection-card {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    margin-left: 10px;
    margin-right: 10px;
    border: 1px solid #dee2e6;

}

.subsection-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/*.section-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #dc3545;
    text-align:center;
}*/

.section-line {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
}

.section-line-square {
    background-color: #FFFFFF;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.chart-heading {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #616d85;
    font-size: 0.9rem; /* smaller text */
    text-align: center;
}

.sticky-save-btn {
    background-color: red!;
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 10px 20px;
    text-align: right;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    min-width: 120px; /* this ensures minimum width */
    width: auto; /* allows button to grow if content is longer */
}

.btn-success {
    background-color: #4caf50;
    color: white;
    border: none;
}

    .btn-success:hover {
        background-color: #388e3c;
    }

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Student Profile Header */
.student-header {
    margin-left: 0px;
    padding: 12px;
    background-color: white;
    margin-bottom: 0px;
    height: auto;
}

    .student-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

.student-photo-fee1 img {
    height: 100px !important;
    width: 70px !important;
    /*object-fit: cover;*/
    border-radius: 8px;
    background-color: #e0e0e0;
}

/* Student Fee Header */
.student-photo-fee img {
    width: 135px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #e0e0e0;
}

@media (max-width: 576px) {
    .student-photo img {
        width: 100px;
        height: 120px;
    }

    .student-photo-fee img {
        width: 105px !important;
        height: 150px !important;
    }
}

.mother-photo img {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #e0e0e0;
}

@media (max-width: 767px) {
    .mother-photo {
        display: none !important;
    }
}

/* Student Header SVG Style */
.svg-icons {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on small screens */
    gap: 8px;
}

/* Box holding each SVG */
.svg-box {
    width: 65px; /* default size on desktop */
    height: 65px;
    flex-shrink: 0;
}

/* Scale SVGs to fill container */
.svg-box svg {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

/* Responsive: smaller icons on mobile */
@media (max-width: 576px) {
    .svg-box {
        width: 40px;
        height: 40px;
    }

    /*.student-header {
        flex-wrap: wrap;*/ /* wrap photo/info/icons vertically */
        /*gap: 10px;
    }*/
}



.student-photo-sibling img {
    height: 100px !important;
    width: 70px !important;
    object-fit: cover;
    border-radius: 8px;
    background-color: #e0e0e0;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.student-name {
    font-size: 24px;
    font-weight: bold;
    color: #1565C0;
}
/* On small screens, reduce font-size if .long-name is present */
@media (max-width: 576px) {
    .student-name.long-name {
        font-size: 18px;
    }
}

.student-id {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}


.svg-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px; /* Add spacing between name and icons */
}

    .svg-icons .icon {
        width: 65px;
        height: 65px;
    }

/* Student Dashboard */
.scroll-container {
    overflow-y: auto;
    height: 100vh;
    background-color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 200px);
    grid-auto-rows: 200px;
    gap: 16px;
    justify-content: start;
    padding: 10px;
}

.card {
    background-color: #2d2d33;
    border-radius: 12px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: white;
    transition: transform 0.2s;
}

    .card:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

.icon {
    font-size: 50px;
}

.label {
    font-size: 22px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Tablet - 3 columns */
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
    }
}

@media (max-width: 768px) {
    /* Mobile - 2 columns */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

@media (max-width: 480px) {
    /* Very small screens - 1 column */
    .dashboard-grid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}




/* Modern table design */
.modern-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.05); /* subtle lift */
    border: 1px solid #E0E0E0;
}

    .modern-table th,
    .modern-table td {
        font-size: 0.925rem;
        padding: 0.6rem 0.75rem;
        vertical-align: middle;
        color: #333333; /* clean dark text */
        border-bottom: 1px solid #E0E0E0; /* subtle row dividers */
    }

    .modern-table o thead th {
        background-color: #FAE3E3; /* light rose pink */
        color: #5E2C2C; /* rich chocolate brown */
        font-weight: 600;
        border-bottom: 2px solid #C97C7C; /* warm rose border */
        text-align: left;
    }

    .modern-table thead th {
        background-color: #d1e3ff; /* #c5d7f2 light steel blue */
        color: #161a1c; /* deep charcoal */
        font-weight: bold;
        border-bottom: 2px solid #161a1c; /* slate gray */
        text-align: left;
    }

    .modern-table tbody tr:nth-child(even) {
        background-color: #F9F9F9; /* zebra stripe */
    }

    .modern-table tbody tr:nth-child(odd) {
        background-color: #FFFFFF;
    }

    .modern-table tbody tr:hover {
        background-color: #fafafa; /* pale red hover */
        transition: background-color 0.2s ease-in-out;
    }



/* PRINT STYLES */
@page {
    margin: 0.3in;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #333;
}

#content {
    background: white;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #dee2e6;
    padding: 3px;
    text-align: left;
    font-size: 12px;
}

thead th {
    background-color: #0d6efd;
    color: black;
}

tbody tr:nth-child(even) {
    background-color: #f2f6fc;
}

.custom-tab {
    padding: 5px;
}

.tabs-container {
    display: flex;
    overflow-x: auto;
    background-color: #eeeeee;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tab-button {
    background-color: #f5f5f5;
    color: black;
    font-weight: bold;
    border: 2px solid lightgray;
    padding: 10px 15px;
    border-radius: 20px;
    margin-right: 10px;
    white-space: nowrap;
    cursor: pointer;
}

    .tab-button.active {
        background-color: white;
        border-color: #cc2131;
        color: #cc2131;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    }


.validation-message,
.validation-errors,
.validation-summary-errors,
.field-validation-error {
    color: #dc3545 !important; /* Bootstrap red for errors */
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== Login Page ===== */
.school-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-align: center;
    font-weight: 700;
    margin: 20px 0;
    color: #D6202A;
    font-size: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Tablet view */
@media (max-width: 991px) {
    .school-title {
        font-size: 1.75rem !important;
    }
}

/* Mobile view */
@media (max-width: 576px) {
    .school-title {
        font-size: 1.2rem !important;
    }
}



