/* =================== Стили для календарей =================== */

/* Стили для иконок календаря */
.calendar-toggle {
    position: absolute;
    top: 60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 22;
    transition: transform 0.2s ease;
}

.calendar-toggle:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

#beforeCalendarToggle {
    left: 10px;
}

#afterCalendarToggle {
    right: 10px;
}

/* Стили для контейнера календаря */
.compare-calendar-container {
    position: absolute;
    top: 110px;
    z-index: 23;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.compare-calendar-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#beforeCalendarContainer {
    left: 10px;
}

#afterCalendarContainer {
    right: 10px;
}

/* Скрытие input элемента календаря */
.compare-date-picker {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
}

/* Стиль для индикатора выбранной даты */
.date-label {
    position: absolute;
    top: 60px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.date-label.visible {
    opacity: 1;
}

#beforeDateLabel {
    left: 60px;
}

#afterDateLabel {
    right: 60px;
}

/* Выделение выбранной даты в календаре */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus {
    background: #2980b9 !important;
    border-color: #2980b9 !important;
    box-shadow: none !important;
    color: white !important;
    font-weight: bold !important;
}

.flatpickr-day.selected-date-highlight {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: white !important;
    font-weight: bold !important;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.8) !important;
    transform: scale(1.1) !important;
}

/* Стили для активного дня в календаре */
.flatpickr-day.today,
.flatpickr-day.selected,
.flatpickr-day:hover {
    border-radius: 10px !important;
} 