/* site.css � merged and cleaned */
/* === Base / Layout === */
@charset "utf-8";

html, body {
    overflow-x: hidden;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #212529;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", "Segoe UI Semibold", sans-serif;
    color: #14213b;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 600;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* Paragraphs & Text */
p, span, a, ul, ol {
    color: #444;
    font-size: 0.9rem;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

p, span {
    margin-bottom: 5px;
    line-height: 1.6;
}

small, .small {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Links */
a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #222;
        text-decoration: underline;
    }

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Buttons (override Bootstrap or plain) */
button, .btn {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.signout-btn.btn-dark {
    background-color: #333;
    color: #fff;
}

.signout-btn:hover {
    color: #444;
}

footer .btn {
    background-color: #333;
    color: #f4e8e2;
}

a.navbar-brand {
    color: #fff !important;
}
/* small override for nav links to maintain spacing */
a.nav-link {
    color: #fff !important;
    padding-left: 10px !important;
}

li.nav-item.active{
    font-weight:bolder;
    color:#fff!important;
    background-color:rgba(255,255,255,0.1);
}
/* 📱 Small devices (mobile, up to 576px) */
@media (max-width: 576px) {
    .box {
        font-size: 14px;
        padding: 10px;
    }
}

/* 📱📲 Medium devices (tablet, 577px–768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .box {
        font-size: 15px;
        padding: 12px;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    body {
        font-size: 0.95rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .student-item {
        width: 100%;
    }

    .navbar-nav.flex-wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .navbar-brand {
        color: #fff !important;
    }
}

/* 💻 Large devices (desktop, 769px–992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .box {
        font-size: 16px;
        padding: 15px;
    }

    a.navbar-brand {
        color: #fff;
    }
}

/* 🖥️ Extra large devices (wide screens, 993px and above) */
@media (min-width: 993px) {
    .box {
        font-size: 18px;
        padding: 20px;
    }

    .navbar .dropdown-menu {
        position: static;
        float: none;
        /*background-color: #212529;*/
        border: none;
    }

    .navbar .dropdown-item {
        color: #fff;
    }

    .navbar .dropdown-item:hover {
        background-color: #343a40;
    }
}

/* === Utility tweaks === */
/* Reduce card heights on smaller viewports */
@media (max-width: 1200px) {
    .card-body {
        /*max-height: 260px;*/
    }
}




/* === Card styling === */
.card {
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 10px 0;

    background-color: #F1F4F6;
    color: #1f2937;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* note: keep height auto in case tall content used; override per-card if fixed needed */
    /*height: 400px;*/
    height: 450px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: rgba(0, 0, 0, 0.18) 0px 8px 20px;
    border: 1px solid #3080e1;

}

.card img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover;
}

.card a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card a:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.card-header {
    min-height: 60px;
    font-weight: 600;
    background-color: #3774BF;
    color: #fff;
    padding: 0.75rem 1rem;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
    position: relative; /* Add this to anchor the absolute image */
}

    
.card-header h3.card-title,
.card-header h3.card-title a {
    color: #fff;
    margin: 0;
    padding:-5px;
    line-height:14px;
    font-size: 1.1rem;
}

h5.card-title {
    color: #111;
    margin: 0;
    padding-left: -5px;
    font-size: 1.1rem;
}


.card-body {
    padding: 10px 15px;
    background-color: #fff;
    overflow-y: visible;
    overflow-x: hidden;
    /*max-height: 420px;*/ /* limits panel body height � adjust per card */
    /*overflow:visible;
    flex: 1 1 auto;*/
}

.card-footer {
    background-color: #cddef2;
    color: #162332;
    padding: 0.6rem 1rem;
    min-height: 50px; /* Adjust based on your content */
    display: flex;
    flex-direction: column;
    position: relative;
}
.card-footer .collapse {
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 100%;
        z-index: 10;
        background-color: #cddef2;
}

/* Shared footer style to ensure equal height across cards */
.card-footer-fixed {
    min-height: 50px; /* Adjust based on your content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 1rem !important;
}

/* Ensure the inner rows take full width */
.card-footer-fixed .row,
.card-footer-fixed .d-flex {
    width: 100%;
    align-items: center;
}

.card-footer button {
    background-color: #fff; /* Remove or override this if it exists */
}

/* small tweaks */
.text-muted i {
    margin: 0 10px;
}

/* === Buttons / Icon wrapper === */
.btn {
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

    .btn:hover, .btn:focus {
        background-color: rgba(0, 0, 0, 0.06);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    }

/* icon wrapper */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* hover-lift */
.hover-lift {
    transition: transform 0.2s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
    }

/* === Profile card === */
.profile-card {
    position: relative;
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px !important;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: absolute;
    right: -10px;
    top: 130%;
    transform: translateY(-50%);
    z-index: 10;
}
/*.profile-image {
    width: 50px !important;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;*/
    /* Remove position: absolute, top, and right */
/*}*/

/* === Student nav items === */
.student-item .nav-link {
    color: white;
    padding: 0.5rem 1rem;
}

.student-item.active .nav-link {
    background-color: rgba(255,255,255,0.12);
    border-radius: 8px;
}

/* accessibility focus ring for keyboard users */
.student-item:focus, .student-item:focus-within {
    outline: 3px solid rgba(13,110,253,0.25);
    border-radius: 8px;
}

/* truncate one line when collapsed */
.course-header {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    margin: -5px 0px -5px -10px; /* Profile expand/collapse helpers */
    padding: 0px;

}

.course-header[aria-expanded="true"] {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
}


.course-header:hover {
    background-color:#e0e0e0;
}

.collapse-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.collapse-content {
    border-left: 4px solid #ddd;
    padding: 0px 0px 0px 5px;
    margin-left: -10px;
    background-color: #fcfcf8;
    font-size: 15px;
}
.coursework-container .collapse.show {
    border-left: 4px solid #ddd;
    padding: 0px 0px 0px 5px;
    margin-left: -10px;
    background-color: #fcfcf8;
/*    font-size: 15px;*/
}

#GoogleCourseSubmis
}
/* === Dropdowns, Google Translate & Language menu === */
/* Make dropdowns light and high-contrast so 'Sign out' is readable on a dark navbar.
   Keep a 'dark' variant for visual grouping if you want, but base dropdowns should be light. */
.dropdown-menu {
    background-color: #fff;
    color: #222;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Links inside dropdowns */
.dropdown-menu a,
.dropdown-menu .dropdown-item,
.dropdown-menu li a {
    color: #222;
    display: block;
    padding: 8px 12px;
    text-decoration: none;
}

    .dropdown-menu a:hover,
    .dropdown-menu .dropdown-item:hover {
        background-color: #f1f5f9;
        color: #0d6efd;
    }

/* Preserve a controlled 'dark' style if you want a contrasting visual � but lighter text for readability */
.dropdown-menu-dark {
    background-color: #fff; /* switched from very dark to light for readability */
    border: 1px solid #e6edf8;
    color: #222;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 250px;
    padding: 0.5rem;
}

.dropdown-menu-dark ul,
.dropdown-menu-dark li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.dropdown-menu-dark a {
    display: flex;
    align-items: center;
    color: #222;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.15s;
}

.dropdown-menu-dark a:hover {
    background-color: #eef6ff;
    color: #0d6efd;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    margin-right: 6px;
    object-fit: cover;
}

/* Make the Google Translate select present but off-screen so JS can find it */
#google_translate_element {
    /* avoid display:none � keep it present in DOM for select.goog-te-combo */
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}

/* Scrollbar styling for the dropdown */
.dropdown-menu-dark::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu-dark::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.dropdown-menu-dark {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}


/* small override to ensure user menu toggle is visible on dark navbars */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.95);
}

.navbar-dark .navbar-toggler-icon {
    filter: brightness(1.1);
}

/* ensure dropdown caret and icons are visible */
.navbar .dropdown-toggle::after {
    margin-left: .4rem;
}

/* accessibility: focus */
a:focus, button:focus, .btn:focus {
    outline: 3px solid rgba(13,110,253,0.18);
    outline-offset: 2px;
}

/* Highlight event on hover */
.calendar-event:hover {
    background-color: #e0e0e0; /* light grey */
}

/* Keep link color normal */
.calendar-event a {
    color: inherit;
}

.calendar-event a:hover {
    text-decoration: underline;
}

.dataList:hover {
background-color: #e0e0e0; /* light grey */
}

.dataList a {
color: inherit;
}

.dataList a:hover {
    text-decoration: underline;
}

/* Make toggle note */
.note-toggle {
    position: relative;
    cursor: pointer;
}

/* Add the " -" only when expanded */
.note-toggle[aria-expanded="true"]::after {
    content: " X"; /* dash indicates "click to collapse" */
    color: #000;
    margin-left: 0.3rem;
    font-size: 1.0em;
}

/* When collapsed, no symbol shows */
.note-toggle[aria-expanded="false"]::after {
    content: "";
}

.note-toggle, .btn-link {
    white-space: nowrap; /* Prevents buttons from breaking into two lines */
}
/* end of file */



.pti-refresh-btn {
    background: transparent;
    border: none;
    font-size: 0.9 rem; /* larger icon */
    line-height: 1;
    padding: 0; /* remove margin/white space */
    cursor: pointer;
    color: #fff;
}

.pti-refresh-btn:hover {
    transform: scale(1.1);
}

/* Make PTI footer same height as School Bus card */
.pti-footer-tight {
    /*padding-top: 3px !important;
    padding-bottom: 3px !important;*/
}

.pti-card-body {
    padding: 10px 15px;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    z-index: 999;
    position: relative;
    margin-top: -28px;
}

.appt-name {
    flex: 1; /* allows name column to flex naturally */
    text-align: left; /* left align text */
    min-width: 0; /* required for ellipsis in flexbox */
}

.appt-name-text {
    display: inline-block;
    max-width: 180px; /* adjust width as needed */
    white-space: normal;
    overflow-wrap: break-word;
    /*    text-overflow: ellipsis;
    vertical-align: middle;*/
}

/***************** LANDING PAGE */
.hero {
    background: linear-gradient(135deg, #005eb8, #003b73);
    color: #fff;
    padding: 90px 0 80px;
    text-align: center;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

.logo {
    width: 160px;
    height: 160px;
    /*border-radius: 50%;
    background: white;*/
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 28px;
    opacity: 0.95;
    color: #fff;
}

.login-btn {
    display: inline-block;
    background-color: #ffb81c;
    color: #004382;
    padding: 16px 34px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

    .login-btn:hover {
        background: var(--btn-hover);
        color: #fff;
        transform: translateY(-2px);
    }
/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 70px auto;
}

.feature {
    background: #fff;
    padding: 20px;
    /*padding: 32px 26px;*/
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e1e5ec;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.25s ease;
}

.feature:hover {
    transform: translateY(-6px);
}

.feature h2 {
    color: #004382;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

li.list-group-item {
    padding: 0px 0px 3px 0px;
    margin: 5px 0px;
    border-bottom: 1px dashed #f3f3f3;
}

li.list-group-item span {
    margin: 0px;
    padding: 0px;
}

.btn-outline-light {
    background-color: #eaeff3;
    border: 1px solid #444;
    color: #444;
    font-size:16px;
    padding:5px;
    font-weight:400;
}
.btn-outline-light:hover{
    color:#1461cd;
}

#ptiSchoolInfo {
    margin: 0px;
    border: 1px solid #ffb81c;
    padding: 10px;
    background-color: #fff;
}

.btn-in-footer {
    /*padding:0.1rem 0.4rem !important;*/
    background: none;
    font-size: 0.9rem;
}

.btn-in-footer:hover {
    color: #111;
}

p.card-text {
    padding-left: 5px;
}

p.text-primary {
}

div.course-header {
    color: #163066;
    font-weight: 600;
}
.copyright {
    border-top: 1px solid #2a2403;
    text-align: center;
}
.border-white{
    color:#e0dada;
}
.border-white:hover{
    color:#c8ad1d;
}
h5.modal-title, h2.modal-title {
    color: #fff !important;
    background:none;
}
h2.modal-title{
    font-size:1.8em;
}
#bookingModal h3{
    font-size: 1.2em;
    color:#111;
    font-weight:400;
}
.modal-footer button.btn-secondary{
    color:#111;
}
label.newpassw {
    font-weight: 500;
    font-size: 1.1rem;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    
}
#password-error .lbl-reminder input.form-control{
    font-size: 13px !important;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
}
input#newPasswordInput.form-control.form-control-lg{
    font-size:13px !important;
}

