#custom-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.custom-blur-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.custom-animated-loader {
    position: relative;
    width: 6em;
    height: 6em;
    transform: rotate(165deg);
    z-index: 10;
}

.custom-animated-loader:before,
.custom-animated-loader:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 1.2em;
    height: 1.2em;
    border-radius: 0.6em;
    transform: translate(-50%, -50%);
}

.custom-animated-loader:before {
    animation: custom-before-animation 2s infinite;
}

.custom-animated-loader:after {
    animation: custom-after-animation 2s infinite;
}

@keyframes custom-before-animation {
    0% {
        width: 1.2em;
        box-shadow: 2.4em -1.2em rgba(225, 20, 98, 0.75), -2.4em 1.2em rgba(111, 202, 220, 0.75);
    }
    35% {
        width: 6em;
        box-shadow: 0 -1.2em rgba(225, 20, 98, 0.75), 0 1.2em rgba(111, 202, 220, 0.75);
    }
    70% {
        width: 1.2em;
        box-shadow: -2.4em -1.2em rgba(225, 20, 98, 0.75), 2.4em 1.2em rgba(111, 202, 220, 0.75);
    }
    100% {
        box-shadow: 2.4em -1.2em rgba(225, 20, 98, 0.75), -2.4em 1.2em rgba(111, 202, 220, 0.75);
    }
}

@keyframes custom-after-animation {
    0% {
        height: 1.2em;
        box-shadow: 1.2em 2.4em rgba(61, 184, 143, 0.75), -1.2em -2.4em rgba(233, 169, 32, 0.75);
    }
    35% {
        height: 6em;
        box-shadow: 1.2em 0 rgba(61, 184, 143, 0.75), -1.2em 0 rgba(233, 169, 32, 0.75);
    }
    70% {
        height: 1.2em;
        box-shadow: 1.2em -2.4em rgba(61, 184, 143, 0.75), -1.2em 2.4em rgba(233, 169, 32, 0.75);
    }
    100% {
        box-shadow: 1.2em 2.4em rgba(61, 184, 143, 0.75), -1.2em -2.4em rgba(233, 169, 32, 0.75);
    }
}

#custom-loader-message {
    position: relative;
    z-index: 10;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.192);
    padding: 8px 16px;
    border-radius: 4px;
    text-align: center;
}


/* Prevent scrolling when loader is active */

body.loading {
    overflow: hidden;
}