/* Loading Bar for PDF Viewer */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.pdf-loading-overlay.active {
    display: flex;
}

.pdf-loading-content {
    text-align: center;
}

.pdf-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.pdf-loading-bar {
    width: 300px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto;
}

.pdf-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease-in-out infinite;
}

.pdf-loading-text {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.pdf-loading-subtext {
    color: #718096;
    font-size: 0.9rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Dark overlay variant */
.pdf-loading-overlay.dark {
    background: rgba(0, 0, 0, 0.9);
}

.pdf-loading-overlay.dark .pdf-loading-text {
    color: #f7fafc;
}

.pdf-loading-overlay.dark .pdf-loading-subtext {
    color: #cbd5e0;
}