html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

#role-app {
    border: 5px solid red;
}

/*body {
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url('../images/bg.png');
    color: var(--text-clr);
    display: grid;
    grid-template-columns: auto 1fr;
}*/

body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: auto 1fr;
    background: radial-gradient(900px 500px at 20% 25%, rgba(80,240,255,.25), transparent 60%), radial-gradient(900px 600px at 78% 65%, rgba(170,120,255,.22), transparent 60%), radial-gradient(700px 450px at 70% 15%, rgba(255,170,110,.18), transparent 60%), linear-gradient(135deg, #0b1224 0%, #0c142a 45%, #0a1226 100%);
}



.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;
}


.modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: table;
    transition: opacity 0.3s ease;
}

.modal-body-scroll {
    max-height: 80vh; /* adjust: 60vh, 75vh, etc. */
    overflow-y: auto; /* show scrollbar when needed */
    overflow-x: hidden;
}

.bigCheckBox {
    /*    width: 20px;
    height: 20px;*/
    width: 1.5rem; /* Assuming you want them larger */
    height: 1.5rem;
    cursor: pointer;
    border: 1px solid #258cfb !important; /* Darker, thicker border */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: all 0.2s ease-in-out;
}

.big-checkbox-17 {
    width: 17px;
    height: 17px;
}

.icon-size-13 {
    font-size: 1.3em;
    margin-top: 2px;
}

