﻿html, body {
    height: 100%;
    margin: 0;
}

#preLoderContainer {
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffffad;
    min-height: calc(100vh - 12px);
    height: 100%;
    position: fixed;
    width: 100%;
}

.preLoader,
.dot-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.preLoader {
    transform-origin: center;
    animation: anirotate 10s linear infinite;
}

.dot-container {
    position: absolute;
    border: 0px solid #fff;
    border-radius: 50px;
}

    .dot-container:nth-child(2) {
        transform: rotate(40deg);
    }

        .dot-container:nth-child(2) .dot {
            animation-delay: -0.5s;
        }

    .dot-container:nth-child(3) {
        transform: rotate(80deg);
    }

        .dot-container:nth-child(3) .dot {
            animation-delay: -1s;
        }

.dot {
    position: absolute;
    height: 10px;
    width: 10px;
    background: #0066ff;
    border-radius: 5px;
    transform: translate(0, 0);
}

    .dot:nth-child(1) {
        top: 0;
        left: calc(50% - 5px);
        animation: ani1 2s infinite;
    }

    .dot:nth-child(2) {
        bottom: calc(28% - 5px);
        left: calc(11% - 5px);
        animation: ani2 2s infinite;
    }

    .dot:nth-child(3) {
        bottom: calc(28% - 5px);
        right: calc(11% - 5px);
        animation: ani3 2s infinite;
    }

[hidden] {
    display: none;
}

@keyframes anirotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-359deg);
    }
}

@keyframes ani1 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-40px, 67px);
    }
}

@keyframes ani2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(77px, 0);
    }
}

@keyframes ani3 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-39px, -67px);
    }
}

/*Styles of the Loader in the Document Viewer*/
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: 1000;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #ff0000;
    transition: width 0.3s ease;
    position: relative;
}

    #progress-bar.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 20%;
        background: rgba(255, 255, 255, 0.4);
        animation: indeterminate-shimmer 1.5s infinite;
    }

@keyframes indeterminate-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(500%);
    }
}
/* Percentage indicator */
#progress-percentage {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #ff0000;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 2px white;
}

/* Loader in Modal */
/* Blur effect for background content */
.blurred {
    filter: blur(0.5px);
    pointer-events: none;
}

/* Centered loader overlay */
.loader-overlay {
    display: none;
    position: absolute;


    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0.5px);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1055;
    color: #6c757d;
}

    .loader-overlay.hidden {
        display: none;
    }

.modal-content {
    position: relative;
}