﻿#app {
    height: 100%;
}

.app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.app-loading__logo {
    width: clamp(80px, 15vw, 240px);
    object-fit: contain;
    margin-bottom: 24px;
}

.app-loading__bar {
    width: 240px;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 8px;
}

.app-loading__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
    /* O Blazor atualiza --blazor-load-percentage automaticamente durante o boot */
    width: var(--blazor-load-percentage, 0%);
    transition: width 0.2s ease-out;
}

.app-loading__text {
    font-size: 14px;
    color: #6b7280;
    letter-spacing: 0.02em;
}

    .app-loading__text::after {
        content: var(--blazor-load-percentage-text, "Carregando...");
    }
