/**
 * Page Loading Overlay Styles
 * Provides a full-screen loading overlay with spinner
 */

.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.97);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.page-loading-overlay.active {
    display: flex;
    opacity: 1;
}

.page-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2185D0;
    border-radius: 50%;
    animation: page-loading-spin 1s linear infinite;
}

.page-loading-text {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-weight: 400;
}

@keyframes page-loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure page content doesn't show while loading */
body.page-loading .dashboard-container,
body.page-loading .main-content,
body.page-loading .content-wrapper {
    visibility: hidden;
}

body.page-loading-complete .dashboard-container,
body.page-loading-complete .main-content,
body.page-loading-complete .content-wrapper {
    visibility: visible;
    animation: page-fade-in 0.3s ease-in-out;
}

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

