@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.bodyLoading {
    position: fixed;
    inset: 0;
    background: rgb(19, 23, 34); /* keep requested background */
    z-index: 9999;
    overflow: hidden;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.bodyLoading.slide-up {
    animation: slideUp 1s ease-in-out forwards;
}

.vertical-centered-box {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* hide old circular loader */
.loader-circle,
.loader-line-fill,
.loading-line-wrap {
    display: none !important;
}

/* line container */
.loader-line-mask {
    width: min(360px, 78vw);
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

/* progress fill (uses Blazor var if present) */
.loader-line {
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    border-radius: 999px;
    background: #fff;
    transition: width .18s linear;
}

/* keep logo centered and clean */
.content svg,
.loading-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* hide all loading text */
.animated-text,
.loading-progress-text,
#welcome-text {
    display: none !important;
}

/* optional decorative layers */
#particles-background, #particles-foreground {
    left: -51%;
    top: -51%;
    width: 202%;
    height: 202%;
    transform: scale3d(.5, .5, 1);
}

#particles-background {
    background: rgb(19, 23, 34);
}
