:root {
    color-scheme: dark;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #070a0f;
    color: #f3f7fc;
    font-family: "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 7rem;
    height: 7rem;
    inset: 32vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #1c2634;
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

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

.loading-progress-text {
    position: absolute;
    inset: calc(32vh + 7.5rem) 0 auto 0.15rem;
    color: #8492a6;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

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

#blazor-error-ui {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 200;
    display: none;
    padding: 12px 40px 12px 14px;
    border: 1px solid rgba(255, 107, 129, 0.35);
    border-radius: 12px;
    background: #2a1218;
    color: #ffc3cc;
    font-size: 0.86rem;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 50%;
    right: 12px;
    cursor: pointer;
    transform: translateY(-50%);
}

#blazor-error-ui .reload {
    color: #c9f94a;
    margin-left: 6px;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #35d399;
}

.invalid {
    outline: 1px solid #ff6b81;
}

.validation-message {
    color: #ff6b81;
}

.blazor-error-boundary {
    padding: 14px;
    border: 1px solid rgba(255, 107, 129, 0.35);
    border-radius: 10px;
    background: rgba(255, 107, 129, 0.1);
    color: #ffc3cc;
}

.blazor-error-boundary::after {
    content: "Ocorreu um erro inesperado.";
}
