﻿/* ==================== BASIC ELEMENTS ==================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-family: Arial, sans-serif;
    font-family: system-ui, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==================== ROOT VARIABLES ==================== */
:root {
    --numDays: 6;
    --numHours: 13;
    --numIntervals: 79;
    --timeHeight: 1.2em;
    --calBgColor: #fff1f8;
    --eventBorderColor: #f2d3d8;
    --eventColor1: #ffd6d1;
    --eventColor2: #fafaa3;
    --eventColor3: #e2f8ff;
    --eventColor4: #d1ffe6;
}

/* ==================== FOCUS ELEMENTS ==================== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==================== FORM ELEMENTS ==================== */
.control-label {
    color: #536387;
    font-size: 14px;
    line-height: 24px;
    display: block;
    margin-top: 10px;
    margin-bottom: 2px;
}

.select-dropdown {
    background-image: linear-gradient(45deg, transparent 50%, blue 50%), linear-gradient(135deg, blue 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), 100% 0;
    background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
    background-repeat: no-repeat;
}

.form-check-input {
    margin-bottom: 10px;
    margin-right: 10px;
}

.form-check-label {
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    line-height: 24px;
    color: #536387;
}

    .form-check-label a {
        margin-left: 5px;
        color: #29a5d4;
    }

form-heading {
    padding: .5em .7em;
    margin-bottom: .5em;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 1.25em;
    font-weight: 100;
    transition: background-color .1s;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-primary:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.btn-search {
    border-radius: 5px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
}

    .btn-search:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.btn-previous {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-previous:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.btn-next {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

.btn-nexthover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}

.btn-index-number {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

    .btn-index-number:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.button-sticky {
    border: 2rem;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
    margin-top: 1rem;
}

.match-default {
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

/* ==================== LAYOUT ELEMENTS ==================== */
.logo-header {
    width: 8em;
}

.sticky-top {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    position: sticky;
    top: -3px;
    z-index: 1030;
    margin-bottom: .5em;
    padding: .75em;
}

.section-card {
    background-color: #fff;
    color: #505d68;
    display: flex;
    flex-direction: column;
    height: auto;
    font-weight: 100;
    border: 1px solid rgba(0,0,0,.125);
    padding-bottom: 10px;
}

.wrapper {
    display: flex;
    position: relative; /* Ensure relative positioning for sticky columns */
}

.container {
    max-width: 100vw;
    margin: 0;
}

.two-hundred-pc-width {
    width: 200%;
}

.boxed-offed {
    border: 1px solid black;
    margin-bottom: 0.5rem;
    line-height: 0.7em !important;
}

/* ==================== COLUMN LAYOUT ==================== */
.sticky-column {
    position: sticky;
    top: 0;
    height: 90vh; /* Full height of viewport */
    background-color: #f0f0f0; /* Light background color */
    border: 1px solid #ccc; /* Border for visual separation */
    padding: 20px; /* Padding for content */
    box-sizing: border-box; /* Ensure padding is included in width */
    width: 10rem;
    margin-top: 4rem;
    background-color: #f8f9fa;
    width: 15rem;
    padding: 15px;
    border: none;
    border-radius: 8px;
    margin-top: 2rem;
    position: sticky;
    top: 20px;
    height: calc(100vh - 180px);
    overflow-y: auto;
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px;
    margin-top: 0;
    width: 100%;
}

.sticky-column-header {
    font-size: 0.9rem;
}

.sticky-column-paragraph {
    font-size: 0.5rem;
}

.sticky-input-areas {
    font-size: 0.5rem;
}

.middle-column {
    flex: 1; /* Take remaining space */
    padding: 0px; /* Padding for content */
    box-sizing: border-box; /* Ensure padding is included in width */
    width: 100%;
}

.button-container {
    display: inline;
}

/* ==================== CALENDAR LAYOUT ==================== */
.calendar {
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;
    margin: 0.5rem;
    padding-bottom: 1em;
}

    .calendar .days {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* 6 columns instead of default */
        gap: 5px;
    }

    .calendar .day {
        min-width: 0;
        overflow: hidden;
    }

.timeline {
    display: grid;
    grid-template-rows: repeat(var(--numIntervals), var(--timeHeight));
}

.days {
    display: grid;
    grid-column: 2;
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.events {
    display: grid;
    grid-template-rows: repeat(var(--numIntervals), var(--timeHeight));
    border-radius: 5px;
    background: #ffffff;
}

.title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cal-block-text {
    font-size: 0.5em;
    font-size: 0.85rem;
    line-height: 1.2;
    overflow: hidden;
}

/* Add this to your site.css file or within a <style> tag in your Index.cshtml */
.event .title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-wrap: break-word; /* Enable word wrapping */
    word-break: break-word; /* Break words at appropriate hyphenation points */
    overflow-wrap: break-word; /* Allow long words to be broken and wrap */
    white-space: normal; /* Override any nowrap settings */
    max-width: 100%; /* Ensure content doesn't exceed container width */
}

/* Ensure the event container doesn't stretch */
.event {
    border: 1px solid var(--eventBorderColor);
    border-radius: 5px;
    padding: 0.5rem;
    margin: 0 0.1rem;
    background: white;
    margin-top: -0.3em;
    margin-bottom: 0.3em;
    width: auto; /* Control the width */
    box-sizing: border-box; /* Include padding in width calculations */
    min-width: 0; /* Allow the element to shrink below content size if needed */
    overflow: hidden; /* Hide overflow content */
}


.space,
.date {
    height: 60px;
}

.date {
    display: flex;
    gap: 1em;
}

.date-num {
    font-size: 3rem;
    font-weight: 600;
    display: inline;
}

.date-day {
    display: inline;
    font-size: 2rem;
    font-weight: 100;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.droptarget {
    border: 1px solid black;
}

.dragText {
    font-size: 1em;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0px;
}

.time {
    line-height: 0.8em;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

/* ==================== CALENDAR STYLES ==================== */
.corp-fi {
    background: var(--eventColor1);
}

.ent-law {
    background: var(--eventColor2);
}

.writing {
    background: var(--eventColor3);
}

.sessions {
    background: #9cfd97;
}

.fillinsession {
    background: #cbb5f7;
}

.assessment-block {
    background: #fff575;
}

.appointment-block {
    background: #ff9898;
}

.feedback-block {
    background: #f9c7d3;
}

.small-text-calendar {
    font-size:0.6em;
    line-height: 0.9;
}

.calendar-border {
    border: 1px solid black;
}

/* Calendar Event Title */
.calendar .event .title {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -0.6em;
}

/* ==================== CALENDAR TIMING CLASSES ==================== */
/* Start Time Classes */
.start-08-00 {
    grid-row-start: 2;
}

.start-08-10 {
    grid-row-start: 3;
}

.start-08-20 {
    grid-row-start: 4;
}

.start-08-30 {
    grid-row-start: 5;
}

.start-08-40 {
    grid-row-start: 6;
}

.start-08-50 {
    grid-row-start: 7;
}

.start-09-00 {
    grid-row-start: 8;
}

.start-09-10 {
    grid-row-start: 9;
}

.start-09-20 {
    grid-row-start: 10;
}

.start-09-30 {
    grid-row-start: 11;
}

.start-09-40 {
    grid-row-start: 12;
}

.start-09-50 {
    grid-row-start: 13;
}

.start-10-00 {
    grid-row-start: 14;
}

.start-10-10 {
    grid-row-start: 15;
}

.start-10-20 {
    grid-row-start: 16;
}

.start-10-30 {
    grid-row-start: 17;
}

.start-10-40 {
    grid-row-start: 18;
}

.start-10-50 {
    grid-row-start: 19;
}

.start-11-00 {
    grid-row-start: 20;
}

.start-11-10 {
    grid-row-start: 21;
}

.start-11-20 {
    grid-row-start: 22;
}

.start-11-30 {
    grid-row-start: 23;
}

.start-11-40 {
    grid-row-start: 24;
}

.start-11-50 {
    grid-row-start: 25;
}

.start-12-00 {
    grid-row-start: 26;
}

.start-12-10 {
    grid-row-start: 27;
}

.start-12-20 {
    grid-row-start: 28;
}

.start-12-30 {
    grid-row-start: 29;
}

.start-12-40 {
    grid-row-start: 30;
}

.start-12-50 {
    grid-row-start: 31;
}

.start-13-00 {
    grid-row-start: 32;
}

.start-13-10 {
    grid-row-start: 33;
}

.start-13-20 {
    grid-row-start: 34;
}

.start-13-30 {
    grid-row-start: 35;
}

.start-13-40 {
    grid-row-start: 36;
}

.start-13-50 {
    grid-row-start: 37;
}

.start-14-00 {
    grid-row-start: 38;
}

.start-14-10 {
    grid-row-start: 39;
}

.start-14-20 {
    grid-row-start: 40;
}

.start-14-30 {
    grid-row-start: 41;
}

.start-14-40 {
    grid-row-start: 42;
}

.start-14-50 {
    grid-row-start: 43;
}

.start-15-00 {
    grid-row-start: 44;
}

.start-15-10 {
    grid-row-start: 45;
}

.start-15-20 {
    grid-row-start: 46;
}

.start-15-30 {
    grid-row-start: 47;
}

.start-15-40 {
    grid-row-start: 48;
}

.start-15-50 {
    grid-row-start: 49;
}

.start-16-00 {
    grid-row-start: 50;
}

.start-16-10 {
    grid-row-start: 51;
}

.start-16-20 {
    grid-row-start: 52;
}

.start-16-30 {
    grid-row-start: 53;
}

.start-16-40 {
    grid-row-start: 54;
}

.start-16-50 {
    grid-row-start: 55;
}

.start-17-00 {
    grid-row-start: 56;
}

.start-17-10 {
    grid-row-start: 57;
}

.start-17-20 {
    grid-row-start: 58;
}

.start-17-30 {
    grid-row-start: 59;
}

.start-17-40 {
    grid-row-start: 60;
}

.start-17-50 {
    grid-row-start: 61;
}

.start-18-00 {
    grid-row-start: 62;
}

.start-18-10 {
    grid-row-start: 63;
}

.start-18-20 {
    grid-row-start: 64;
}

.start-18-30 {
    grid-row-start: 65;
}

.start-18-40 {
    grid-row-start: 66;
}

.start-18-50 {
    grid-row-start: 67;
}

.start-19-00 {
    grid-row-start: 68;
}

.start-19-10 {
    grid-row-start: 69;
}

.start-19-20 {
    grid-row-start: 70;
}

.start-19-30 {
    grid-row-start: 71;
}

.start-19-40 {
    grid-row-start: 72;
}

.start-19-50 {
    grid-row-start: 73;
}

.start-20-00 {
    grid-row-start: 74;
}

.start-20-10 {
    grid-row-start: 75;
}

.start-20-20 {
    grid-row-start: 76;
}

.start-20-30 {
    grid-row-start: 77;
}

.start-20-40 {
    grid-row-start: 78;
}

.start-20-50 {
    grid-row-start: 79;
}

.start-21-00 {
    grid-row-start: 80;
}

/* End Time Classes */
.end-08-00 {
    grid-row-end: 2;
}

.end-08-10 {
    grid-row-end: 3;
}

.end-08-20 {
    grid-row-end: 4;
}

.end-08-30 {
    grid-row-end: 5;
}

.end-08-40 {
    grid-row-end: 6;
}

.end-08-50 {
    grid-row-end: 7;
}

.end-09-00 {
    grid-row-end: 8;
}

.end-09-10 {
    grid-row-end: 9;
}

.end-09-20 {
    grid-row-end: 10;
}

.end-09-30 {
    grid-row-end: 11;
}

.end-09-40 {
    grid-row-end: 12;
}

.end-09-50 {
    grid-row-end: 13;
}

.end-10-00 {
    grid-row-end: 14;
}

.end-10-10 {
    grid-row-end: 15;
}

.end-10-20 {
    grid-row-end: 16;
}

.end-10-30 {
    grid-row-end: 17;
}

.end-10-40 {
    grid-row-end: 18;
}

.end-10-50 {
    grid-row-end: 19;
}

.end-11-00 {
    grid-row-end: 20;
}

.end-11-10 {
    grid-row-end: 21;
}

.end-11-20 {
    grid-row-end: 22;
}

.end-11-30 {
    grid-row-end: 23;
}

.end-11-40 {
    grid-row-end: 24;
}

.end-11-50 {
    grid-row-end: 25;
}

.end-12-00 {
    grid-row-end: 26;
}

.end-12-10 {
    grid-row-end: 27;
}

.end-12-20 {
    grid-row-end: 28;
}

.end-12-30 {
    grid-row-end: 29;
}

.end-12-40 {
    grid-row-end: 30;
}

.end-12-50 {
    grid-row-end: 31;
}

.end-13-00 {
    grid-row-end: 32;
}

.end-13-10 {
    grid-row-end: 33;
}

.end-13-20 {
    grid-row-end: 34;
}

.end-13-30 {
    grid-row-end: 35;
}

.end-13-40 {
    grid-row-end: 36;
}

.end-13-50 {
    grid-row-end: 37;
}

.end-14-00 {
    grid-row-end: 38;
}

.end-14-10 {
    grid-row-end: 39;
}

.end-14-20 {
    grid-row-end: 40;
}

.end-14-30 {
    grid-row-end: 41;
}

.end-14-40 {
    grid-row-end: 42;
}

.end-14-50 {
    grid-row-end: 43;
}

.end-15-00 {
    grid-row-end: 44;
}

.end-15-10 {
    grid-row-end: 45;
}

.end-15-20 {
    grid-row-end: 46;
}

.end-15-30 {
    grid-row-end: 47;
}

.end-15-40 {
    grid-row-end: 48;
}

.end-15-50 {
    grid-row-end: 49;
}

.end-16-00 {
    grid-row-end: 50;
}

.end-16-10 {
    grid-row-end: 51;
}

.end-16-20 {
    grid-row-end: 52;
}

.end-16-30 {
    grid-row-end: 53;
}

.end-16-40 {
    grid-row-end: 54;
}

.end-16-50 {
    grid-row-end: 55;
}

.end-17-00 {
    grid-row-end: 56;
}

.end-17-10 {
    grid-row-end: 57;
}

.end-17-20 {
    grid-row-end: 58;
}

.end-17-30 {
    grid-row-end: 59;
}

.end-17-40 {
    grid-row-end: 60;
}

.end-17-50 {
    grid-row-end: 61;
}

.end-18-00 {
    grid-row-end: 62;
}

.end-18-10 {
    grid-row-end: 63;
}

.end-18-20 {
    grid-row-end: 64;
}

.end-18-30 {
    grid-row-end: 65;
}

.end-18-40 {
    grid-row-end: 66;
}

.end-18-50 {
    grid-row-end: 67;
}

.end-19-00 {
    grid-row-end: 68;
}

.end-19-10 {
    grid-row-end: 69;
}

.end-19-20 {
    grid-row-end: 70;
}

.end-19-30 {
    grid-row-end: 71;
}

.end-19-40 {
    grid-row-end: 72;
}

.end-19-50 {
    grid-row-end: 73;
}

.end-20-00 {
    grid-row-end: 74;
}

.end-20-10 {
    grid-row-end: 75;
}

.end-20-20 {
    grid-row-end: 76;
}

.end-20-30 {
    grid-row-end: 77;
}

.end-20-40 {
    grid-row-end: 78;
}

.end-20-50 {
    grid-row-end: 79;
}

.end-21-00 {
    grid-row-end: 80;
}

/* ==================== MONTH VIEW STYLES ==================== */
.month-calendar {
    margin-bottom: 20px;
}

.month-view table {
    width: 100%;
    border-collapse: collapse;
}

.month-view th {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
}

.day-cell {
    height: 120px;
    width: 14.28%;
    vertical-align: top;
    padding: 5px;
}

.empty-day {
    background-color: #f8f9fa;
}

.current-day {
    background-color: #e8f4ff;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.day-events {
    overflow-y: auto;
    max-height: 90px;
}

.month-event {
    font-size: 0.8em;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    background-color: #e2f0fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-weight: bold;
    margin-right: 3px;
}

.event-title {
    display: inline-block;
}

/* ==================== CALENDAR NAVIGATION ==================== */
.calendar-view-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.calendar-view-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #536387;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
}

    .calendar-view-btn:hover {
        background-color: #e8e8e8;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        color: #29a5d4;
    }

    .calendar-view-btn.active {
        background-color: #29a5d4;
        color: white;
        border-color: #29a5d4;
    }

        .calendar-view-btn.active:hover {
            background-color: #5a54e1;
        }

    .calendar-view-btn i {
        margin-right: 5px;
    }

.calendar-nav-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #536387;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 10px;
}

    .calendar-nav-btn:hover {
        background-color: #29a5d4;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

/* ==================== CALENDAR CONTAINER LAYOUT ==================== */
.calendar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 20px;
}

/* ==================== SIDEBAR LAYOUT ==================== */
.left-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.calendar-main {
    flex: 1;
    min-width: 0; /* This is important to prevent flex items from overflowing */
}

.right-sidebar {
    //width: 260px;
    flex-shrink: 0;
}

/* ==================== DATE SELECTOR ==================== */
.date-selector-container {
    margin: 20px auto;
    max-width: 500px;
    padding: 0 15px;
}

.date-selector-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
}

    .input-group .form-control {
        flex: 1;
        border-radius: 5px;
        border: 1px solid #e0e0e0;
        padding: 8px 12px;
        font-size: 14px;
    }

    .input-group .calendar-view-btn {
        margin-top: 0;
        white-space: nowrap;
    }

/* ==================== STICKY SECTION STYLES ==================== */
.sticky-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.sticky-section-header {
    background-color: #29a5d4;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 15px;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sticky-section-content {
    padding: 10px 15px;
    max-height: 150px;
    overflow-y: auto;
}

.sticky-item {
    font-size: 0.8rem;
    padding: 6px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}

    .sticky-item:last-child {
        border-bottom: none;
    }

.sticky-form {
    padding: 10px 15px;
}

.sticky-button-group {
    display: flex;
    gap: 8px;
}

.sticky-action-btn {
    flex: 1;
    background-color: #29a5d4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .sticky-action-btn:hover {
        background-color: #5a54e1;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

    .sticky-action-btn i {
        margin-right: 4px;
    }

/* ==================== DEFERRED LESSONS SECTION ==================== */
.deferred-column {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.deferred-header {
    background-color: #29a5d4;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 15px;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.deferred-content {
    padding: 10px 15px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}

.deferred-item {
    background-color: white;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: move;
}

    .deferred-item p {
        font-size: 0.8rem;
        margin: 4px 0;
    }

/* ==================== NOTE ELEMENTS ==================== */
.empty-message {
    color: #aaa;
    font-style: italic;
}

.note-textarea {
    font-size: 0.8rem;
    min-height: 60px;
    margin-bottom: 8px;
    resize: vertical;
}

.note-date {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* ==================== SESSION MODAL ==================== */
.session-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.session-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #ddd;
    width: 600px;
    max-width: 90%;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.session-modal h2 {
    color: #555;
    font-size: 1.5rem;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-weight: 400;
}

.session-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 15px;
    margin-top: 5px;
    cursor: pointer;
}

    .session-modal-close:hover,
    .session-modal-close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.session-modal-body {
    padding: 20px;
}

.session-modal-info {
    margin-bottom: 20px;
}

.session-modal-row {
    display: flex;
    margin-bottom: 10px;
}

.session-modal-label {
    width: 80px;
    color: #777;
    font-weight: 500;
}

.session-modal-value {
    flex-grow: 1;
    font-weight: 500;
}

.session-modal-students {
    margin-top: 20px;
    margin-bottom: 30px;
}

.session-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .session-modal-buttons .btn {
        min-width: 100px;
    }

/* ==================== STUDENT ELEMENTS ==================== */
.student-entry {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.student-icon {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

    .student-icon i {
        font-size: 18px;
        color: #6c757d;
    }

.student-details {
    flex-grow: 1;
}

.student-name {
    font-weight: 500;
}

.student-grade {
    font-size: 0.85rem;
    color: #6c757d;
}

.student-status {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.student-actions {
    margin-left: 10px;
}

.student-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
}

    .student-action-btn:hover {
        color: #343a40;
    }

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media screen and (max-width: 768px) {
    .wrapper {
        flex-direction: column; /* Stack columns on smaller screens */
    }

    .sticky-column {
        width: 100%; /* Full width on smaller screens */
        height: auto; /* Auto height to fit content */
        position: static; /* Static position on smaller screens */
        margin-bottom: 10px; /* Margin between columns */
    }

    .middle-column {
        width: 100%; /* Full width on smaller screens */
    }
}

@media screen and (max-width: 992px) {
    .sticky-column {
        width: 100%;
        margin-top: 1rem;
    }

    .sticky-button-group {
        flex-direction: column;
    }
}

@media screen and (max-width: 1200px) {
    .calendar-container {
        flex-direction: column;
    }

    .left-sidebar,
    .right-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .sticky-column {
        position: static;
        height: auto;
        max-height: 400px;
    }
}

/* Action button styles for consistent height and alignment */
.action-buttons-wrapper {
    display: flex;
    align-items: stretch; /* Ensures all items stretch to match the tallest element */
    gap: 10px;
}

    .action-buttons-wrapper .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        margin: 0;
        height: 100%;
        flex: 1;
    }

.custom-action-btn {
    font-size: 1rem;
    font-weight: 500;
}

/* Completely revised time-marker styling for consistency */
.time-marker {
    position: relative;
    box-sizing: border-box;
    min-width: 60px; /* Set a consistent width for all markers */
    text-align: right; /* Align all text to the right */
    font-size: 0.75rem;
    color: #6c757d;
}

    /* Ensure all lines have identical properties */
    .time-marker::after {
        content: "";
        position: absolute;
        left: 100%;
        top: 50%;
        height: 1px;
        width: calc(100% + 113em); /* Fixed width for all lines */
        background-color: #dee2e6; /* Same color for all lines */
        z-index: 0;
    }

    /* Apply consistent spacing to all markers */
    .time-marker:empty::before {
        content: "\00a0"; /* Non-breaking space to maintain consistent height */
        display: inline-block;
    }

    /* Make sure text is properly spaced from line */
    .time-marker:not(:empty) {
        padding-right: 8px; /* Consistent padding */
    }

/* Make sure events appear above the lines */
.event {
    /*position: relative;*/
    z-index: 1;
}

/* Timeline container styles */
.timeline {
    position: relative;
    display: grid;
    grid-template-rows: repeat(var(--numIntervals), var(--timeHeight));
    z-index: 0;
    margin-top: 2.8em;
    padding-right: 10px;
    border-right: 1px solid #dee2e6;
}

/* Make sure events appear above the lines */
.event {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-rows: repeat(var(--numIntervals), var(--timeHeight));
    z-index: 0;
    margin-top: 2.8em;
}

/* Add some right padding to the timeline column */
.timeline {
    padding-right: 10px;
    border-right: 1px solid #dee2e6;
    position: relative;
}

/* Style time labels consistently */
.time-marker:not(:empty) {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Background highlight for hour markers */
.time-marker:nth-child(3n-1) {
    font-weight: bold;
}

.calendar-container {
    display: flex;
}

.middle-column {
    flex: 1 1 0;
}

.right-sidebar-container {
    display: flex;
    flex-direction: column;
    width: 350px; /* or whatever width you prefer */
    margin-left: 24px;
}

.right-sidebar,
.notes-reminders-sidebar {
    margin-bottom: 24px;
}

main { 
    background-color: #8080801c;
}

nav {
    background-color: #29a5d4 !important;
}

<style >
/* Date Navigation - Refined Single Row Layout */
/* Date Navigation - Centered Single Row Layout */
.date-navigation-container {
    margin: 0 auto 20px; /* Changed from just margin-bottom to add auto left/right */
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 1000px; /* Add a max-width to limit how wide it can get */
}

.date-navigation-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
    justify-content: center; /* This centers the flex items horizontally */
}


.calendar-nav-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

    .calendar-nav-btn:hover {
        background-color: #e9ecef;
        color: #0d6efd;
    }

.current-date-display {
    padding: 0 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.current-date-text {
    font-size: 1.15em;
    font-weight: 800;
    color: #343a40;
}

.date-picker-container {
    display: flex;
    flex-grow: 1;
    max-width: 300px;
    position: relative;
}

.date-picker {
    border-radius: 20px;
    padding-right: 40px;
    border: 1px solid #ced4da;
    height: 40px;
}

.date-go-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    border: none;
    background: transparent;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .date-go-btn:hover {
        color: #0d6efd;
    }

.view-type-selector {
    display: flex;
    gap: 5px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    overflow: hidden;
    height: 40px;
    background-color: #fff;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s;
}

    .view-btn:hover {
        background-color: #e9ecef;
        color: #0d6efd;
    }

    .view-btn.active {
        background-color: #0d6efd;
        color: white;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-navigation-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .current-date-display {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .date-picker-container {
        order: 1;
        max-width: none;
        width: 100%;
        margin: 10px 0;
    }
}

</style >
/* Calendar Statistics Row - Updated to match image */
.calendar-statistics {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
    padding: 8px 0;
    width: 100%;
    min-height: 50px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow-x: auto;
    white-space: nowrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid #e0e0e0;
    min-width: fit-content;
    height: 34px;
}

    .stat-item:last-child {
        border-right: none;
    }

.stat-number {
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #4a4a4a;
    white-space: nowrap;
}

/* Different colors for different stat types */
.stat-item:nth-child(2n) {
    background-color: rgba(0,0,0,0.01);
}

/* Color for different stat types */
.stat-sessions .stat-number {
    color: #0d6efd;
}

.stat-assessments .stat-number {
    color: #ffc107;
}

.stat-appointments .stat-number {
    color: #17a2b8;
}

.stat-deferred .stat-number {
    color: #dc3545;
}

.stat-makeups .stat-number {
    color: #6610f2;
}

.stat-diy .stat-number {
    color: #fd7e14;
}

.stat-attended .stat-number {
    color: #20c997;
}

.stat-voided .stat-number {
    color: #6c757d;
}

.stat-forfeited .stat-number {
    color: #d63384;
}

.stat-mpc .stat-number {
    color: #198754;
}

.stat-billing .stat-number {
    color: #0dcaf0;
}

.stat-scheduled .stat-number {
    color: #0d6efd;
}

nav.custom-navbar {
    padding-bottom: 1rem;
    background: linear-gradient(to bottom, #29a5d4 calc(100% - 1rem), #164b92 calc(100% - 1rem));
}

    /* Remove the default margin and use padding instead */
    nav.custom-navbar.mb-3 {
        margin-bottom: 0 !important;
        padding-bottom: 1rem;
    }

.btn-payment {
    font-size: 16px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    background-color: #29a5d4;
    color: white;
    cursor: pointer;
}

/* Force single column for Assessments & Appointments & Feedback */
.day.mon.single-column {
    grid-column: span 1;
    min-width: 150px;
}

    /*.day.mon.single-column .events {
        display: grid;
        grid-template-rows: repeat(var(--numIntervals), var(--timeHeight));
        grid-template-columns: 1fr;*/ /* Single column only */
        /*border-radius: 5px;
        background: #ffffff;
    }*/

/* Event slot contains potentially multiple overlapping events */
.event-slot {
    position: relative;
    grid-column: 1; /* Stay in first column */
    margin: 0;
}

/* Overlapping events positioned absolutely within their slot */
.overlapping-event {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: 0;
    z-index: 1;
    border-width: 2px;
    margin-top: -0.3em;
    margin-bottom: 0.3em;
}

    /*.overlapping-event:hover {
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        transform: scale(1.02);
        transition: all 0.2s ease;
    }*/

/* Add this to your existing site.css file */

/* Forfeited lesson styling - strikethrough */
.lesson-forfeited {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
}

    /* Adjust text for narrower overlapping events */
    /*.overlapping-event .cal-block-text {
        font-size: 0.6rem;
        line-height: 1.1;
        overflow: hidden;
    }*/

/* ==================== GLOBAL CARD BRAND OVERRIDES ==================== */
/* Apply the requested brand tint to all cards and make all card headers
   use the solid brand color with white text. Placed at end of site.css
   so it overrides Bootstrap/defaults. */

.card {
    /* semi-transparent card body tint: equivalent to #29a5d429 */
    background-color: #29a5d400 !important;
    /* keep subtle border for contrast */
    border: 1px solid rgba(0, 0, 0, 0.08);
}

    /* Ensure card-body does not re-introduce a plain white background */
    .card .card-body,
    .card-body {
        background-color: transparent;
    }

    /* Card headers: solid brand colour and white text.
   Use !important to reliably override utility classes like bg-light/bg-primary
   without changing markup across the app. */
    .card-header,
    .card .card-header,
    .card-header.bg-light,
    .card-header.bg-primary,
    .card-header.bg-white {
        background-color: #29a5d4 !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

        /* Ensure header title elements inside card-header are white */
        .card-header .card-title,
        .card-header h1,
        .card-header h2,
        .card-header h3,
        .card-header h4,
        .card-header h5,
        .card-header h6 {
            color: #ffffff !important;
            margin: 0;
        }

/* Calendar background brand tint — place at the end of site.css so it overrides earlier rules */
main {
    /* Fallback for older browsers */
    background-color: #29a5d429 !important; /* equivalent to #29a5d429 */
    /* Preferred (8‑digit hex with alpha) for modern browsers */
    background-color: #29a5d429 !important;
}