/* Blazor WASM 启动加载 & 全局错误 UI */

#app {
    position: relative;
    min-height: 100vh;
}

.app-boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-canvas, #f7f7f4);
}

.app-boot-title {
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-body-md, 16px);
    color: var(--color-muted, #807d72);
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--color-hairline, #e6e5e0);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

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

.loading-progress-text {
    margin-top: 0.75rem;
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-body-sm, 14px);
    color: var(--color-body, #5a5852);
}

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

#blazor-error-ui {
    color-scheme: light only;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
    background: #fff8e6;
    border-top: 1px solid var(--color-hairline-strong, #cfcdc4);
    box-shadow: 0 -2px 8px rgba(38, 37, 30, 0.08);
    font-family: var(--font-sans);
    font-size: var(--text-body-sm, 14px);
    color: var(--color-ink, #26251e);
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    color: var(--color-primary, #f54e00);
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