/* Universal Adaptive Action Button - Optimized for High Resolution */
.action-pill-adaptive {
    display: inline-flex;
    align-items: center;
    padding: 2px 5px; /* Slightly more padding for a better "pill" look */

    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    /* High-contrast colors for the dark blue header */
    background-color: #2b6cb0 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px); /* Modern frosted glass effect */
}

.action-pill-adaptive:hover {
    background-color: #1a4a7a !important; /* Darker blue on hover */
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    border-color: #ffb81c;
}

/* Specific spacing for icons inside the buttons */
.action-pill-adaptive i {
    font-size: 0.85rem;
}

/* For buttons in headers, we can add a subtle white glow to the border */
.card-header .action-pill-adaptive {
    border-color: rgba(255, 255, 255, 0.6);
}


/*PTI book appointment popup window*/
/* High-Resolution Booking Modal */
#modal-container .modal-xl {
    max-width: 95vw; /* Utilize screen width for teacher columns */
}

#modal-container .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
}

#modal-container .modal-header {
    background: #14213b; /* Dark Medical Blue */
    color: white;
    border-bottom: 2px solid #2b6cb0;
    padding: 1rem 1.5rem;
}

/* Scrollable area for timeslots */
#BookingModalBody {
    max-height: 98vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #fcfdfe;
}

