/* Only what genuinely spans components lives here. Everything that belongs to
   one component sits beside it as ComponentName.razor.css. */

:root {
    --ink: #1c2024;
    --muted: #6b7280;
    --line: #d7dae0;
    --paper: #ffffff;
    --ground: #f4f5f7;
    --accent: #f08a24;
    --error: #c0392b;
    --warn: #b7791f;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body {
    margin: 0;
    height: 100%;
    color: var(--ink);
    background: var(--ground);
}

/* Used by the editor, the feature list and the radius dialog alike, so scoping
   it to any one of them would only make the other two repeat it. */
.hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.35rem 0;
}

/* Blazor's own loading indicator and error bar, kept from the template. Both
   are markup in index.html rather than in any component, so neither can be
   scoped to one. */
.loading-progress {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 6rem;
    height: 6rem;
}

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

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

.loading-progress-text {
    position: fixed;
    inset: calc(50% + 4rem) 0 auto 0;
    text-align: center;
    color: var(--muted);
}

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

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.7rem 1.2rem;
    background: #fde68a;
    box-shadow: 0 -0.2rem 0.6rem rgba(0, 0, 0, 0.15);
}

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