/* Critical styles to prevent white flash - loaded inline to prevent FOUC */

/* Fallback styles to prevent white flash */
html.initial-load {
  background-color: #050509;
  transition: background-color 0.3s ease;
}

/* Apply background to body when it exists */
html.initial-load body {
  background-color: inherit;
  transition: background-color 0.3s ease;
}

/* Theme-specific backgrounds */
html[data-theme="light"] {
  background-color: #f8f9fa;
}

html[data-theme="dark"] {
  background-color: #1c1c1c;
}

html[data-theme="midnight-spectrum"] {
  background-color: #050509;
}

/* Smooth transition when React loads */
#root {
  transition: opacity 0.3s ease;
}

/* NoScript styling */
.noscript-container {
  padding: 20px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.noscript-container h1 {
  color: #dc3545;
  margin-bottom: 16px;
}

.noscript-container p {
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}