/* ------------------------------------------------------------------------
 * Loader Overlay Styles
 * Sets up a full-screen overlay for the loader.
 * ------------------------------------------------------------------------ */
.ext-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ------------------------------------------------------------------------
 * Spinner Styles
 * The spinner is a circular container with eight dots arranged around it.
 * The dots fade sequentially, creating a scrolling effect.
 * ------------------------------------------------------------------------ */
.ext-loading {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.ext-loading div {
    position: absolute;
    width: 6px;
    height: 18px;
    background: #fff;
    border-radius: 20%;
    transform-origin: 40px 40px;
    animation: spinner_fade 1.2s linear infinite;
}

/* Position and animation delay for each dot */
.ext-loading div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.ext-loading div:nth-child(2) {
    transform: rotate(45deg);
    animation-delay: -1.0s;
}

.ext-loading div:nth-child(3) {
    transform: rotate(90deg);
    animation-delay: -0.9s;
}

.ext-loading div:nth-child(4) {
    transform: rotate(135deg);
    animation-delay: -0.8s;
}

.ext-loading div:nth-child(5) {
    transform: rotate(180deg);
    animation-delay: -0.7s;
}

.ext-loading div:nth-child(6) {
    transform: rotate(225deg);
    animation-delay: -0.6s;
}

.ext-loading div:nth-child(7) {
    transform: rotate(270deg);
    animation-delay: -0.5s;
}

.ext-loading div:nth-child(8) {
    transform: rotate(315deg);
    animation-delay: -0.4s;
}

/*
 * spinner_fade Animation
 * Fades each dot from fully opaque to transparent.
 */
@keyframes spinner_fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ------------------------------------------------------------------------
 * Animated Loading Text Styles
 * Styles the text that displays "LOADING" letter-by-letter.
 * ------------------------------------------------------------------------ */
.loading-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}