.transparent05 {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.transparent03 {
    opacity: 0.3;
}

.transparent10 {
    opacity: 1;
}

.glowingtext:hover {
    /*text-shadow: 0 0 5px #258cfb;*/
    /*text-shadow: 0 0px 15px #f1536e;*/
    background-color: #258cfb;
    border-radius: 10px;
    padding: 2px;
    cursor: pointer;
}

.bi-lg {
    font-size: 1.25rem;
}

.bi-xl {
    font-size: 1.5rem;
}

.size-scale {
    display: inline-block; /* Add this line */
    transition: transform 0.2s ease-in-out; /* Optional: makes the scaling smooth */
}

    .size-scale:hover {
        transform: scale(1.5);
        font-weight: bold;
    }

/*.size-scale:hover {
    transform: scale(1.5);
    font-weight: bold;
}*/

.underline-input {
    border: none; /* Remove default border */
    border-bottom: 1px solid #ccc; /* Add underline */
    padding: 5px 0; /* Add padding as needed */
    width: 100%; /* Set width as needed */
    box-sizing: border-box; /* Include padding and border in total width */
    outline: none; /* Remove outline when focused */
}

    /* Optional: Hover and focus styles */
    .underline-input:hover,
    .underline-input:focus {
        border-bottom-color: blue; /* Change underline color on hover/focus */
    }

.disable-div5 {
    pointer-events: none;
    opacity: 0.5;
}

.disable-div7 {
    pointer-events: none;
    opacity: 0.7;
}

.greenBox {
    display: inline-flex; /* d-inline-flex */

    padding-inline: 0.5rem; /* px-2 */


    font-weight: 600; /* fw-semibold */
    /* Prefer Bootstrap CSS variables if present, fallback otherwise */
    color: var(--bs-success-text-emphasis, #0a3622); /* text-success-emphasis */
    background-color: var(--bs-success-bg-subtle, #d1e7dd); /* bg-success-subtle */

    border: 1px solid; /* border */
    border-color: var(--bs-success-border-subtle, #a3cfbb); /* border-success-subtle */

    border-radius: 0.25rem; /* rounded-2 */
}

.grayBox {
    display: inline-flex; /* d-inline-flex */
    padding-inline: 0.5rem; /* px-2 */
    font-weight: 600; /* fw-semibold */
    color: var(--bs-success-text-emphasis, #0a3622); /* text-success-emphasis */
    border: 1px solid; /* border */
    border-color: var(--bs-success-border-subtle, #a3cfbb); /* border-success-subtle */
    border-radius: 0.25rem; /* rounded-2 */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: .75rem;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-row {
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.2s);
}


.watermark-overlay {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none; /* Allows clicking through the text */
}

.watermark-content {
    background-color: rgba(0, 123, 255, 0.8); /* Bootstrap Primary with transparency */
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.water-mark-empleft {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ccc;
    padding: 2rem;
    pointer-events: none;
    opacity: 0.7;
}

    /* Watermark overlay with fade-out */
    .water-mark-empleft::after {
        content: var(--watermark-text, "EMPLOYEE LEFT");
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-30deg);
        font-size: 5rem;
        color: rgba(255, 0, 0, 0.15);
        font-weight: bold;
        pointer-events: none;
        z-index: 9999;
        white-space: nowrap;
        opacity: 1;
    }

.water-mark-deleted {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ccc;
    padding: 2rem;
}

    .water-mark-deleted::after {
        content: var(--watermark-text, "Deleted");
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-30deg);
        font-size: 5rem;
        color: rgba(255, 0, 0, 0.15);
        font-weight: bold;
        pointer-events: none;
        z-index: 9999;
        white-space: nowrap;
        opacity: 1;
    }


/* Modal Watermark Overlay */
.modal-watermarkOLD {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(220, 53, 69, 0.12); /* Subtle semi-transparent bootstrap red */
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
    pointer-events: none; /* Allows clicking right through the text */
    z-index: 1051; /* Places it clearly over form inputs */
    user-select: none; /* Prevents highlighting text accidentally */
    border: 8px dashed rgba(220, 53, 69, 0.2);
    padding: 10px 30px;
    border-radius: 15px;
}

.modal-watermark {
    position: absolute;
    top: 40%;
    left: 5%;
    right: 5%;
    /* Keep it centered inside the modal bounding box */
    transform: translateY(-50%) rotate(-15deg);
    /* Responsive font sizing so it doesn't spill out */
    font-size: calc(1.5rem + 2vw);
    font-weight: 900;
    /* Subtle semi-transparent warning color */
    color: rgba(220, 53, 69, 0.15);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    /* Security and Interaction rules */
    pointer-events: none; /* Allows clicking input fields underneath */
    user-select: none; /* Prevents highlighting text accidentally */
    /* Stamp Border Aesthetic */
    border: 6px dashed rgba(220, 53, 69, 0.25);
    padding: 15px 10px;
    border-radius: 12px;
    z-index: 1060; /* Ensures it sits neatly above the inputs */
}




.row-dirty {
    background-color: #fff9db !important; /* Light yellow tint */
    border-left: 4px solid #fcc419; /* Yellow indicator bar */
}

/* Client Page*/

/* 2. Define the Main Content Area as a scrollable container */
.main-content-scroll {
    height: 100vh; /* Fill the viewport height */
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* 3. Keep the Header Sticky at the top */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1020; /* Sits above table content */
    background-color: #1a2333; /* Matches your dark-soft color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. Optional: Make the Optional Courses card scrollable too (instead of the whole page) */
/* Use this if you want the "Mandatory" list to stay fixed on the right while scrolling courses */
/*.course-list-container {
    max-height: 70vh;*/ /* Adjust based on your preference */
/*overflow-y: auto;
}*/

/*.bg-sidebar {
    background-color: var(--bg-sidebar);
}*/
/*
.client-scroll-area {
    height: calc(100vh - 150px);
    overflow-y: auto;
}
*/
.client-item {
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
}

    .client-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

.active-client {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-left: 4px solid var(--accent-blue);
    color: var(--accent-blue);
}

.client-avatar {
    width: 35px;
    height: 35px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    color: var(--accent-blue);
}

/* Table and Card Styling */
.bg-dark-soft {
    background-color: #1a2333;
}

.bg-card {
    background-color: var(--bg-card);
}

.bg-mandatory {
    background: linear-gradient(135deg, #1e293b 0%, #16202c 100%);
    border: 1px solid rgba(255, 193, 7, 0.1) !important;
}

/* Premium Switch Styling */
.custom-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

    .custom-switch .form-check-input:checked {
        background-color: #10b981;
        border-color: #10b981;
    }

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

/* This controls the speed of the items moving up/down */
.flip-list-move {
    transition: transform 0.8s ease;
}

/* Optional: Highlight the selected item to make it pop */
.selected-item {
    border-left: 5px solid #ffc107 !important;
    background-color: #1e293b !important;
    z-index: 10;
    transform: scale(1.02);
    transition: all 0.5s ease;
    color: white;
}

/* PAGE SCOPE */
#booking-list-page .list-group-item.selected-item {
    color: #fff !important;
}

    #booking-list-page .list-group-item.selected-item * {
        color: #fff !important;
    }

    /* Keep it white even when hovering/focusing the selected item */
    #booking-list-page .list-group-item.selected-item:hover,
    #booking-list-page .list-group-item.selected-item:focus {
        color: #fff !important;
    }

        #booking-list-page .list-group-item.selected-item:hover *,
        #booking-list-page .list-group-item.selected-item:focus * {
            color: #fff !important;
        }

.dropdown-menu li:hover {
    background-color: #f8f9fa; /* Subtle grey hover */
}

.cursor-pointer {
    cursor: pointer;
}



/*.bg-dashboard-home {
    background-color: #1a1d20;
    min-height: 100vh;
}*/

/* Adds a nice hover effect to your cards against the new background */
.setting-card-home {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .setting-card-home:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-5px);
    }

.course-label-truncate {
    display: inline-block;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle; /* Keeps it aligned with the checkbox */
    margin: 0;
    padding: 0;
}

.batch-enrollment-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 22%), radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 20%), linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.be-shell {
    max-width: 1800px;
    margin: 0 auto;
}

