/* The following are simple replacement classes of the default blazor spinner.
   This is done because when the spinner is shown, MudBlazor has not properly loaded yet.
   This way we get a loading spinner that immitates the mudblazor design and doesn't look out of place compared to the rest of the application.
*/

.mud-circular-loader {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mud-progress-circular {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.mud-progress-circular-track {
    stroke: rgba(255,255,255,0.2);
    stroke-width: 4;
}

.mud-progress-circular-bar {
    stroke: #DA291C; /* Mud primary */
    stroke-width: 4;
    stroke-linecap: square;

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

    .mud-loader-text {
        margin-top: 12px;
        color: black;
        font-family: Roboto, sans-serif;
        font-size: 1.1rem;
    }
}
