body {
    margin: 0;
    padding: 0;
    overflow-x: auto;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000;
    margin-top: 5px;
    padding: 0;
    list-style: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.calendar-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    gap: 5px; /* Reduce spacing between items */
    margin-bottom: 10px;
    padding: 0 10px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.calendar-header button,
.calendar-header input[type="date"] {
    height: 36px;
    padding: 5px 10px;
    font-size: 14px;
}

    .calendar-header input[type="date"] {
        max-width: 200px;
    }

.calendar-subtitle {
    margin-bottom: 10px;
    padding-left: 10px;
}

.calendar-header-row {
    position: sticky;
    top: 0;
    display: flex;
    min-width: fit-content;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    z-index: 10;
}

.time-column-header {
    position: sticky;
    left: 0;
    width: 80px;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid #ccc;
}

.employee-header {
    width: 120px;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    border-right: 1px solid #ccc;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.calendar-grid {
    display: flex;
    min-width: fit-content;
}

.time-column {
    position: sticky;
    left: 0;
    display: grid;
    grid-template-rows: repeat(40, 30px);
    width: 80px;
    background-color: #f0f0f0;
    border-right: 1px solid #ccc;
    flex-shrink: 0;
    z-index: 20;
}

.time-slot {
    font-size: 12px;
    line-height: 30px;
    text-align: right;
    padding-right: 8px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.employee-columns {
    display: flex;
}

.employee-slots {
    display: grid;
    grid-template-rows: repeat(40, 30px);
    width: 120px;
    border-right: 1px solid #ccc;
    position: relative;
}

.empty-slot {
    height: 30px;
    border-bottom: 1px solid #eee;
}

.appointment-grid {
    position: absolute;
    background-color: #cce5ff;
    font-size: 12px;
    border-radius: 4px;
    padding: 4px;
    border: 1px solid #999;
    margin: 1px;
    cursor: grab;
    z-index: 1;
    box-sizing: border-box;
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

    .appointment-grid.selected {
        border: 2px solid red;
        background-color: #fdd;
    }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: none;
    z-index: 1000;
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 90vw; /* Responsive width */
    max-width: 400px;
    max-height: 90vh; /* Prevent overflow */
    overflow-y: auto; /* Enable scrolling inside the modal */
}



.logout-button-container {
    margin-left: auto;
}

.logout-button {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-weight: bold;
    height: 32px;
    font-size: 12px;
    border-color: #007bff;
    
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 5px;
}

    .logout-button:hover {
        background-color: #dc3545;
        color: #fff;
    }

.appointment-color-0 {
    background-color: rgba(77, 166, 255, 0.5);
}

.appointment-color-1 {
    background-color: rgba(92, 214, 92, 0.5);
}

.appointment-color-2 {
    background-color: rgba(247, 211, 88, 0.5);
}

.appointment-color-3 {
    background-color: rgba(255, 102, 102, 0.5);
}

.appointment-color-4 {
    background-color: rgba(192, 132, 252, 0.5);
}
/* Sticky Header Container */
.calendar-scroll-wrapper {
    overflow: auto;
    max-height: 80vh; /* Adjust for vertical space */
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Time Column Background */
.time-column .time-slot:nth-child(odd) {
    background-color: fcfcfc; /* Light gray */
}

.time-column .time-slot:nth-child(even) {
    background-color: #ffffff; /* White */
}

/* Employee Columns Background */
.employee-slots .empty-slot:nth-child(odd) {
    background-color: #f9f9f9;
}

.employee-slots .empty-slot:nth-child(even) {
    background-color: #ffffff;
}
.time-column .time-slot {
    text-align: right;
    padding-right: 8px;
    padding-top: 5px;
    font-size: 0.9em;
    color: #333;
}

    .time-column .time-slot:nth-child(4n + 1) {
        font-weight: bold;
        font-size: 1em; /* Slightly larger if desired */
    }


.calendar-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0; /* Remove extra top margin */
    padding: 0 10px;
}



.calendar-subtitle span {
    font-size: 1em;
    white-space: nowrap;
}



.calendar-subtitle.compact .nav-controls {
    display: flex;
    justify-content: flex-start; /* Align everything to the left */
    align-items: center;
    gap: 5px;
    /*flex-wrap: nowrap;*/
    padding: 0; /* Remove any inner padding */
    margin: 0; /* Remove margin if any */
    width: 100%; /* Ensure it stretches full width */
}



.today-btn {
    font-weight: bold;
    color: #007bff;
    border-color: #007bff;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 5px 0; /* Reduce vertical space */
    padding: 0 10px;
    flex-wrap: nowrap;
}

.salon-name {
    margin: 0;
    font-weight: bold;
    font-size: 1em;
}



.pc-date-display {
    text-align: center;
    font-size: 1em;
    margin-top: 10px;
}
    /* Ensure on mobile all controls stay on a single line */
    @media (max-width: 768px) {
        .calendar-subtitle.compact .nav-controls {
            flex-wrap: nowrap;
            overflow-x: auto;
            justify-content: flex-start; /* Ensure left alignment on mobile */
        }
        .nav-controls {
            flex-wrap: nowrap;
            overflow-x: auto;
        }

        .date-input {
            width: 120px;
            height: 30px;
        }

        .small-btn {
            height: 28px;
        }

        .today-btn {
            height: 32px;
            font-size: 12px;
        }

        .top-bar {
            margin: 2px 0; /* Even tighter on mobile */
        }

        .calendar-subtitle.compact {
            margin: 2px 0; /* Reduce space between sections */
        }

        .salon-name {
            font-size: 0.95em;
        }

        .logout-button {
            font-size: 12px;
            padding: 4px 10px;
            height: 32px;
        }
        .pc-date-display {
            display: none !important;
        }
        .modal {
            width: 95vw;
            max-width: none;
            max-height: 95vh;
            padding: 15px;
        }
    }
.calendar-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}
.nav-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}
.calendar-subtitle.compact {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.date-input {
    width: 140px;
    height: 32px;
    padding: 4px 6px;
    box-sizing: border-box;
}

.small-btn {
    height: 32px;
    padding: 4px 8px;
    box-sizing: border-box;
}
.calendar-grid {
    position: relative; /* Required for absolute positioning inside it */
    display: flex;
    min-width: fit-content;
}

.current-time-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: red;
    z-index: 999;
    width: 100%; /* Ensure full width */
}

    .current-time-indicator .time-label {
        position: absolute;
        left: 5px;
        top: -15px;
        background: #fff;
        color: red;
        font-size: 12px;
        padding: 0 4px;
        border-radius: 3px;
        opacity: 0.75; /* 50% opacity */
    }
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 0px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #28a745; /* Green when ON */
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }







