﻿/* ===== 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: #024CAA;
    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;
    }
}

/* Logo container height equals top-bar height */
.logo-section {
    background-color: #024CAA;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid white;
}

/*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;
}

    .user-card .profile-pic {
        width: 140px;
        height: 160px;
        border-radius: 70%;
        border: 3px solid #4a90e2;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        object-fit: cover;
        margin-bottom: 0.5rem;
    }

.logout-button {
    margin-top: auto; /*Push the logout button to the bottom */
    padding: 16px;
}

.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;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.3s;
}

    .nav-link i.material-icons {
        margin-right: 10px;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: #024CAA;
        border-left: 4px solid #fff;
        color: #fff;
    }

    .nav-link.active {
        font-weight: bold;
        color: white;
    }

/* Main Page / Sidebar css */

/*Patient Dashboard start here */
.dashboard-grid-patient {
    display: grid;
    grid-template-columns: repeat(5, 210px);
    grid-auto-rows: 210px;
    gap: 20px;
    justify-content: start;
    padding: 10px;
}

/* Tablet screens: 3 columns */
@media (max-width: 1024px) {
    .dashboard-grid-patient {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile screens: 2 columns */
@media (max-width: 768px) {
    .dashboard-grid-patient {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Very small screens: 1 column */
@media (max-width: 480px) {
    .dashboard-grid-patient {
        grid-template-columns: 1fr !important;
    }
}


/*Patient Dashboard end here */

/* 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;
}


.top-bar {
    height: 30px;
    background-color: #024CAA;
}

@media (min-width: 768px) {
    .top-bar {
        margin-left: 0px; /* matches the sidebar width */
    }
}

body, html {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/*---Main Content Area---*/
.main-content {
    padding: 0 !important;
    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);
}

.form-container-1000 {
    max-width: 1000px;
    margin: 1rem 0; /* Changed from 1rem auto to 1rem 0 (top-bottom: 1rem, left-right: 0) */
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-container-1200 {
    max-width: 1200px;
    margin: 1rem 0; /* Changed from 1rem auto to 1rem 0 (top-bottom: 1rem, left-right: 0) */
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}


.form-title {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: black;
    text-align:center;
}

.title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.fancy-card {
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    background-color: #fff;
    margin-bottom: 1.5rem;
}

.fancy-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 {
    color: white;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section {
    padding: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}


.section {
    border: 1px dashed #a6a6a6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.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;
}

.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;
    }

.btn-logout {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #fff;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-logout:hover {
        background-color: #024CAA;
        border-color: #fff;
    }

.spinner-border {
    width: 2rem;
    height: 2rem;
}













.patient-header {
    display: flex; /* Use flex for row layout */
    align-items: flex-start;
    gap: 20px; /* Gap between photo and info */
    padding: 6px;
    background-color: white;
    height: auto;
}

.patient-photo {
    width: 130px;
    height: 160px;
    border-radius: 8px;
    background-color: #d1d9eb; /* light gray box */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .patient-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

.patient-photo-fee img {
    width: 135px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #e0e0e0;
}

.patient-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.patient-name {
    font-size: 24px;
    font-weight: bold;
    color: #1565C0;
}

.student-class {
    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(4, 210px);
    grid-auto-rows: 210px;
    gap: 20px;
    justify-content: start;
    padding: 10px;
}


.dashboard-grid-staff {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* exactly 4 columns */
    gap: 20px;
    padding: 20px;
    max-width: 1000px; /* optional: controls total grid width */
    margin: 0 auto; /* center the grid horizontally */
}

.card {
    background-color: #2d2d33 !important;
    border-radius: 12px !important;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    color: white !important;
    transition: transform 0.2s !important;
}

    .card:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

.icon {
    font-size: 50px;
}

.label {
    font-size: 22px;
    margin-top: 10px;
}
.card-disabled {
    background-color: #555 !important;
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* 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;
    }


.table-gray {
    width: 100%;
    border-collapse: collapse;
}

    .table-gray th {
        background-color: #e9ecef;
        padding: 0.75rem;
        text-align: left;
        border: 1px solid #dee2e6;
    }

    .table-gray td {
        padding: 0.75rem;
        border: 1px solid #dee2e6;
    }

    .table-gray tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .table-gray tr:hover {
        background-color: #e3f6ff;
    }

    