/*
   Only what the host itself needs: the loading indicator that runs before any of the app has
   started, and the error bar. Everything else is in the shared stylesheet.
*/

.loading-progress {
    position: absolute;
    display: block;
    width: 128px;
    height: 128px;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #2a3543;
    stroke-width: 8px;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #4a9fd4;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    color: #8b97a6;
    inset: calc(20vh + 52px) 0 auto 0;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 11px 20px;
    background: #4a1f1f;
    color: #f0dede;
    border-top: 1px solid #d95c5c;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 10px;
}

.blazor-error-boundary {
    padding: 16px;
    background: #4a1f1f;
    color: #f0dede;
    border-radius: 6px;
}

.blazor-error-boundary::after {
    content: "Something in this part of the page went wrong.";
}
