.pdf-secure-container {
    border: 10px solid #ECECEC;
    position: relative; /* Required for absolute child */
    background: #fff;
}

.pdf-canvas-wrapper {
    overflow-y: auto;
    max-height: 600px;
    min-height: 600px; /* Match loader height */
}

.pdf-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;

    /* Absolute positioning to overlay the content */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;

    background: #ffffff;
    transition: opacity 0.4s ease;
}

.pdf-loader-content {
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.pdf-loader-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    animation: pdf-pulse 1.5s ease-in-out infinite;
}

@keyframes pdf-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pdf-progress-wrapper {
    width: 100%;
}

.pdf-progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pdf-progress-fill {
    width: 0%;
    height: 100%;
    background: #000;
    transition: width 0.3s ease;
}

.pdf-progress-percent {
    font-size: 14px;
    font-family: sans-serif;
    color: #666;
}

/* Helper class for JS */
.pdf-loader-container.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 1024.98px) {
    .pdf-secure-container {
        border: 5px solid #ECECEC;
    }

    .pdf-canvas-wrapper {
        max-height: 400px;
        min-height: 400px;
    }
}