﻿/* ================================================== */
/* DEFINES THE DEFAULT STYLES FOR CLASS DEFINED       */
/* OBJECT STYLING CSS                                 */
/* ================================================== */

/* 🌐 GLOBAL LAYOUT */
        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            width: 100%;
            font-family: sans-serif;
            box-sizing: border-box;
        }
        /*html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }
        */
        .monthname {
            font-size: .80em;
            width:100%;
        }
        .month-nav {
            height: 40px;
            width: 150px;
            padding: 2px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .arrow-text-left::before {
            content: '←';
            margin-right: 4px;
            font-size: 1em;
            vertical-align: middle;
        }

        .arrow-text-right::after {
            content: '→';
            margin-left: 4px;
            font-size: 1em;
            vertical-align: middle;
        }

        /* Custom image arrows */
        .arrow-text-custom-left::before,
        .arrow-text-custom-right::after {
            content: '';
            display: inline-block;
            width: 12px; /* arrow width */
            height: 12px; /* arrow height */
            vertical-align: middle;
            background-size: contain;
            background-repeat: no-repeat;
        }

        .arrow-text-custom-left::before {
            margin-right: 4px;
            background-image: url('arrow-left.png'); /* replace with your image */
        }

        .arrow-text-custom-right::after {
            margin-left: 4px;
            background-image: url('arrow-right.png'); /* replace with your image */
        }

        header .header {
            height: 60px;
            background: #333;
            color: white;
            padding: 1rem;
            flex-shrink: 0;
        }
        .nav-left,
        .nav-center,
        .nav-right {
            flex: 1;
            display: flex;
            align-items: center;
        }

        .nav-left {
            justify-content: flex-start;
        }

        .nav-center {
            justify-content: center;
        }

        .nav-right {
            justify-content: flex-end;
        }

        /* 📱 CONTAINERS AND LAYOUTS */
        .layout {
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5); /* dark semi-transparent backdrop */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .popup-content {
            background-color: #fff; /* solid white background */
            padding: 2rem;
            border-radius: 8px;
            max-width: 700px;
            width: 90%;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            overflow-y: auto;
            max-height: 90vh;
            border: 1px solid #ccc; /* optional: gives it a visible edge */
        }

        .loginContainer {
            min-height: calc(100vh - 10vh);
            height: 80vh; /* Remaining space */
            width: 100vw;
            display: flex;
            align-items: center; /* Align content to top */
            justify-content: center; /* Ensures left alignment */
            background-color: white;
        }

        .registerContainer {
            min-height: calc(100vh - 10vh);
            top: 150px;
            left: 650px;
            height: 80vh; /* Remaining space */
            width: 80vw;
            position: relative;
            /*    display: flex;*/
            align-items: center; /* Align content to top */
            justify-content: center; /* Ensures left alignment */
        }

        .centralCoreBody {
            flex: 1;
            overflow: hidden;
        }

        .unauthorizedmain-body {
            min-height: inherit;
            text-align: center;
            min-height: 101vh;
        }

            .unauthorizedmain-body h1 {
                font-size: 36px;
                margin-top: 15px;
                color: black;
            }
            /*    .unauthorizedmain-body h1 {
                font-size: 20px;
                color: goldenrod;
            }*/

            .unauthorizedmain-body h2 {
                font-size: 32px;
                color: goldenrod;
                margin-top: 15px;
            }
            /*    .unauthorizedmain-body h2 {
                font-size: 18px;
                color: goldenrod;
                padding-bottom: 5px;
                padding-top: 5px;
            }*/

            .unauthorizedmain-body h4 {
                font-size: 14px;
                color: black;
                margin-left: 5px;
            }

            .unauthorizedmain-body p {
                font-size: 14px;
                color: black;
                padding-bottom: 2px;
            }

        .Container {
            padding: 0;
        }

        .loginContainer {
            min-height: calc(100vh - 10vh);
            height: 80vh; /* Remaining space */
            width: 100vw;
            display: flex;
            align-items: center; /* Align content to top */
            justify-content: center; /* Ensures left alignment */
            background-color: white;
        }


        /* 🌐 CALENDAR*/


        /* 🔲 Page Wrapper: header + grid */
        .page-wrapper {
            display: grid;
            grid-template-rows: auto 1fr;
            height: 100vh;
            width: 100vw;
            overflow: hidden; /* ensure grid area can control overflow */
        }

        .day-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background-color: #e0e0e0;
            padding: 10px;
            box-sizing: border-box;
            border-bottom: 2px solid #ccc;
        }

        .day-cell {
            font-weight: bold;
            text-align: left;
            font-size: 2em;
            padding: 5px 10px;
        }


        .grid-container {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-template-rows: repeat(5, 1fr);
            width: 100%;
            height: 100%;
            gap: 5px;
            padding: 10px;
            box-sizing: border-box;
            background-color: #f0f0f0;
        }

        .grid-item {
            width: 100%;
            height: 100%;
            border: 1px solid #ccc;
            background-color: #fff;
            padding: 10px;
            text-align: left;
            box-sizing: border-box;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            overflow: auto;
            min-height: 0;
        }

        .nonday-cell {
            background-color: gray !important;
            color: white;
        }

        /* 📱 Accordion Layout (hidden by default) */
        .accordion-layout {
    display: none;
    padding: 10px;
}

        /* 📱 Accordion Sections */
        .accordion-day-group {
            margin-bottom: 20px; /* spacing between groups */
        }

        /* 📱 Accordion Sections */
        .accordion-content {
            max-height: none;
            overflow-y: auto;
            padding: 10px;
            background-color: #f9f9f9;
            border-top: 1px solid #ccc;
        }

        /* 📱 Accordion Sections */
        .accordion-day {
            border-bottom: 1px solid #ccc;
            margin-bottom: 5px;
        }

        /* 📱 Accordion Sections */
        .accordion-header {
            background-color: #e0e0e0;
            padding: 10px;
            font-weight: bold;
            cursor: pointer;
        }

        /* 📱 Accordion Sections */
        .accordion-content {
            display: none;
            padding: 5px 10px;
            background-color: #f9f9f9;
        }

            /* 📱 Accordion Sections */
            .accordion-content.show {
                display: block;
            }

            /* 📱 Accordion Sections */
            .accordion-content .date-label {
                font-weight: bold;
                margin-top: 5px;
            }

            /* 📱 Accordion Sections */
            .accordion-content .timeslot-text {
                font-size: 0.8em;
                margin-left: 10px;
            }

        /*------------------------------------*/
        /*   PREV / NEXT CALENDAR BUTTONS     */
        /*------------------------------------*/

        #MonthNavigationHeader
        {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

            #MonthNavigationHeader.show {
                max-height: 200px; /* adjust as needed */
            }

            

        /* 🗓️ Date Label */
        .date-label {
            font-weight: bold;
            font-size: 1.25em;
            margin-bottom: 2px;
        }

            .date-label hr {
                padding: 0;
            }

        /* 🕒 TimeSlot Text */
        .timeslot-text {
            font-size: 1.25em;
            margin-bottom: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .custom-nav-columns {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        /* 🗓️ Weekday Header Row */
        .responsive-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background-color: #e0e0e0;
            padding: 6px;
            border-bottom: 1px solid #ccc;
            font-size: 0.75em;
            text-align: center;
        }

        /* 📅 Grid Layout */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            /* UPDATED: use 6 rows for full month grid (6 weeks) */
            grid-template-rows: repeat(6, 1fr);
            height: 100%;
            width: 100%;
            gap: 1px;
            padding: 2px;
            background-color: #f0f0f0;
            box-sizing: border-box;
            min-height: 0; /* allow proper internal scrolling */
            overflow-y: visible; /* default; overridden in iPad-land media query */
        }

        /* 🧱 Individual Grid Cell (final authoritative definition) */
        .grid-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            padding: 4px;
            font-size: 0.7em;
            line-height: 1.1;
            box-sizing: border-box;
            border: 1px solid #ccc;
            background-color: #fff;
            overflow: auto;   /* allow internal scrolling if lots of content */
            min-height: 0;    /* prevents flex/grid from overflowing */
            min-width: 0;
        }


        .text-center .ludddite-container {
            padding: 3px;
        }

        .ludddite-container {
            padding: 2rem 1.5rem; /* top and horizontal padding */
            background-color: #f4f4f4;
        }

        .ludddite-box {
            max-width: 900px;
            margin: 0 auto; /* center horizontally */
            background-color: #fff;
            padding: 1.0rem;
            border-left: 4px solid #888;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 1.05rem;
            line-height: 1.6;
            color: #2c2c2c;
            text-align: left;
        }

            .ludddite-box p {
                font-size: 20px;
                padding:0px;
            }

        .colganCrest 
        {
            display: inline-block;
        }
        .image-center 
        {
            text-align: center;
        }
        /*.image-row {
            display: flex;
            justify-content: center;*/ /* centers the images horizontally */
            /*gap: 10px;*/ /* adds space between them */
            /*flex-wrap: wrap;*/ /* allows wrapping on smaller screens */
            /*padding: 5px;
        }*/
        .image-row {
            display: flex;
            justify-content: center; /* centers the row horizontally */
            gap: 5px; /* space between images */
            flex-wrap: nowrap; /* prevents wrapping to next line */
            align-items: flex-start; /* aligns top edges */
        }
        

        .footer {
            display: block;
            padding: 3px 0px 3px 0px;
        }

            .footer .footerText {
                font-size: 16px;
            }



    
    @media (max-width: 375) and (orientation: portrait) {
        .month-nav {
            height: 25px;
            width: 100px;
            padding: 2px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .navbar-nav {
            display: flex;
            flex-direction: column; /* stack vertically */
            align-items: flex-start; /* optional: align to left */
        }

            .navbar-nav .nav-item {
                margin-bottom: 0.5rem; /* optional spacing between items */
            }
        /* Target the main header inside your header container */
        header .header {
            font-size: 1.0rem; /* smaller font in portrait */
            padding: 0.25rem;
        }
        #MonthNavigationHeader {
            display: none;
        }

            #MonthNavigationHeader.show {
                max-height: 200px; /* adjust as needed */
            }

        #MonthNavigationFooter {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

            #MonthNavigationFooter.show {
                max-height: 200px; /* adjust as needed */
            }
    }
    /* 🌐 SMALL PHONE FORMAT PORTAIT */
    @media (max-width: 480px) and (orientation: portrait) {
        .month-nav {
            height: 25px;
            width: 100px;
            padding: 2px;
            padding-left: 2px;
            padding-right: 2px;
        }
        header .navbar-nav {
            display: flex;
            flex-direction: column; /* stack vertically */
            align-items: flex-start; /* optional: align to left */
        }

            .navbar-nav .nav-item {
                margin-bottom: 0.5rem; /* optional spacing between items */
            }

        /* Target the main header inside your header container */
        header .header {
            font-size: 1.0rem; /* smaller font in portrait */
            padding: 0.25rem;
        }
        #MonthNavigationHeader {
            display: none;
        }

            #MonthNavigationHeader.show {
                max-height: 200px; /* adjust as needed */
            }

        #MonthNavigationFooter {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

            #MonthNavigationFooter.show {
                max-height: 200px; /* adjust as needed */
            }

        /* 📅 Grid Layout */
        .grid-layout {
            display: none;
        }

        .accordion-content {
            -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
        }

        .accordion-day-group {
            padding: 0 10px;
        }

        html, body {
            height: auto;
            min-height: 100vh;
            overflow-y: auto;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-template-rows: repeat(5, 1fr);
            width: 100%;
            height: 100%;
            gap: 5px;
            padding: 10px;
            box-sizing: border-box;
            background-color: #f0f0f0;
            overflow: auto;
        }

        .grid-item {
            width: 100%;
            height: 100%;
            border: 1px solid #ccc;
            background-color: #fff;
            padding: 10px;
            text-align: left;
            box-sizing: border-box;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            transition: all 0.3s ease;
            overflow: hidden;
            cursor: pointer;
        }

            .grid-item.expanded {
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                background-color: #e6f7ff;
                font-size: 1.2em;
            }

        .nonday-cell {
            background-color: gray !important;
            color: white;
        }

        .Container {
            padding: 0;
            overflow: auto;
        }

        .centralCoreBody {
            flex: 1;
            overflow: auto;
        }

        .unauthorizedmain-body {
            min-height: inherit;
            text-align: center;
            overflow: auto;
        }

            .unauthorizedmain-body H1 {
                font-size: 18px;
                margin-top: 15px;
                color: green;
            }

            .unauthorizedmain-body H2 {
                font-size: 16px;
                color: goldenrod;
                margin-top: 5px;
                padding: 3px;
            }

            .unauthorizedmain-body H3 {
                font-size: 18px;
                color: black;
                margin-left: 5px;
            }

            .unauthorizedmain-body H4 {
                font-size: 16px;
                color: black;
                margin-left: 5px;
            }


            .unauthorizedmain-body p {
                font-size: 10px;
                color: black;
                padding-bottom: 2px;
            }

        /*.image-row {
            display: flex;
            justify-content: center;*/ /* centers the row horizontally */
            /*gap: 5px;*/ /* space between images */
            /*flex-wrap: nowrap;*/ /* prevents wrapping to next line */
            /*align-items: flex-start;*/ /* aligns top edges */
        /*}*/
            .image-row img {
                height: 125px;
                width: 125px;
            }


        .ludddite-container {
            padding: .5rem;
            background-color: #f4f4f4;
        }

        .ludddite-box {
            max-width: 700px;
            margin: 0 auto;
            background-color: #fff;
            padding: .75rem;
            border-left: 4px solid #888;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 1.05rem;
            line-height: 1.6;
            color: #2c2c2c;
            text-align: left;
        }

            .ludddite-box p {
                font-size: 14px;
                padding: 2px;
                margin: 1px;
            }


        input[type="checkbox"] {
            margin-right: 6px; /* space between checkbox and label */
            transform: scale(0.9); /* optional: shrink checkbox slightly */
        }

        .remember-label {
            font-size: 0.9rem;
            margin-bottom: 2px;
            display: inline-block;
        }

        .remember-container {
            margin-top: 3px;
            padding: 4px 3px;
        }
        /* 🗓️ Weekday Header Row */
        .responsive-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background-color: #e0e0e0;
            padding: 6px;
            border-bottom: 1px solid #ccc;
            font-size: 0.75em;
            text-align: center;
        }

        .page-wrapper {
            display: none;
            grid-template-rows: auto 1fr;
            /* Header row + full grid height: 100vh; */
        }

        .footer {
            display: block;
            padding: 3px 0px 3px 0px;
        }

            .footer .footerText {
                font-size: 10px;
            }

        .form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
            color: var(--bs-secondary-color);
            text-align: end;
        }

        .form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
            text-align: start;
        }
    }

    /* ================================
       iPad / Tablet (landscape) tweak
       ensures last row is scrollable
       ================================ */
    @media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {

        .month-nav {
            height: 25px;
            width: 100px;
            padding: 2px;
            padding-left: 2px;
            padding-right: 2px;
        }
        .navbar-nav {
            display: flex;
            flex-direction: column; /* stack vertically */
            align-items: flex-start; /* optional: align to left */
        }

            .navbar-nav .nav-item {
                margin-bottom: 0.5rem; /* optional spacing between items */
            }
        /* Target the main header inside your header container */
        header .header {
            font-size: 1.0rem; /* smaller font in portrait */
            padding: 0.25rem;
        }

        /* If you have inner elements like nav-left, nav-center, nav-right */
        .nav-left, .nav-center, .nav-right {
            font-size: 1.0rem; /* reduce nav text too */
        }   
        unauthorizedmain-body {
            min-height: inherit;
            text-align: center;
            min-height: 101vh;
        }

        .unauthorizedmain-body h1 {
            font-size: 28px;
            margin-top: 10px;
            color: black;
        }
        /*    .unauthorizedmain-body h1 {
                font-size: 20px;
                color: goldenrod;
            }*/

        .unauthorizedmain-body h2 {
            font-size: 24px;
            color: goldenrod;
            margin-top: 10px;
        }
        /*    .unauthorizedmain-body h2 {
                font-size: 18px;
                color: goldenrod;
                padding-bottom: 5px;
                padding-top: 5px;
            }*/

        .unauthorizedmain-body h4 {
            font-size: 12px;
            color: black;
            margin-left: 3px;
        }

        .unauthorizedmain-body p {
            font-size: 12px;
            color: black;
            padding-bottom: 2px;
        }

        .text-center .ludddite-container {
            padding: 3px;
        }

        .ludddite-container {
            padding: 1rem .75rem; /* top and horizontal padding */
            background-color: #f4f4f4;
        }
        .helpTutorialDiv {
            font-size:10px;
            padding:0px;
        }
        .ludddite-box {
            max-width: 900px;
            margin: 0 auto; /* center horizontally */
            background-color: #fff;
            padding: .75rem;
            border-left: 4px solid #888;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 1.05rem;
            line-height: 1.6;
            color: #2c2c2c;
            text-align: left;
        }

            .ludddite-box p {
                font-size: 14px;
                padding-bottom: 1px;
            }

       
        /* keep wrapper fixed to viewport */
        .page-wrapper {
            height: 100vh;
            width: 100vw;
            overflow: hidden; /* wrapper shouldn't scroll */
            grid-template-rows: auto 1fr;
        }

        /* header should not expand unexpectedly */
        .responsive-header {
            padding: 6px 8px;
            box-sizing: border-box;
        }

        .grid-layout {
            grid-template-rows: repeat(auto-fill, minmax(100px, auto));
            /* auto-fill rows, minimum 100px, grow with content */
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            gap: 2px;
            padding: 2px 1px;
        }

        .grid-item {
            min-height: 100px; /* optional: prevent squishing too small */
            overflow: auto;
        }

        .monthname {
            font-size: 0.50em;
        }
    }
