/**
 * BookingFlowNavigator Styles
 * 
 * Styles for loading overlay, error dialogs, and navigation states.
 * 
 * @package HotelMaster
 * @subpackage BookingFlow
 * @since 1.0.0
 */

@import url('../shared/spinner.css');

.booking-flow-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-flow-loading-overlay.visible {
    opacity: 1;
}

.booking-flow-loading-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.booking-flow-spinner {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
}

.booking-flow-loading-message {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

body.booking-flow-loading {
    overflow: hidden;
}

body.booking-flow-loading * {
    pointer-events: none;
}

body.booking-flow-loading .booking-flow-loading-overlay,
body.booking-flow-loading .booking-flow-loading-overlay * {
    pointer-events: auto;
}

.booking-flow-error-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-flow-error-dialog.visible {
    opacity: 1;
}

.booking-flow-error-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-flow-error-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.booking-flow-error-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.booking-flow-error-content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.booking-flow-error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.booking-flow-error-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-flow-error-retry {
    background: #9755FF;
    color: white;
}

.booking-flow-error-retry:hover {
    background: #8644ee;
    transform: translateY(-1px);
}

.booking-flow-error-fallback {
    background: #f0f0f0;
    color: #333;
}

.booking-flow-error-fallback:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.booking-flow-error-cancel {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.booking-flow-error-cancel:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

@media (max-width: 768px) {
    .booking-flow-loading-content,
    .booking-flow-error-content {
        padding: 30px 20px;
    }
    
    .booking-flow-error-actions {
        flex-direction: column;
    }
    
    .booking-flow-error-actions button {
        width: 100%;
    }
}

