:root,
[data-bs-theme=light] {
    /*--falcon-primary-rgb: 0, 51, 102;*/
    --cos-label-color-rgb: 51, 51, 51; /* #333333 for labels */
    --falcon-blue: #2c7be5;
    --falcon-indigo: #727cf5;
    --falcon-purple: #6b5eae;
    --falcon-pink: #ff679b;
    --falcon-red: #e63757;
    --falcon-orange: #fd7e14;
    --falcon-yellow: #f5803e;
    --falcon-green: #00d27a;
    --falcon-teal: #02a8b5;
    --falcon-cyan: #27bcfd;
    --falcon-black: #000;
    --falcon-white: #fff;
    --falcon-gray: #748194;
    --falcon-gray-dark: #4d5969;
    --falcon-gray-100: #f9fafd;
    --falcon-gray-200: #edf2f9;
    --falcon-gray-300: #d8e2ef;
    --falcon-gray-400: #b6c1d2;
    --falcon-gray-500: #9da9bb;
    --falcon-gray-600: #748194;
    --falcon-gray-700: #5e6e82;
    --falcon-gray-800: #4d5969;
    --falcon-gray-900: #344050;
    --falcon-gray-1000: #232e3c;
    --falcon-gray-1100: #0b1727;
    --falcon-primary: #004aad; /* Updated primary color */
    --falcon-primary-dark: #002d99;
    --falcon-secondary: #748194;
    --falcon-success: #228B22;
    --falcon-info: #27bcfd;
    --falcon-warning: #D64550;
    --falcon-danger: #e63757;
    --falcon-light: #f9fafd;
    --falcon-dark: #0b1727;
    --falcon-primary-rgb: 0, 48, 135;
    --falcon-secondary-rgb: 116, 129, 148;
    --falcon-primary-blue-dark: #002d99;
    --falcon-success-rgb: 0, 210, 122;
    --falcon-info-rgb: 39, 188, 253;
    --falcon-warning-rgb: 245, 128, 62;
    --falcon-danger-rgb: 230, 55, 87;
    --falcon-light-rgb: 249, 250, 253;
    --falcon-dark-rgb: 11, 23, 39;
    --falcon-body-color: #333;
    --falcon-body-color-rgb: 51, 51, 51;
    --falcon-body-bg: #eef5ff; /* Updated body background */
    --falcon-body-bg-rgb: 245, 245, 245;
    --falcon-link-color: #0049B3;
    --falcon-link-color-rgb: 0, 73, 179;
    --falcon-link-hover-color-rgb: 35, 98, 183;
    --falcon-sidebar-bg: #e9f0fb;
    --falcon-sidebar-border: #c4d1f0;
    --falcon-sidebar-scrollbar-bg: #b0c4f7;
    --falcon-sidebar-text-color: #1a1a1a;
    --falcon-sidebar-text-hover: #003d99;
    --falcon-sidebar-icon-bg: #ffffff;
    --falcon-sidebar-icon-border: #c4d1f0;
    --falcon-header-bg: #d7e4fc;
    --falcon-header-text-color: #002d99;
    --falcon-main-bg: #f9fbff;
    --falcon-main-text-color: #333;
    --falcon-footer-bg: #FFF;
    /*--falcon-footer-bg: #d7e4fc;*/
    --falcon-footer-text-color: #002d99;
    --falcon-notification-dot-color: #e60000;
    --falcon-primary-blue: #004aad;
}
.form-text {
    color: #495057 !important; 
}

[data-bs-theme=dark] {
    /*--falcon-primary-rgb: 44, 123, 229;*/
    --falcon-primary-rgb: 242, 242, 242;
}

/*remove me*/
/* === Autofill Contrast Fix (WCAG Compliant) === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important; /* Force white bg */
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #212529 !important; /* Proper dark text */
    caret-color: #212529 !important;
    transition: background-color 9999s ease-in-out 0s; /* Prevent flash */
}

    /* Optional: consistent focus appearance for autofilled inputs */
    input:-webkit-autofill:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3), 0 0 0 1000px #ffffff inset !important;
    }

/* === WCAG 2.2.2 Compliant Input Styles === */
.form-control {
    background-color: #ffffff !important; /* Force white box, not inherited */
    border: 2px solid #6c757d !important; /* medium contrast border */
    color: #212529 !important; /* high-contrast text */
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.91rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Focus state — highly visible */
    .form-control:focus {
        background-color: #ffffff !important;
        border-color: #0d6efd !important; /* Bootstrap blue */
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3); /* visible glow */
        outline: none;
    }

    /* Placeholder text more readable */
    .form-control::placeholder {
        color: #495057 !important;
        opacity: 1;
    }

