/* Wheel Time Picker Styles */
.timepicker-wheel {
    position: relative;
    direction: rtl;
}

.timepicker-display {
    position: relative;
    cursor: pointer;
}

.timepicker-wheel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1060;
}

.timepicker-wheel-container.active {
    display: flex;
}

.timepicker-wheel-modal {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    direction: rtl;
}

.timepicker-wheel-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.timepicker-wheel-content {
    display: flex;
    gap: 5px;
    justify-content: center;
    height: 200px;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 5px;
}

/* Selection indicator */
.timepicker-selection-highlight {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 50px;
    transform: translateY(-50%);
    border-top: 2px solid #007bff;
    border-bottom: 2px solid #007bff;
    pointer-events: none;
    z-index: 10;
    background: rgba(0, 123, 255, 0.08);
    border-radius: 8px;
}

/* Gradient overlays */
.timepicker-wheel-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 5;
}

.timepicker-wheel-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 5;
}

.timepicker-wheel-column {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.timepicker-wheel-column::-webkit-scrollbar {
    width: 4px;
}

.timepicker-wheel-column::-webkit-scrollbar-track {
    background: transparent;
}

.timepicker-wheel-column::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 2px;
}

.timepicker-wheel-list {
    padding: 75px 0;
    position: relative;
}

.timepicker-wheel-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.timepicker-wheel-item.selected {
    color: #007bff;
    font-weight: bold;
    font-size: 20px;
}

.timepicker-wheel-item:hover {
    background: rgba(0, 123, 255, 0.1);
}

/* AM/PM specific styles */
.timepicker-wheel-item.ampm {
    font-size: 14px;
    font-weight: bold;
}

.timepicker-wheel-item.ampm.selected {
    font-size: 18px;
}

/* Separators */
.timepicker-wheel-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    padding: 0 2px;
    z-index: 15;
}

.timepicker-wheel-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.timepicker-wheel-footer .btn {
    flex: 1;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timepicker-wheel-modal {
    animation: slideUp 0.3s ease;
}

/* Touch feedback */
.timepicker-wheel-item:active {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}
