/* ============================================================================
   ACCESSIBILITY STYLES - Skip Links, Screen Reader, Loading
   ============================================================================

   Accessibility utilities and loading indicator styles.
   Loaded as critical CSS (synchronously).

   Migrated from: components/styles/accessibility.css
   ============================================================================ */

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--panel-primary, #3e6ae1);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-base);
}

.skip-to-content:focus {
  top: 6px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading indicator styles */
#app-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  color: white;
  font-family: system-ui, sans-serif;
}

#app-loading .loading-content {
  text-align: center;
}

#app-loading .loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--panel-primary, #3e6ae1);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

#app-loading .loading-title {
  margin: 0 0 0.5rem 0;
  font-weight: 300;
}

#app-loading .loading-text {
  margin: 0;
  opacity: 0.8;
}
