/* ----- Start --- SplashScreen ----- */
body:has(#applicationLoadingPanel) {
    margin: 0;
    background-color: var(--dxds-color-surface-neutral-default-rest, var(--bs-body-bg));
    color: var(--dxds-color-content-neutral-default-rest, var(--bs-body-color));
}

.a2w-loading-panel {
    /* background-image is set dynamically in C# when configured */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
}

.loading-items-center {
    align-items: center;
    justify-content: center;
    display: flex;
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

.loading-border-primary {
    border-color: #bfbfbf;
}

.loading {
    width: 140px;
    height: 140px;
}

.loading-caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.loading-image {
    width: 46px;
    height: 30px;
}

.loading-border {
    border-width: 4px;
    border-style: solid;
    border-color: var(--dxds-color-border-secondary-default-rest, var(--bs-gray-300)) !important;
}

.loading-image-wrapper {
    width: 120px;
    height: 120px;
    color: var(--dxds-color-content-primary-default-rest, var(--bs-white)) !important;
    background-color: var(--dxds-color-surface-primary-default-rest, var(--bs-primary, #d9d9d9)) !important;
}

.loading-floated-circle {
    border-color: var(--dxds-color-border-primary-default-rest, var(--bs-primary)) !important;
    transform: translateZ(0);
    animation: loading 1s infinite linear;
}

.loading-hide {
    visibility: hidden;
}

/* ----- CustomSplashScreenContainer: moved from inline styles ----- */
.custom-splashscreen-center {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: inherit;
    height: inherit;
    border-radius: 0%;
    padding-top: 60px;
}

.a2w-loading-spinner {
    position: relative;
}

.a2w-loading-ring {
    position: absolute;
    border-color: #d9d9d9;
    height: 100%;
    width: 100%;
    border-radius: 50%;
}

.a2w-loading-ring-floated {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
}

.a2w-loading-image-wrapper {
    border-radius: 50%;
    color: #fff;
}

.a2w-loading-caption {
    font-family: inherit;  /* follow the body font (set by the DX theme) */
    color: white;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ----- END --- SplashScreen ----- */