/* Teacher Selection Area */
.teacher-list-section {
    height: 100%;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

/* Custom Checkbox Design for Timeslots */
.timeslot-container label {
    display: block;
    background: #fff;
    border: 1px solid #cbd5e0;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.timeslot-container label:hover {
    border-color: #2b6cb0;
    background-color: #ebf8ff;
}

/* Highlight the selected slot */
.timeslot-container input:checked + span {
    font-weight: bold;
}

.timeslot-container input:checked + label {
    background-color: #2b6cb0 !important;
    color: white !important;
    border-color: #1a4a7a;
}

/* Disabled/Booked slots */
.timeslot-container input:disabled + label {
    background-color: #edf2f7;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* ---------------- PTI book appointment ---------------- */

.pti-teacher-grid {
    display: flex;
    flex-direction: column; /* Forces vertical stacking */
    gap: 12px;
    width: 100%; /* Ensure it fills the sidebar width */
}

.disabled-teacher {
    opacity: 0.6;
    background-color: #f0f0f0 !important;
    cursor: not-allowed;
}

.pti-teacher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
    user-select: none;
    width: 100%;
}


/* Highlight when selected */
.pti-teacher-item input:checked + .pti-teacher-name,
.pti-teacher-item input:checked {
    font-weight: 600;
}


.pti-teacher-item input:checked ~ .pti-teacher-name {
    color: #0d6efd;
}   

/* Make the checkbox larger and more visible */
.pti-teacher-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}