/*till there*/
body {
    height: 100%;
    font-family: 'Poppins', 'Roboto', sans-serif;
    /* background-color: var(--main-bg);
            color: var(--main-text-color); */
    margin: 0;
    overflow: hidden; /* Prevent body scroll */
}

.layout-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
/* Sidebar styles */
.sidebar {
    width: 250px;
    background-color: var(--falcon-sidebar-bg);
    border-right: 1px solid var(--falcon-sidebar-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--falcon-sidebar-scrollbar-bg) transparent;
}

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background-color: var(--falcon-sidebar-scrollbar-bg);
        border-radius: 3px;
    }

.sidebar-header {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--falcon-primary-blue);
    font-style: italic;
    border-bottom: 1px solid var(--falcon-sidebar-border);
    user-select: none;
    white-space: nowrap;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

    .sidebar-nav li {
        width: 100%;
    }

        .sidebar-nav li a {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            color: var(--falcon-sidebar-text-color);
            font-weight: 600;
            text-decoration: none;
            border-left: 4px solid transparent;
            transition: background-color 0.2s, border-color 0.2s, color 0.2s;
            white-space: nowrap;
        }

            .sidebar-nav li a:hover,
            .sidebar-nav li a:focus {
                background-color: #FFF;
                color: var(--falcon-sidebar-text-hover) !important;
                border-left-color: var(--falcon-primary-blue);
                text-decoration: none;
                outline: none;
                cursor: pointer;
            }

            .sidebar-nav li a.active {
                background-color: #bfd4ff;
                border-left-color: var(--falcon-primary-blue);
                color: var(--falcon-primary-blue-dark);
            }

            .sidebar-nav li a .icon-wrapper {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 32px;
                height: 32px;
                margin-right: 0.75rem;
                background-color: var(--falcon-sidebar-icon-bg);
                border: 1.5px solid var(--falcon-sidebar-icon-border);
                border-radius: 8px;
                /*color: var(--falcon-primary-blue-dark);*/
                font-size: 1.1rem;
            }

                .sidebar-nav li a .icon-wrapper svg {
                    width: 18px;
                    height: 18px;
                }
/* Logout button at bottom */
.sidebar-logout {
    padding: 1rem;
    border-top: 1px solid var(--falcon-sidebar-border);
}

    .sidebar-logout a {
        display: flex;
        align-items: center;
        color: var(--falcon-sidebar-text-color);
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

        .sidebar-logout a svg {
            margin-right: 0.5rem;
            width: 18px;
            height: 18px;
        }

        .sidebar-logout a:hover {
            color: var(--falcon-primary-blue);
        }
/* Header styles */
header {
    height: 86px;
    /*background-color: var(--falcon-header-bg);*/
    color: var(--falcon-header-text-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--falcon-sidebar-border);
    justify-content: space-between;
    user-select: none;
    font-weight: 600;
    font-size: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .header-left .menu-toggle {
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--falcon-primary-blue-dark);
        user-select: none;
        border: none;
        background: none;
    }

.header-logo {
    font-style: italic;
    font-weight: 700;
    color: var(--falcon-primary-blue);
    font-size: 1.25rem;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--falcon-primary-blue-dark);
}

    .header-right button,
    .header-right .icon-btn {
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        color: var(--falcon-primary-blue-dark);
        font-size: 1.25rem;
    }

    .header-right .notification-dot {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 8px;
        height: 8px;
        background-color: var(--falcon-notification-dot-color);
        border-radius: 50%;
    }
/* Main content */
main.content-area {
    flex-grow: 1;
    height: calc(100vh - 64px - 48px); /* header + footer */
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background-color: var(--falcon-main-bg);
}
/* Footer styles */
footer {
    /*height: 48px;*/
    background-color: var(--falcon-footer-bg) !important;
    color: var(--falcon-footer-text-color);
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.875rem;
    border-top: 1px solid var(--falcon-sidebar-border);
    user-select: none;
}
/*********************************************************************************/

/* Global Styles for Better Contrast and Readability */
body {
    background-color: #eef5ff; /* Light gray background for page */
    font-size: 16px; /* Base font size for scalability */
    font-family: Roboto, Arial, sans-serif; /* Consistent with theme */
}

.form-container {
    background-color: #FFFFFF; /* White form background */
    border: 1px solid #D3D3D3; /* Subtle gray border */
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow for professionalism */
}

.form-label {
    color: #333333; /* Darker text for contrast */
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-input {
    border: 1px solid #CCCCCC; /* Light gray border for inputs */
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

    .form-input:focus {
        outline: 2px solid #003087; /* Blue outline for focus */
        box-shadow: 0 0 5px rgba(0, 48, 135, 0.5);
    }

/* Ensure radio buttons and checkboxes have non-color cues */
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 48, 135, 0.25);
}

/* Style the "NEW" indicator */
.new-indicator {
    font-weight: bold;
    color: #e63757; /* Red for visibility */
    margin-left: 0.5rem;
}

/* Adjust button for professionalism */
.btn-primary {
    background-color: var(--falcon-primary);
    border-color: var(--falcon-primary);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

    .btn-primary:hover {
        background-color: #003380;
        border-color: #003380;
    }

/*********************************************************************************/
.cos-pinsix {
    --w: 1ch; /* control the width for each letter */
    --g: .15em; /* the gap between letters */
    --b: 2px; /* the border thickness */

    --c: #888;
    --_n: attr(maxlength type(<integer>));
    font-size: 60px;
    line-height: 1.4; /* control the height */
    letter-spacing: var(--w);
    font-family: monospace;
    width: calc(var(--_n)*(1.05ch + var(--w)));
}

#cos-spinner-div {
    position: fixed;
    display: none;
    /*width: 100%;
    height: 100%;
    top: 0;
    left: 0;*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.cos-text-primary {
    --cos-text-opacity: 1;
    color: rgba(var(--falcon-primary-rgb), var(--cos-text-opacity)) !important;
}

[data-bs-theme=dark] .dark__cos-text-primary {
    color: #2c7be5 !important;
}

.cos-heading {
    color: #0358AC;
    font-family: roboto, Arial;
    /*font-size: 1.25rem;*/
    font-size: 1.5rem;
    font-weight: bold;
    /*margin-bottom: 5px;*/
    margin-bottom: 1rem;
}

.cos-sub-heading {
    color: #333;
    font-family: roboto, Arial;
    /*font-variant: small-caps;*/
    font-size: 1rem;
    font-weight: bold;
}

.cos-tooltip-primary {
    --falcon-tooltip-bg: #2c7be5;
    --falcon-tooltip-color: var(--falcon-white);
}

.cos-tooltip-warning {
    --falcon-tooltip-bg: #f5803e;
    --falcon-tooltip-color: var(--falcon-white);
}

.cos-tooltip-danger {
    --falcon-tooltip-bg: #e63757;
    --falcon-tooltip-color: var(--falcon-white);
}

.cos-vw-90 {
    width: 90vw !important;
}

.cos-ul-hz {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(128px, 1fr));
}


/* Floating Form Required Element Label to have a red Asterisk */
input[required] + label:after, select[required] + label:after {
    content: ' *' !important;
    color: red !important;
}

.cos-navbar-solid {
    /*background-color: var(--falcon-navbar-vertical-card-bg-color);*/
    background-color: var(--falcon-navbar-vertical-default-bg-color);
}

.cos-cursor-pointer {
    cursor: pointer;
}

.cos-sticky-top {
    position: sticky;
    top: 70px;
    z-index: 1015;
}

.cos-sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 1015;
}

/* FullCalendar Customization START. Used in HomeAdmins */
.fc .fc-button {
    color: #fff;
    background-color: #2c7be5;
    border-color: #2c7be5;
}

    .fc .fc-button:hover {
        color: #fff;
        background-color: rgb(37.4, 104.55, 194.65);
        border-color: rgb(35.2, 98.4, 183.2);
    }

.fc-event {
    font-size: 1rem !important;
    font-weight: 700 !important;
    min-height: 30px !important;
    padding-left: 5px !important;
    cursor: pointer !important;
}
/* FullCalendar Customization END. Used in HomeAdmins */

form {
    /*background-color: #f2f2f2;*/
}

.cos-bg-color {
    background-color: #f2f2f2;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
}

.cos-form-label {
    color: rgb(var(--cos-label-color-rgb));
}

/* Color Pallette Title on summernote rich text box */
.note-palette-title {
    color: #333 !important;
}

.popover {
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
}

.cos-pre {
    white-space: pre !important;
}

table.table-fit {
    width: auto !important;
    table-layout: auto !important;
}

    table.table-fit thead th,
    table.table-fit tbody td,
    table.table-fit tfoot th,
    table.table-fit tfoot td {
        width: auto !important;
    }

.table {
    --falcon-table-color-type: #333;
    --falcon-table-bg: var(--falcon-card-bg);
    --falcon-table-border-color: var(--falcon-gray-300);
}

.table-striped > tbody > tr:nth-of-type(even) > * {
    --falcon-table-color-type: #333;
}

.table-striped-columns > :not(caption) > tr > :nth-child(even) {
    --falcon-table-color-type: #333;
}

thead.clsDummy tr th {
    padding: 0.25rem !important;
    --falcon-text-opacity: 1;
    color: rgba(var(--falcon-gray-900-rgb), var(--falcon-text-opacity)) !important;
}

