/* SmartFormPlatform.Frontend - global styles */

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', 'Microsoft JhengHei', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: #fafafa;
  color: #212529;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: #0d6efd;
  color: #fff;
  border-radius: 0 0 0.5rem 0;
  z-index: 99999;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Initial shell */
#initial-shell {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#initial-shell.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.initial-shell-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.initial-shell-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid rgba(13, 110, 253, 0.2);
  border-top-color: rgba(13, 110, 253, 1);
  animation: spin 0.8s linear infinite;
}

.initial-shell-text {
  font-size: 0.95rem;
  color: #6c757d;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hide default Blazor error bar on prod-like UI; actual errors should be handled/logged server-side */
#blazor-error-ui {
  display: none;
}

