/* General Styles */
#yo-booking-calendar {
    max-width: 600px;
    margin: 0 auto;
}

#yo-booking-calendar #navigation {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}

#navigation button {
    width: 24%;
}

/* Customer details */
#customer-details, #service-selection  {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafb;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

#customer-details .buttons-container {
    display: flex;
    justify-content: space-between;
}

#customer-details .iti {
    display: block;
}

#new-customer-form {
    margin-bottom: 0;
}

#new-customer-form label {
    margin-top: 15px;
}

.booking-notice {
    font-size: .9em;
    color: #e2401c;
}

/* Service selection */
#service-selection select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#service-selection select:focus {
    border-color: #8248f6;
    outline: none;
    box-shadow: 0px 0px 5px #8248f649;
}

#service-selection select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#service-selection .select-container {
    display: flex;
    flex-direction: column;
}

#yo-fetch-staff-schedule {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 500px) {
    #service-selection {
        max-width: 100%;
    }
}

/* Month/Year Navigation */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

.month-nav {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Days of the Week */
.days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.day-name {
    padding: 5px;
    background-color: #f0f0f0;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day, .empty-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-day:hover {
    background-color: #eae0fe;
}

.calendar-day.selected {
    background-color: #8248f6;
    color: #fff;
}

.calendar-day.today {
    background-color: #ffcc80;
    font-weight: bold;
    border: 2px solid #ffa726;
}

/* Disabled Dates */
.calendar-day.disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    pointer-events: none;
    cursor: not-allowed;
}

.empty-day {
    background-color: transparent;
    border: none;
}

/* Booking Details */
#booking-details {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    display: none;
}

#time-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.time-slot {
    width: 6em;
    padding: 10px 5px;
    border: 1px solid #8248f6;
    background-color: #fff;
    color: #8248f6;
    cursor: pointer;
    transition: 0.3s;
}

.time-slot:hover {
    background-color: #8248f6;
    color: white;
}

.time-slot.disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Popup Form */
#popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: white;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#popup-form h3 {
    margin-top: 0;
}

#popup-form form label {
    display: block;
    margin: 10px 0 5px;
}

#customer-details #submit-new-customer, 
#customer-details input,
#service-selection button,
#popup-form form input,
#popup-form form textarea,
#popup-form form button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#customer-details #submit-new-customer, #service-selection button, #popup-form form button {
    background-color: #8248f6;
    color: white;
    cursor: pointer;
}

#customer-details #submit-new-customer:hover, #service-selection button:hover, #popup-form form button:hover {
    background-color: #5e17eb;
}

#popup-form form button {
    margin-bottom: 10px;
}
#cancel-booking {
    display: flex
;
    justify-content: center;
}

#booking-form {
    margin-bottom: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