.be-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.be-header__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.be-header__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.be-header__icon {
    color: #fbbf24;
    font-size: 1.4rem;
}

.be-eyebrow,
.be-panel__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.be-title {
    color: #f8fafc;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 700;
}

.be-subtitle {
    color: #94a3b8;
    font-size: 0.98rem;
}

.be-header__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.be-toolbar,
.be-panel {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.be-toolbar {
    overflow: hidden;
}

.be-label {
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.be-input,
.be-input-icon {
    min-height: 46px;
    border-radius: 12px;
    border-color: #dbe3ef;
}

    .be-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    }

.be-input-icon {
    background: #f8fafc;
    color: #64748b;
}

.be-quick-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
}

.be-quick-filters__title {
    color: #475569;
    font-weight: 700;
    margin-right: 0.25rem;
}

.be-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    .be-chip:hover {
        border-color: #93c5fd;
        background: #f8fbff;
    }

    .be-chip input {
        margin: 0;
    }

.be-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid #eef2f7;
}

.be-panel__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.be-panel__body {
    padding: 1rem 1rem 1rem 1.25rem;
    max-height: 66vh;
    overflow: auto;
}

.be-badge {
    min-width: 34px;
    height: 34px;
    padding: 0 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.85rem;
}

.be-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.be-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .be-list-item:hover {
        border-color: #bfdbfe;
        background: #f8fbff;
        transform: translateY(-1px);
    }

.be-list-item--selected {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.be-checkbox {
    margin-top: 0.15rem;
    min-width: 1.05rem;
    min-height: 1.05rem;
}

.be-list-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.be-list-item__title {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.be-empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #64748b;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1.5rem;
}

    .be-empty-state i {
        font-size: 2rem;
        display: block;
        margin-bottom: 0.75rem;
        color: #94a3b8;
    }

.be-btn {
    min-height: 44px;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid transparent;
}

.be-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

    .be-btn-primary:hover,
    .be-btn-primary:focus {
        color: #fff;
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }

.be-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.16);
}

    .be-btn-secondary:hover,
    .be-btn-secondary:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.2);
    }

.be-btn-dark {
    background: #0f172a;
    color: #fff;
}

    .be-btn-dark:hover,
    .be-btn-dark:focus {
        color: #fff;
        background: #020617;
    }

.be-btn-light {
    background: #fff;
    color: #334155;
    border-color: #dbe3ef;
}

    .be-btn-light:hover,
    .be-btn-light:focus {
        color: #0f172a;
        background: #f8fafc;
        border-color: #cbd5e1;
    }

@media (max-width: 1199.98px) {
    .be-panel__body {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .be-header__actions,
    .be-header__content {
        width: 100%;
    }

        .be-header__actions .btn {
            flex: 1 1 auto;
            justify-content: center;
        }

    .be-quick-filters {
        align-items: stretch;
    }
}


/* Female */
.maternity-badge {
    background-color: #fde7f3;
    color: #c21873;
    border: 1px solid #f8b8d8;
    font-weight: 500;
    font-size: 0.72rem;
}

/* Male */
.paternity-badge {
    background-color: #e7f1ff;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
    font-weight: 500;
    font-size: 0.72rem;
}

.badge-current-booking {
    background-color: #0c142a !important;
    color: #f8f9fa !important;
    border: 1px solid #1f2a44;
}
.badge-other-booking {
    background-color: #6c757d;
    color: #ffffff;
}