/* Custom Date and Time Picker Styles */

.date-picker-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    /* Light grey background */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.date-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.date-box:hover {
    border-color: #1c5253;
}

.date-box.active {
    background-color: #347167;
    /* Emeraldish green */
    color: #fff;
    border-color: #347167;
    box-shadow: 0 4px 10px rgba(52, 113, 103, 0.3);
}

.date-box .day-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

.date-box .day-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.date-box .month-name {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Modifier for active text color to keep contrast */
.date-box.active .day-name,
.date-box.active .day-number,
.date-box.active .month-name {
    color: #fff;
}

.date-box:not(.active) .day-name,
.date-box:not(.active) .month-name {
    color: #777;
}

.date-box:not(.active) .day-number {
    color: #333;
}

.load-more-dates {
    text-align: center;
    font-size: 0.9rem;
    color: #4db6ac;
    cursor: pointer;
    margin-bottom: 20px;
}

.load-more-dates:hover {
    text-decoration: underline;
}

.separator {
    height: 1px;
    background-color: #ddd;
    margin-bottom: 20px;
}

.time-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.time-box:hover {
    border-color: #1c5253;
}

.time-box.active {
    background-color: #347167;
    color: #fff;
    border-color: #347167;
}

.time-box.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f1f1;
}

.time-box.disabled:hover {
    border-color: #ddd;
}

/* Locked State for already booked slots */
.time-box[data-state="locked"] {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
    cursor: not-allowed;
}

.time-box[data-state="locked"]:hover {
    border-color: #f5c6cb !important;
}

.btn-avanti {
    display: block;
    margin: 30px 0 0 auto;
    background-color: #e0e0e0;
    color: #888;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s;
}

.btn-avanti.active {
    background-color: #347167;
    color: #fff;
    cursor: pointer;
}

.btn-avanti.active:hover {
    background-color: #2b5d55;
}

/* Weekly Baseline Styles */
.weekly-slot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 35px;
    border: 1px solid #e1e3ea;
    border-radius: 4px;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
    overflow: hidden;
}
.weekly-slot-btn:hover {
    border-color: #347167;
}
.weekly-slot-btn.active {
    background-color: #347167;
    border-color: #347167;
}
.weekly-slot-btn.active::after {
    content: "Disponibile";
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}