/* ================================
   iPad / Tablet Portrait
   Proper content wrapping, minimal scrolling
   ================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .month-nav {
        height: 25px;
        width: 100px;
        padding: 2px;
        padding-left: 2px;
        padding-right: 2px;
    }
    .navbar-nav {
        display: flex;
        flex-direction: column; /* stack vertically */
        align-items: flex-start; /* optional: align to left */
    }

        .navbar-nav .nav-item {
            margin-bottom: 0.5rem; /* optional spacing between items */
        }
    unauthorizedmain-body {
        min-height: inherit;
        text-align: center;
        min-height: 101vh;
    }

    .unauthorizedmain-body h1 {
        font-size: 28px;
        margin-top: 10px;
        color: black;
    }
    /*    .unauthorizedmain-body h1 {
                font-size: 20px;
                color: goldenrod;
            }*/

    .unauthorizedmain-body h2 {
        font-size: 24px;
        color: goldenrod;
        margin-top: 10px;
    }
    /*    .unauthorizedmain-body h2 {
                font-size: 18px;
                color: goldenrod;
                padding-bottom: 5px;
                padding-top: 5px;
            }*/

    .unauthorizedmain-body h4 {
        font-size: 12px;
        color: black;
        margin-left: 3px;
    }

    .unauthorizedmain-body p {
        font-size: 12px;
        color: black;
        padding-bottom: 2px;
    }
    .helpTutorialDiv {
        font-size: 10px;
        padding: 0px;
    }
    .text-center .ludddite-container {
        padding: 3px;
    }

    .ludddite-container {
        padding: 1rem .75rem; /* top and horizontal padding */
        background-color: #f4f4f4;
    }

    .ludddite-box {
        max-width: 900px;
        margin: 0 auto; /* center horizontally */
        background-color: #fff;
        padding: .75rem;
        border-left: 4px solid #888;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.05rem;
        line-height: 1.6;
        color: #2c2c2c;
        text-align: left;
    }

        .ludddite-box p {
            font-size: 14px;
            padding-bottom: 1px;
        }



    header .header {
        font-size: 3.0rem; /* smaller font in portrait */
        padding: 0.25rem;
    }

    .nav-left, .nav-center, .nav-right {
        font-size: 1.0rem;
    }

    /* Grid layout */
    .grid-layout {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-auto-rows: minmax(80px, auto);
        gap: 2px;
        padding: 1px;
        overflow-y: auto; /* vertical scrolling only */
        overflow-x: hidden; /* prevent horizontal scroll */
    }

    /* Grid items */
    .grid-item {
        font-size: 0.6em; /* smaller text */
        line-height: 1.0; /* tighter line spacing */
        padding: 4px 2px;
        min-height: 70px;
        overflow-x: hidden; /* remove horizontal scroll */
        overflow-y: visible; /* allow vertical content expansion */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        word-wrap: break-word; /* force text to wrap */
        white-space: normal; /* important: allow wrapping */
    }

        /* Stack elements with small margin */
        .grid-item p,
        .grid-item .timeslot-text,
        .grid-item .date-label {
            display: block;
            margin: 2px 0;
            word-break: break-word;
            white-space: normal; /* ensure wrapping */
        }

    /* Shrink day headers to fit narrow columns */
    .day-cell, .responsive-header {
        font-size: 0.65em;
        padding: 2px 4px;
        text-align: center;
    }
    .monthname {
        font-size: 0.60em;
    }
}