/* Time Picker Styles */
.time-picker-container {
    background-color: rgba(30, 30, 32, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.time-label {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    color: #f5f5f7;
    letter-spacing: -0.02em;
}

.time-picker {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-control-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scrollable Time Picker Styles */
.time-scroll-container {
    position: relative;
    height: 120px;
    overflow: hidden;
    width: 100%;
    margin: 8px 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.time-scroll-wrapper {
    position: relative;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(0px);
}

.time-scroll-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    font-size: 22px;
    font-weight: 500;
    color: rgba(245, 245, 247, 0.6);
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.15s ease; /* Faster transition */
    font-variant-numeric: tabular-nums;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    user-select: none; /* Prevent text selection while scrolling */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Styling for padding items used in circular scrolling */
.time-padding-item {
    opacity: 0.5; /* Slightly dimmer than regular items */
}

.time-scroll-item.active {
    font-size: 28px;
    font-weight: 600;
    color: #f5f5f7;
}

.time-scroll-center-highlight {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 40px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    pointer-events: none;
    z-index: -1;
}

.time-label-small {
    display: none; /* Hide the hour/minute labels */
    font-size: 12px;
    color: #86868b;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.time-separator {
    font-size: 32px;
    font-weight: 300;
    color: #86868b;
    margin-top: -5px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .time-unit {
        width: 70px;
        padding: 0.5rem 0.6rem;
    }
    
    .time-scroll-container {
        height: 120px;
    }
    
    .time-scroll-item {
        font-size: 20px;
        height: 40px;
    }
    
    .time-scroll-item.active {
        font-size: 26px;
    }
    
    .time-control-row {
        gap: 1rem;
    }
    
    .time-picker-container {
        padding: 1.25rem;
    }
    
    .time-scroll-center-highlight {
        height: 40px;
    }
}

@media (max-width: 400px) {
    .time-unit {
        width: 60px;
    }
    
    .time-scroll-item {
        font-size: 18px;
    }
    
    .time-scroll-item.active {
        font-size: 24px;
    }
    
    .time-scroll-container {
        height: 110px;
    }
    
    .time-picker-container {
        padding: 1rem;
    }
}

/* Animation for buttons */
.time-btn:active {
    transform: scale(0.95);
}
