/* ============================================================
   DATEPICKER STYLES
   ============================================================ */

.datepicker {
    background: #fff;
}

.datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.datepicker-prev,
.datepicker-next {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.datepicker-prev:hover,
.datepicker-next:hover {
    background: #F5F5F5;
}

.datepicker-prev svg,
.datepicker-next svg {
    display: block;
}

.datepicker-title {
    font-size: 16px;
    font-weight: 600;
    color: #0F0F0F;
}

.datepicker-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.datepicker-day-name {
    font-size: 12px;
    font-weight: 500;
    color: #A2A2A2;
    text-align: center;
    padding: 8px 0;
}

.datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.datepicker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #0F0F0F;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.datepicker-day:hover:not(:disabled) {
    background: #F5F5F5;
}

.datepicker-day-prev,
.datepicker-day-next {
    color: #D0D0D0;
}

.datepicker-day-disabled {
    color: #D0D0D0;
    cursor: not-allowed;
}

.datepicker-day-today {
    background: #E3F2FD;
    color: var(--color-primary);
    font-weight: 600;
}

.datepicker-day-selected {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.datepicker-day-selected:hover {
    background: var(--color-primary);
}

.datepicker-day-available {
    position: relative;
}

.datepicker-day-available::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #2196F3;
    border-radius: 50%;
}

.datepicker-day-available.datepicker-day-selected::after {
    background: #fff;
}

/* Класс для AirDatepicker */
.-day-.available-date- {
    position: relative;
}

.-day-.available-date-::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #2196F3;
    border-radius: 50%;
}

.-day-.-selected-.available-date-::after {
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .datepicker {
        padding: 15px;
    }

    .datepicker-title {
        font-size: 14px;
    }

    .datepicker-day-name {
        font-size: 11px;
        padding: 6px 0;
    }

    .datepicker-day {
        font-size: 13px;
    }

    .datepicker-prev,
    .datepicker-next {
        width: 28px;
        height: 28px;
    }
}
