/* iOS-style Wheel Time Picker Styles */
.wheel-time-picker {
    position: relative;
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.wheel-columns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
}

.wheel-column {
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.wheel-items {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 60px 0;
    position: relative;
    touch-action: pan-y;
}

.wheel-items::-webkit-scrollbar {
    display: none;
}

.wheel-item {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    scroll-snap-align: start;
    transition: opacity 0.1s ease-out, color 0.1s ease-out, transform 0.1s ease-out;
    opacity: 0.3;
    color: var(--fallback-bc, oklch(var(--bc) / 0.6));
    min-width: 30px;
    user-select: none;
    cursor: pointer;
}

.wheel-item.selected {
    opacity: 1;
    color: var(--fallback-bc, oklch(var(--bc)));
    font-weight: 600;
    transform: scale(1.1);
}

.wheel-separator {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fallback-bc, oklch(var(--bc)));
    padding: 0 0.25rem;
}

.wheel-selector {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 28px;
    background: var(--fallback-b1, oklch(var(--b1)));
    border: 1px solid var(--fallback-bc, oklch(var(--bc) / 0.2));
    border-radius: 0.5rem;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1);
}

/* Gradient fade effect - top and bottom */
.wheel-time-picker::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50px;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        var(--fallback-b1, oklch(var(--b1))) 0%,
        transparent 100%
    );
}

.wheel-time-picker::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to top,
        var(--fallback-b1, oklch(var(--b1))) 0%,
        transparent 100%
    );
}

/* Period column (AM/PM) should be narrower */
.wheel-column[data-type="period"] .wheel-item {
    min-width: 26px;
    font-size: 0.75rem;
}

/* Add smooth momentum scrolling */
.wheel-items {
    -webkit-overflow-scrolling: touch;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .wheel-selector {
        background: var(--fallback-b2, oklch(var(--b2)));
        border-color: var(--fallback-bc, oklch(var(--bc) / 0.3));
    }
}
