.calendar-day {
    min-width: 90px;
    transition: all 0.2s ease-in-out;
}

.calendar-day.active {
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.calendar-days-container {
    min-height: 80px;
}

/* Hide radio input circles */
.calendar-date-option input[type="radio"] {
    display: none;
}

/* Style the calendar date labels */
.calendar-date-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
    background-color: #f8f9fa !important;
    color: #6c757d;
}

.calendar-date-option:hover {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Active state when radio is checked */
.calendar-date-option input[type="radio"]:checked + .calendar-date-content {
    color: #ffffff;
}

.calendar-date-option:has(input[type="radio"]:checked) {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}

.calendar-date-option:has(input[type="radio"]:checked) .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fallback for browsers that don't support :has() */
.calendar-date-option.selected {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}

.calendar-date-option.selected .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .calendar-days-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-day {
        min-width: 70px;
    }
}