:root {
    --primary-color: #0c08de; /* Nightshift Blue */
    --secondary-color: #de08a5; /* Neutral Scheme - Pinkishk */
    --accent-color: #ad08de; /* Neutral Scheme - Purpleish */
    --bs-primary: var(--primary-color);
    --bs-secondary: var(--secondary-color);
    --bs-success: #28a745;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
    --standard-background: black;
    --standard-background-text-color: white;
    --alternate-background: var(--primary-color);
    --alternate-background-text-color: white;
    --bs-navbar-color: white;
    --bs-navbar-hover-color: #dade08;
    --bs-navbar-disabled-color: #cfcefd;
    --light-background: #cfcdfd;
    --light-background-color: black;

                /* Dark form theme variables */
                --form-container-bg: rgba(15, 18, 35, 0.6);
                --fieldset-bg: #1a1d2e;
                --fieldset-border: rgba(12, 8, 222, 0.5);
                --fieldset-border-top: rgba(12, 8, 222, 0.8);
                --form-text-color: #ffffff;
                --form-label-color: #ffffff;
                --form-muted-color: rgba(255, 255, 255, 0.75);
                --input-bg: rgba(10, 12, 25, 0.8);
                --input-border: rgba(255, 255, 255, 0.1);
                --input-focus-border: var(--primary-color);
                --input-focus-glow: rgba(12, 8, 222, 0.3);
            }

    /* Dark theme form styling - applies to all forms across the site */
    .ns-application .form-container {
        background: transparent;
        border: none;
        color: var(--form-text-color) !important;
    }

    .ns-application fieldset {
        background: var(--fieldset-bg);
        border: 1px solid var(--fieldset-border);
        border-top: 2px solid var(--fieldset-border-top);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 
                    0 -1px 8px rgba(12, 8, 222, 0.2);
        color: var(--form-text-color) !important;
        position: relative;
    }

    .ns-application fieldset::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        opacity: 0.6;
    }

    .ns-application .form-control,
    .ns-application input,
    .ns-application select,
    .ns-application textarea {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        color: var(--form-text-color) !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .ns-application .form-control:focus,
    .ns-application input:focus,
    .ns-application select:focus,
    .ns-application textarea:focus {
        background: rgba(10, 12, 25, 0.95);
        border-color: var(--input-focus-border);
        box-shadow: 0 0 0 3px var(--input-focus-glow);
        color: var(--form-text-color) !important;
        outline: none;
    }

    .ns-application .form-control::placeholder,
    .ns-application input::placeholder,
    .ns-application textarea::placeholder {
        color: var(--form-muted-color);
        opacity: 0.8;
    }

    /* Select dropdown styling */
    .ns-application select option {
        background: #1a1d2e;
        color: white;
    }

.alternateColors {
    background: var(--alternate-background);
    color: var(--alternate-background-text-color);
}

.carousel-item {
    width: 100%;
    margin: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    position: absolute; /* Remove non-active items from the flow */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0; /* Hide non-active items */
    visibility: hidden; /* Prevent interaction with non-active items */
    font-weight: bold;
    text-align: center;
}

    .carousel-item.active {
        position: relative; /* Active item is part of the flow */
        opacity: 1; /* Make active item visible */
        visibility: visible; /* Allow interaction with active item */
    }

html {
    font-size: 14px;
}

.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%;
}

body {
    margin-bottom: 60px;
}

    body._heroLayout {
        background: var(--standard-background);
        color: var(--standard-background-text-color);
    }

    body._layout {
        background: var(--standard-background);
        color: var(--standard-background-text-color);
    }

.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;
}

