/* Timer-specific styles extending the main styles.css */

.timer-container {
    background: #1c1c1e;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 600px;
}

.setup-mode, .running-mode {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

/* Time Pickers */
.time-pickers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    padding: 40px 0;
}

.time-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.picker-label {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 500;
    text-transform: lowercase;
}

.picker-scroller {
    width: 80px;
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    background: linear-gradient(
        to bottom,
        rgba(28, 28, 30, 1) 0%,
        rgba(28, 28, 30, 0.8) 20%,
        rgba(28, 28, 30, 0) 40%,
        rgba(28, 28, 30, 0) 60%,
        rgba(28, 28, 30, 0.8) 80%,
        rgba(28, 28, 30, 1) 100%
    );
    border-radius: 8px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.picker-scroller::-webkit-scrollbar {
    display: none;
}

.picker-options {
    display: flex;
    flex-direction: column;
    padding: 80px 0; /* Add padding to center first and last items */
}

.picker-option {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #8e8e93;
    transition: color 0.2s ease;
    user-select: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    flex-shrink: 0;
}

.picker-option.selected {
    color: #fff;
    font-weight: 400;
}

.picker-indicator {
    position: absolute;
    top: 56%;
    left: 0;
    right: 0;
    height: 40px;
    transform: translateY(-50%);
    border-top: 2px solid #48484a;
    border-bottom: 2px solid #48484a;
    pointer-events: none;
    z-index: 10;
}

/* Running Mode Display */
.running-mode .display {
    text-align: center;
    margin-bottom: 60px;
}

.running-mode #countdown {
    font-size: 4rem;
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Timer finished state */
.timer-finished #countdown {
    color: #ff453a;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Button states for timer */
.timer-container .start-stop-btn:disabled {
    border-color: #48484a;
    color: #48484a;
    cursor: not-allowed;
}

.timer-container .lap-btn:disabled {
    border-color: #48484a;
    color: #48484a;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .time-pickers {
        gap: 15px;
        padding: 30px 0;
    }
    
    .picker-scroller {
        width: 70px;
        height: 180px;
    }
    
    .picker-option {
        height: 36px;
        font-size: 20px;
    }
    
    .running-mode #countdown {
        font-size: 3rem;
    }
    
    .timer-container {
        min-height: 540px;
    }
}
