body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--on-background);
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

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

.app-loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--background);
}

.app-loader__ring {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.3rem solid transparent;
  border-right-color: var(--on-surface);
  border-top-color: var(--on-surface);
  animation: app-loader-spin 2s linear infinite;
}

.app-loader__label {
  margin-top: 1rem;
  color: var(--on-surface);
  font-size: 1rem;
}

@keyframes app-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

[data-theme="dark"] .app-loader {
  background-color: #1A1C1E;
}

[data-theme="dark"] .app-loader__ring {
  border-right-color: #E2E2E6;
  border-top-color: #E2E2E6;
}

[data-theme="dark"] .app-loader__label {
  color: #E2E2E6;
}
