/* Loading screen — dark theme (default) */
.giz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    box-sizing: border-box;
    background: #101828;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    gap: 16px;
}

.giz-loading__logo {
    opacity: 0.9;
}

.giz-loading__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.giz-loading__bar {
    width: min(240px, 70vw);
    height: 4px;
    background: #272f3d;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.giz-loading__bar__fill {
    height: 100%;
    width: calc(var(--blazor-load-percentage, 0%) * 1);
    background: #526ED3;
    border-radius: 2px;
    transition: width 0.15s ease-out;
}

.giz-loading__percent {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Loading screen — light theme */
@media (prefers-color-scheme: light) {
    .giz-loading {
        background: #F4F4F5;
        color: #101828;
    }

    .giz-loading__bar {
        background: #d3d4db;
    }

    .giz-loading__percent {
        color: rgba(16, 24, 40, 0.5);
    }
}

code {
    color: #c02d76;
}
