/* Loading Overlay Styles */
#plo-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plo-loading-content {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    border: 1px solid #e0e0e0;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

#plo-loading-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Support for HTML content */
#plo-loading-text h1,
#plo-loading-text h2,
#plo-loading-text h3,
#plo-loading-text h4,
#plo-loading-text h5,
#plo-loading-text h6 {
    margin: 0 0 10px 0;
    color: #333;
}

#plo-loading-text p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

#plo-loading-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#plo-loading-text ul,
#plo-loading-text ol {
    text-align: left;
    margin: 0 0 15px 20px;
}

#plo-loading-text strong {
    font-weight: 600;
}

#plo-loading-text em {
    font-style: italic;
}

#plo-loading-text a {
    color: #0073aa;
    text-decoration: none;
}

#plo-loading-text a:hover {
    text-decoration: underline;
}

/* Optional: Add a simple animation for text without HTML */
#plo-loading-text:not(:has(*))::after {
    content: '';
    animation: plo-dots 1.5s infinite;
}

@keyframes plo-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Fade out animation */
#plo-loading-overlay.plo-fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Hide overlay when page is loaded */
body.plo-loaded #plo-loading-overlay {
    display: none;
}
