/* Modern Time Picker Styles */

.time-picker-wrapper {
    position: relative;
    width: 100%;
}

.time-picker-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
}

.time-picker-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.time-picker-input::placeholder {
    color: #94a3b8;
}

.time-picker-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 280px;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.time-picker-popup.active {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.time-picker-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.time-picker-close-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
}

.time-picker-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.time-picker-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-picker-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.time-picker-display-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.time-picker-display-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    min-width: 50px;
    text-align: center;
}

.time-picker-display-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.time-picker-separator {
    font-size: 36px;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
}

.time-picker-selectors {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

.time-picker-selector-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.time-picker-scroll {
    width: 100%;
    height: 200px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.time-picker-scroll::-webkit-scrollbar {
    width: 6px;
}

.time-picker-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.time-picker-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.time-picker-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.time-picker-option {
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.time-picker-option:hover {
    background: #f8f9fa;
    color: #ff6600;
}

.time-picker-option.selected {
    background: #ff6600;
    color: #ffffff;
    font-weight: 700;
}

.time-picker-option.selected:hover {
    background: #ff8533;
}

.time-picker-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.time-picker-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.time-picker-btn-clear {
    background: #f1f5f9;
    color: #64748b;
}

.time-picker-btn-clear:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.time-picker-btn-apply {
    background: #ff6600;
    color: #ffffff;
}

.time-picker-btn-apply:hover {
    background: #ff8533;
}

.time-picker-btn-apply:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 480px) {
    .time-picker-popup {
        min-width: 260px;
        padding: 15px;
    }
    
    .time-picker-display-value {
        font-size: 28px;
    }
    
    .time-picker-separator {
        font-size: 28px;
    }
    
    .time-picker-scroll {
        height: 150px;
    }
}

