/* Global Loading Shell Styles - loaded before Blazor boots */
.sk-loading-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 251, 0.95);
  z-index: 1000;
  font-family: "Instrument Sans", system-ui, "Segoe UI", Arial, sans-serif;
}

.sk-loading-shell[data-phase="Ready"] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sk-loading-shell__center {
  text-align: center;
  width: 300px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  user-select: none;
}

.sk-loading-shell__ring {
  margin: 0 auto 1rem;
}

.sk-loading-shell__text {
  font-size: 18px;
  font-weight: 700;
  color: #2b2e30;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.sk-loading-shell__error-actions {
  margin-top: 0.5rem;
}

.sk-loading-shell__error-actions button {
  background: #0588d3;
  color: white;
  border: 1px solid #0588d3;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.sk-loading-shell__error-actions button:hover {
  background: #097ab8;
  border-color: #097ab8;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sk-loading-shell {
    background: rgba(0, 0, 0, 0.85);
  }

  .sk-loading-shell__text {
    color: #530000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sk-loading-shell {
    transition: none;
  }
}