h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #007aff;
}

.datepicker-container {
    position: fixed;
    bottom: -320px;
    left: 0;
    width: 100%;
    background-color: #f5f5f7;
    border-top: 1px solid #ddd;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100000;
    padding-bottom: 30px;
}

.datepicker-container.active {
    bottom: 0;
}

.datepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.datepicker-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f0f0f0;
    border-radius: 12px 12px 0 0;
}

.datepicker-cancel,
.datepicker-done {
    color: #007aff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px 10px;
}

.datepicker-cancel {
    color: #ff3b30;
}

.picker-wrapper {
    display: flex;
    justify-content: center;
    height: 220px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.picker-column {
    position: relative;
    height: 100%;
    overflow: hidden;
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.picker-items {
    position: absolute;
    top: 0;
    width: 100%;
    transition: transform 0.3s ease-out;
}

.picker-item {
    height: 44px;
    line-height: 44px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-item.selected {
    font-size: 20px;
    font-weight: 500;
    color: #007aff;
}

.picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 44px;
    margin-top: -4px;
    pointer-events: none;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Добавляем стили для мобильных устройств */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .picker-item {
        font-size: 16px;
    }

    .picker-item.selected {
        font-size: 18px;
    }
}

/* Добавляем стили для лучшей анимации */
.picker-items {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}