/* Error Boundary Fallback UI Styles */
.error-boundary-fallback {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.error-boundary-fallback .text-center {
    max-width: 500px;
    padding: 2rem;
}

.error-boundary-fallback h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.error-boundary-fallback p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.error-boundary-fallback .text-muted {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.error-boundary-fallback .btn {
    min-width: 150px;
}

/* Loading state styles */
[data-loading="true"] {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

[data-loading="true"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error boundary container styles */
[data-error-boundary] {
    position: relative;
    min-height: 200px;
}

/* Alert styles for error messages */
.alert-error-boundary {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.alert-error-boundary .alert-heading {
    color: inherit;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-error-boundary .btn {
    margin-top: 0.5rem;
}
