/* Preload Critical CSS - Prevents white flash on initial load */
html, body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
  background-color: #ffffff;
}

/* Loading spinner for initial render */
.initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  z-index: 9999;
}

.initial-loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #f3f4f6;
  border-top-color: #ff6600;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Hide loader when app is ready */
body.app-ready .initial-loader {
  display: none;
}
