/* ============================================================
   LOADING SCREEN — dc-loader
   Usado antes do Blazor inicializar (inlined via <link> no index.html)
   Splash de boot só em Home (/ ou /home). Noutras rotas o HTML
   aplica html.dc-no-boot-splash para não mostrar o overlay no F5.
   ============================================================ */

html.dc-no-boot-splash #dc-loader {
    display: none !important;
}

#dc-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #233571;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
}

#dc-loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#dc-loader img,
.dc-loader-cloud {
    width: min(200px, 50vw);
    max-height: 20vh;
    height: auto;
    object-fit: contain;
    animation: dc-float 3s ease-in-out infinite;
}

@keyframes dc-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.dc-loader-ring {
    width: 44px;
    height: 44px;
    border: 2.5px solid rgba(255, 255, 255, 0.12);
    border-top-color: #6bc8d4;
    border-radius: 50%;
    animation: dc-spin 0.85s linear infinite;
}

@keyframes dc-spin { to { transform: rotate(360deg); } }

.dc-loader-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.loading-progress,
.loading-progress-text { display: none !important; }