html,
body {
  margin: 0;
  font-family: var(--voltei-font-family);
  background: var(--voltei-color-background);
  color: var(--voltei-color-text);
}

html body {
  background-color: var(--voltei-color-background);
}

h1:focus {
  outline: none;
}

.voltei-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.voltei-stack {
  display: flex;
  flex-direction: column;
  gap: var(--voltei-space-3);
}

fluent-button,
fluent-anchor-button,
fluent-toggle-button,
fluent-menu-button {
  transition-duration: 0s;
}

fluent-text-input::part(root),
fluent-textarea::part(root) {
  transition-duration: 0s;
}

@supports (anchor-name: --a) {
  fluent-dropdown > fluent-listbox[popover] {
    margin-block: 2px;
  }
}
:has(> fluent-dropdown) {
  --dropdown-focus-outer: var(--colorStrokeFocus2);
  --dropdown-focus-inner: var(--colorStrokeFocus1);
}

fluent-dropdown {
  --colorStrokeFocus2: transparent;
  --colorStrokeFocus1: transparent;
}

fluent-dropdown > fluent-listbox {
  --colorStrokeFocus2: var(--dropdown-focus-outer);
  --colorStrokeFocus1: var(--dropdown-focus-inner);
}

fluent-text-input::part(root),
fluent-textarea::part(root) {
  outline: none;
}

fluent-text-input,
fluent-textarea,
fluent-dropdown {
  --colorNeutralStrokeAccessible: var(--colorNeutralStroke1);
  --colorNeutralStrokeAccessibleHover: var(--colorNeutralStroke1Hover);
  --colorNeutralStrokeAccessiblePressed: var(--colorNeutralStroke1Pressed);
}

fluent-field[label-position=above] > [slot=message] {
  grid-area: input;
  align-self: end;
  height: 0;
  overflow: visible;
  white-space: nowrap;
  translate: 0 var(--spacingVerticalXXS);
}

.voltei-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: var(--ds-space-3);
  background-color: var(--ds-color-background);
}

.voltei-boot__brand {
  font-family: var(--ds-font-family-sans);
  font-size: var(--ds-font-size-xl);
  font-weight: var(--ds-font-weight-semibold);
  letter-spacing: var(--ds-font-tracking-display);
  color: var(--ds-color-text);
}

.loading-progress {
  width: 4rem;
  height: 4rem;
}
.loading-progress circle {
  fill: none;
  stroke: var(--ds-color-border);
  stroke-width: 0.25rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
.loading-progress circle:last-child {
  stroke: var(--ds-color-text);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: var(--voltei-space-3);
  right: var(--voltei-space-3);
  z-index: 1000;
}
#blazor-error-ui .reload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--voltei-color-danger);
  color: var(--voltei-color-surface);
  font-size: 1.5rem;
  text-decoration: none;
}