.hidden {
    display: none !important;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flex-left-right {
    display: flex;
    align-items: center; /* Adjust vertical alignment as needed */
    width: 100%;
}

    .flex-left-right > :first-child {
        margin-right: auto; /* Pushes all other elements to the end, aligning this first child to the left */
    }

    .flex-left-right > :last-child {
        margin-left: auto; /* Pushes this element to the right side of its flex container */
    }

.flex-left-center-right {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

    .flex-left-center-right > :nth-child(1) {
        margin-right: auto;
    }

    .flex-left-center-right > :nth-child(2) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .flex-left-center-right > :nth-child(3) {
        margin-left: auto;
    }


nav {
    margin: 0;
}

.pageContainer {
    margin-top: 1rem;
}

footer {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-areas: "left center right";
    align-items: center; /* vertical centering */
    width: 100%;
    gap: 1rem; /* optional spacing */
}

    footer div.footer-section {
        /*
        style="display:flex;flex-direction:row;gap:2rem"
            */
    }

    footer > .left {
        padding-left: 1rem;
        grid-area: left;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    footer > .center {
        padding-left: 1rem;
        padding-right: 1rem;
        grid-area: center;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap:1.5rem;
    }

    footer > .right {
        padding-right: 1rem;
        grid-area: right;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }


@media (max-width: 768px) {
    footer {
        line-height: initial !important;
        grid-template-columns: 1fr;
        grid-template-areas:
            "center" /* first row: middle panel */
            "left" /* second row: left panel */
            "right"; /* third row: right panel */
        padding: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

        footer > .left {
            padding: 0;
            justify-content: center;
        }

        footer > .center {
            padding: 0;
            justify-content: center;
        }

        footer > .right {
            padding: 0;
            justify-content: center;
        }
}

@media (max-width: 992px) {

    span.iconBarLabel {
        display: none;
    }
}

div.social-follow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    div.social-follow img {
        width: 40px;
    }

    div.social-follow i {
        display: none;
    }

div.delivery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    div.delivery img {
        width: 40px;
    }

calendarMonth {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
}

    calendarMonth monthHeader {
        padding: 1rem;
        grid-column: span 7; /* Span all 7 columns */
        text-align: center;
        font-size: 1.5em;
        font-weight: bold;
        padding: 10px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
    }

    calendarMonth dayHeader {
        color: var(--primary-color);
        font-weight: bold;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        font-size: 1.2em;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        border-radius: 3px;
    }

    calendarMonth day {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: .5rem;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        border-radius: 3px;
    }

    calendarMonth title {
        display: initial;
    }

    calendarMonth shortTitle {
        display: none;
    }

    calendarMonth day[ispriormonth="1"], calendarMonth day[isnextmonth="1"] {
        color: #aaa; /* Light gray text */
        background-color: #f5f5f5; /* Slightly dimmed background */
        opacity: 0.6; /* Make it less prominent */
        pointer-events: none; /* Optional: Prevent interactions */
    }

    calendarMonth day[isDayPast="1"] dayNumber {
        text-decoration: line-through;
    }

    calendarMonth dayNumber {
        width: 100%;
        text-align: right;
        color: var(--primary-color);
    }

    calendarMonth openingHours {
        width: 100%;
        text-align: center;
        color: var(--primary-color);
    }

        calendarMonth openingHours closed {
            color: red;
        }

        /*
    calendarMonth openingHours opensAt::before {
        content: "Hours: "
    }
    */

        calendarMonth openingHours opensAt::after {
            content: " - "
        }

    calendarMonth day dayName {
        display: none;
    }

    calendarMonth day event {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    calendarMonth day legend {
        display: none;
    }

    calendarMonth day event img {
        max-width: 144px;
        max-height: 144px;
        min-width: 144px;
        min-height: 144px;
    }

    calendarMonth day event .msg {
        border: black solid 2px;
        background-color: var(--alternate-background);
        color: var(--alternate-background-text-color);
        max-width: 144px;
        max-height: 144px;
        min-width: 144px;
        min-height: 144px;
        font-weight: bold;
        text-align: center;
        display: flex; /* Enable Flexbox */
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        overflow: hidden; /* Clip the text if it overflows the container */
        /* white-space: nowrap;  Prevent text from wrapping to the next line */
        /* text-overflow: ellipsis; Optional: Add ellipsis (...) to indicate clipped text */
        font-size: calc(100%); /* Dynamically adjust font */
    }

    calendarMonth day[isdaycurrent="1"] dayNumber {
        background-color: var(--alternate-background);
        color: var(--alternate-background-text-color);
        font-weight: bold;
    }

    calendarMonth day[isdaycurrent="1"] openingHours {
        font-weight: bold;
    }

    calendarMonth changePage[aria-disabled="true"] {
        cursor: not-allowed;
    }

    calendarMonth changePage[aria-disabled="false"] {
        cursor: pointer;
    }

div.qr-code-card {
    border: 1px solid var(--primary-color);
    padding: .5rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

    div.qr-code-card img {
        min-width: 200px;
        max-width: 400px;
    }

@media (min-width: 768px) {
}

@media (max-width: 768px) {
    calendarMonth title {
       display: none;
    }

    calendarMonth shortTitle {
        display: initial;
    }

    calendarMonth openingHours {
        display: none;
    }

    calendarMonth day dayName {
        display: inline;
        padding-right:.5rem;
    }

    calendarMonth dayHeader {
        display: none;
    }

    calendarMonth {
        grid-template-columns: 1fr; /* Single column taking full width */
    }

        calendarMonth monthHeader {
            grid-column: span 1; /* Span only 1 column in mobile view */
            padding: 0.5rem; /* Reduce padding for mobile */
        }

        calendarMonth day {
            padding: 0.5rem; /* Reduce padding for mobile */
            margin-bottom: 0.5rem; /* Add some spacing between days */
        }
            calendarMonth day event img {
                width: 100%; /* Take full width of container */
                height: auto; /* Maintain aspect ratio */
                max-width: none; /* Remove max-width restriction */
                max-height: none; /* Remove max-height restriction */
                min-width: auto; /* Remove min-width restriction */
                min-height: auto; /* Remove min-height restriction */
            }

            calendarMonth day event .msg {
                width: 100%; /* Take full width of container */
                height: auto; /* Allow height to adjust based on content */
                max-width: none; /* Remove max-width restriction */
                max-height: none; /* Remove max-height restriction */
                min-width: auto; /* Remove min-width restriction */
                min-height: auto; /* Remove min-height restriction */
                padding: 1rem; /* Add some padding for better readability */
                font-size: 1rem; /* Use normal font size */
            }

}

#hoursTable td {
    padding: .25rem;
}
    #hoursTable open::after {
        content: " - "
    }

/* Add this to your site.css or a relevant stylesheet */
.calendar-image-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.calendar-image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 20px #000;
    border-radius: 8px;
}
.calendar-image-modal.hidden {
    display: none;
}

.dropdown-menu, .floating-toc {
    background: var(--light-background) !important;
    color: var(--light-background-color) !important;
}

/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    padding: .5rem;
}

.logo {
    height: 120px;
}

.headerbar {
    padding: 10px 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 0;
}

/* Force navbar link colors */
.navbar .nav-link {
    color: white !important;
}

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        color: var(--bs-navbar-hover-color) !important;
    }

    .navbar .nav-link.disabled {
        color: var(--bs-navbar-disabled-color) !important;
    }

/* Dropdown items */
.navbar .dropdown-item {
    color: var(--light-background-color);
}

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background-color: var(--bs-navbar-hover-color);
        color: var(--standard-background);
    }