tbody.clsDummyBody tr td, tfoot.clsDummyBody tr td {
    max-width: 250px;
    white-space: nowrap;
    padding: 0.25rem !important;
    align-content: center;
}

tbody.clsDummyBodyCut tr td {
    max-width: 250px;
    white-space: nowrap;
    padding: 0.25rem !important;
    align-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cos-low-tr td, .cos-low-tr td a {
    color: #f5803e !important;
}

.cos-inactive-tr td, .cos-inactive-tr td a {
    font-style: italic;
    color: var(--falcon-dark-text-emphasis) !important;
}

/* To avoid modal getting behind the backdrop if not directly attached to the <body> element */

.modal {
    background: rgba(0, 0, 0, 0.5);
}

.modal-backdrop {
    display: none;
}
/*---------------------------*/

/* Table Sort Customization */
.sort.asc, .sort.desc {
    background-color: #0000b0 !important; /*rgb(var(--falcon-gray-900-rgb)) */
    color: var(--falcon-gray-100) !important;
}

.sort[data-sort].asc::after {
    /*content: "\002B06" !important;*/
    content: '\25B2' !important;
    color: limegreen !important;
    /*padding-left: 3px;*/
}

.sort[data-sort].desc::after {
    /*content: "\002B07" !important;*/
    content: '\25BC' !important;
    color: orange !important;
    /*padding-left: 3px;*/
}
/*---------------------------*/

.cos-text-over-line {
    display: flex;
}

    .cos-text-over-line:before, .cos-text-over-line:after {
        content: "";
        flex: 1 1;
        border-bottom: 1px solid #000;
        margin: auto;
    }


.rotatePhoto90 {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
.rotatePhoto180 {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}
.rotatePhoto270 {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg);
}

/* ---------- Clock in TimeClock ------------ */

.clockdate-wrapper {
    background-color: #fff;
    padding: 15px;
    /*max-width: 350px;*/
    width: 100%;
    text-align: center;
    border:3px solid #000;
    border-radius: 5px;
    margin: 0 auto;
}

#clock {
    background-color: #fff;
    font-family: sans-serif;
    font-size: 4.29981696rem !important;
    /*text-shadow: 0px 0px 1px #fff;*/
    color: #000;
    font-weight: bold;
}

    #clock span.ampm {
        color: #111;
        /*text-shadow: 0px 0px 1px #333;*/
        font-size: 3.5831808rem !important;
        position: relative;
        top: -5px;
        left: 10px;
        font-weight: bold;
    }

    #clock span.sec {
        font-size: 4.29981696rem !important;
        color: #111;
        font-weight: bold;
    }

#date {
    letter-spacing: 3px;
    font-size: 1.44rem !important;
    font-family: arial,sans-serif;
    color: #000;
}
/* ------------------------------ */
/* Webcam in TimeClock */

.webcam-canvas {
    display: none;
}

/* Camera Container */
.camera-ctn {
    position: relative;
    background: #fff;
}

.camera-view video {
    object-fit: cover;
    transform: scaleX(-1);
}

/* VIEW & SAVE PHOTO */
.gallery-view {
    position: absolute;
    background: #fff;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    transform: translateX(100vw);
}

    .gallery-view.show-gallery {
        transform: translateX(0);
    }

    .gallery-view img {
        height: 240px;
        object-fit: cover;
    }
/* ------------------------------ */

/* TimeClock Manual */
td.hover-img img {
    display: none;
}
td.hover-img:hover img:nth-of-type(1) {
    display: block !important;
    position: fixed !important;
    top: 70px;
    right: 330px;
    width: 320px;
    height: 240px;
    border: 2px solid gray;
    z-index: 1000;
}
td.hover-img:hover img:nth-of-type(2) {
    display: block !important;
    position: fixed !important;
    top: 70px;
    right: 10px;
    width: 320px;
    height: 240px;
    border: 2px solid gray;
    z-index: 1000;
}
/* ----------------------------- */

/* ALERTS */
.cos-alert-success {
    color: rgb(0, 120, 70);
    background-color: rgb(235, 255, 245);
    border: rgb(0, 120, 70);
}

.cos-alert-info {
    color: rgb(17, 90, 142);
    background-color: rgb(237, 251, 255);
    border: rgb(17, 90, 142);
}

.cos-alert-warning {
    color: rgb(94, 49, 23);
    background-color: rgb(255, 243, 235);
    border: rgb(94, 49, 23);
}

.cos-alert-danger {
    color: rgb(131, 32, 50);
    background-color: rgb(250, 235, 238);
    border: rgb(131, 32, 50);
}
