/**
 * Desktop Time Picker Styles
 * CSS cho desktop time picker select option
 */

/* Desktop Time Picker Container */
.desktop-time-picker-container {
    position: relative;
}

/* Time Select Styling */
#txtGioDen {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#txtGioDen:hover {
    border-color: #007bff;
}

#txtGioDen:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Disabled option styling */
#txtGioDen option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

/* Time validation message */
.time-validation-message {
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.time-validation-message.success {
    color: #28a745;
}

/* Loading state */
.desktop-time-picker-loading {
    opacity: 0.6;
    pointer-events: none;
}

.desktop-time-picker-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #txtGioDen {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Integration with existing booking form */
.booking-border #txtGioDen {
    border: none;
    background: transparent;
    padding: 8px 0;
}

.booking-border #txtGioDen:focus {
    box-shadow: none;
    border: none;
}

/* Error state */
.desktop-time-picker-error #txtGioDen {
    border-color: #dc3545;
}

.desktop-time-picker-error #txtGioDen:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}