/* Hover effects */
.pti-teacher-item:hover {
    background: #eef6ff;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}


/* Teacher name flex */
.pti-teacher-name {
    flex-grow: 1;
    color:#0d6efd;
}

.sidebar-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.teacher-card {
    transition: all 0.2s ease;
    cursor: pointer;
    display: block; /* Makes the label fill the width of the container */
    width: 100%;
}

.teacher-card:hover .rounded {
    background-color: #fff;
    border-color: #0d6efd !important;
}
    

.teacher-card.selected .rounded {
    background-color: #e7f1ff; /* Light Blue */
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}
.teacher-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.teacher-card.selected .avatar-circle {
    background: #0d6efd;
}

/* Container for the pill */
.slot-pill {
    /*transition: transform 0.1s ease;*/
    margin-bottom: 4px;
}

/* Booked by OTHERS */
.slot-other-booked {
    opacity: 0.7;
    cursor: not-allowed;
}

.slot-other-booked label {
    background-color: #e9ecef !important; /* Muted grey */
    color: #6c757d !important;
    border: 1px dashed #adb5bd !important;
    pointer-events: none; /* Prevents click interaction */
}

/* Optional: Icon specific colors */
.slot-other-booked i {
    color: #dc3545; /* Red lock icon */
}

/* Target the booking modal specifically by its ID */
#bookingModal .modal-dialog {
    /* These properties force the modal to take up 95% of the screen */
    max-width: 98vw !important;
    height: 95vh !important;
    margin: 2.5vh auto;
}

#bookingModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}


#bookingModal .modal-body {
    /* flex: 1 tells the body to expand and take all space not used by header/footer */
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Remove default padding to use full width */
    overflow: hidden; /* We will use internal scrolling instead */    
}

/* Ensure the Bootstrap row inside the body fills the height */
#bookingModal .modal-body > .container-fluid,
#bookingModal .modal-body > .container-fluid > .row {
    height: 100%;
}

/* --- 2. ELIMINATE WASTED FOOTER SPACE --- */
/* If you have a modal-footer, make sure it doesn't have huge padding */
#bookingModal .modal-footer {
    padding: 10px 20px;
    margin-top: auto; /* Pushes it to the absolute bottom */
}