.navbar-toggler {
    border-color: var(--bs-navbar-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .logo {
        height: 80px;
    }

    .navbar-collapse {
        text-align: center;
    }
}


/* Admin Listing Shared Styles */
.listing-admin {
    margin-top: 1rem;
}

.listing-admin-create-section {
    margin-bottom: 2rem;
    text-align: center;
}

.listing-admin-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.listing-admin-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.listing-admin-item-content {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.listing-admin-item-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.listing-admin-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.listing-admin-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.listing-admin-badge-success {
    background-color: #d4edda;
    color: #155724;
}

.listing-admin-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.listing-admin-badge-info {
    background-color: #cce5ff;
    color: #004085;
}

.listing-admin-badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.listing-admin-badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

.listing-admin-badge-default {
    background-color: #f8f9fa;
    color: #495057;
}

.listing-admin-empty {
    text-align: center;
    padding: 2rem;
}

/* Admin Listing Filter Section */
.listing-admin-filter-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-admin-filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.listing-admin-form-group {
    flex: 1;
    min-width: 200px;
}

.listing-admin-form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #333;
}

.listing-admin-form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

@media (max-width: 768px) {
    .listing-admin-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .listing-admin-item-actions {
        flex-wrap: wrap;
    }
}

/* Fix white-on-white text issue: any element with white/light background should have dark text */
/* Comprehensive fix for all white/light backgrounds */
.form-container:not(.ns-application .form-container),
.user-form,
.role-form,
.details-card,
.shifts-calendar,
.position-selector,
.create-container,
.details-container,
.manage-user-container,
.manage-role-container,
[style*="background: white"],
[style*="background-color: white"],
[style*="background: #fff"],
[style*="background-color: #fff"],
[style*="background:#fff"],
[style*="background-color:#fff"],
.bg-white,
[class*="-card"]:not(.ns-application [class*="-card"]),
[class*="-form"]:not(.ns-application),
[class*="-container"]:not(.carousel-container):not(.ns-application .form-container):not(.ns-application [class*="-container"]) {
    color: #333 !important;
}

/* Ensure headings and paragraphs in white containers have dark text */
.form-container:not(.ns-application .form-container) h1,
.form-container:not(.ns-application .form-container) h2,
.form-container:not(.ns-application .form-container) h3,
.form-container:not(.ns-application .form-container) h4,
.form-container:not(.ns-application .form-container) h5,
.form-container:not(.ns-application .form-container) h6,
.form-container:not(.ns-application .form-container) p,
.form-container:not(.ns-application .form-container) label,
.form-container:not(.ns-application .form-container) span,
.user-form h1,
.user-form h2,
.user-form h3,
.user-form p,
.user-form label,
.user-form span,
.role-form h1,
.role-form h2,
.role-form h3,
.role-form p,
.role-form label,
.role-form span,
.details-card h1,
.details-card h2,
.details-card h3,
.details-card p,
.details-card label,
.details-card span,
.shifts-calendar h1,
.shifts-calendar h2,
.shifts-calendar h3,
.shifts-calendar p,
.shifts-calendar label,
.shifts-calendar span,
.position-selector h1,
.position-selector h2,
.position-selector h3,
.position-selector p,
.position-selector label,
.position-selector span,
[class*="-card"]:not(.ns-application [class*="-card"]) h1,
[class*="-card"]:not(.ns-application [class*="-card"]) h2,
[class*="-card"]:not(.ns-application [class*="-card"]) h3,
[class*="-card"]:not(.ns-application [class*="-card"]) p,
[class*="-card"]:not(.ns-application [class*="-card"]) label,
[class*="-card"]:not(.ns-application [class*="-card"]) span,
[class*="-form"]:not(.ns-application) h1,
[class*="-form"]:not(.ns-application) h2,
[class*="-form"]:not(.ns-application) h3,
[class*="-form"]:not(.ns-application) p,
[class*="-form"]:not(.ns-application) label,
[class*="-form"]:not(.ns-application) span {
    color: #333 !important;
}

/* Form inputs should have dark text (but not ns-application forms) */
input[type="text"]:not(.ns-application input),
input[type="email"]:not(.ns-application input),
input[type="number"]:not(.ns-application input),
input[type="date"]:not(.ns-application input),
input[type="time"]:not(.ns-application input),
input[type="password"]:not(.ns-application input),
textarea:not(.ns-application textarea),
select:not(.ns-application select) {
    color: #333 !important;
}

/* Override admin dark text rules for ns-application forms - MUST BE LAST */
.ns-application label,
.ns-application legend,
.ns-application .form-container label,
.ns-application .form-group label,
.ns-application .form-row label,
.ns-application fieldset label,
.ns-application fieldset legend,
.ns-application fieldset fieldset label,
.ns-application fieldset fieldset legend,
.ns-application .form-check-label,
.ns-application fieldset .form-check-label,
.ns-application fieldset fieldset .form-check-label,
.ns-application div label,
.ns-application div .form-check-label {
    color: #ffffff !important;
    font-weight: 500;
}