/* === HIGHLIGHTED CSS ADDITIONS === */

/* Ensure the grid can accommodate a full-width date row */
.timeslot-grid {
    display: flex;
    /*flex-direction: column;*/
    flex-wrap: wrap; /* Allows items to wrap to next line  */
    width: 100%;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.date-header-row {
    /*width: 100%;
    text-align: center;
    margin: 12px 0 8px 0;
    position: relative;*/
    flex: 0 0 100%; /* Force full width in flex container */
    width: 100%;
    text-align: center;
    margin: 12px 0 8px 0;
    position: relative;
    clear: both;
}

/* Horizontal line behind the date */
.date-header-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.date-label {
    position: relative;
    z-index: 2;
    background: #ffffff; /* Matches card background to hide the line behind text */
    padding: 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* --- 3. MAKE COLUMNS STRETCH --- */
.timeslot-scroll-area {
    flex-grow: 1;
    /* Remove the fixed height calc and let flexbox handle it */
    height: 100%;
    /*overflow-y: auto;*/
    padding: 20px;
}

/* Horizontal scroll for slots on mobile */
@media (min-width: 576px) and (max-width: 768px) {
    .sidebar-scroll {
        /* Disable the fixed height/max-height */
        height: auto !important;
        max-height: none !important;
        /* Disable the scrollbar behavior */
        overflow-y: visible !important;
        overflow-x: visible !important;
        /* Optional: Remove any absolute positioning if applied */
        position: relative !important;
        /* Ensure it doesn't try to flex-shrink */
        flex: none !important;
    }

    /* Force height to auto to override the 100% height */
    .h-100 {
        height: auto !important;
    }

    /* Specifically for your teacher cards */
    .card.h-100 {
        height: auto !important;
    }

    /* Prevent the container from collapsing */
    .pti-card-body {
        -webkit-overflow-scrolling: touch; /* Smooth scroll for mobile */
        display: block !important;
        max-height: 95vh;
    }

    .row.g-3 {
        display: flex !important;
        flex-direction: column !important;        
    }

    /* On very small screens, 20% might be too small, 
       so we override to 2 columns minimum */
    .slot-pill {
        min-width: calc(50% - 10px) !important;
    }

    .timeslot-scroll-area {
        /* Allow this section to expand and take up remaining space */
        flex-grow: 1;
        white-space: nowrap;        
        /*max-height: 100%;*/ /* Ensure it fills the modal body */
        /* This height calculation leaves room for the header/instructions */
        height: calc(95vh - 200px);
        padding-bottom: 20px; /* Space at the bottom for better UX */
    }
}
/* -------------------- PTI book appointment ------------------------- */


.email-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* The copy icon/text appears on hover */
.email-container::after {
    content: "📋 Copy"; /* Or use a font-awesome class if available */
    position: absolute;
    right: -60px;
    top: 0;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.8em;
    color: #6c757d;
}

.email-container:hover::after {
    opacity: 1;
}
.slot-pill label.btn-timeslot {
    color: #000 !important;
    font-size: 1em;
    font-weight:400;
}
.timeslotName{
    font-size:1.1em;
    color:#2b6cb0;
}
.timeSlotCheckbox{
    background-color:#eeefff;
}
/*.slot-pill .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active{*/
.slot-pill .btn-check:checked + .btn, .btn.active, .btn.show{
    background-color: #ffb81c;
}
.pti-teacher-grid .pti-teacher-name{
    font-size: 1em;
    color: #111;
}
#bookingModalContent .btn:hover{
    color:#111 !important;
}

/* Ensure BookOrCancelMessage is always on top and doesn't get hidden */
#BookOrCancelMessage {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 2px solid #dee2e6;
    margin: 0 -12px 12px -12px;
    pointer-events: none; /* Allow clicks to pass through to content behind */
}

    #BookOrCancelMessage .alert {
        pointer-events: auto; /* Re-enable clicks for the alert itself (e.g., closing it) */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin: 0 auto;
        max-width: 100%;
        margin-bottom: 0 !important;
    }

/* Styling for a blocked/booked slot */
.slot-other-booked label {
    background-color: #e9ecef !important; /* Light grey */
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Ensure the pill transition is smooth */
.slot-pill {
    transition: all 0.2s ease-in-out;
}
.schoolcash-item-link:hover,
.schoolcash-item-link:hover span {
    color: #0d6efd !important;
}