/* Initial Loading Spinner (shows before Angular bootstraps and CSS loads) */
#initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b100e;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

#initial-loader .spinner-container {
  text-align: center;
}

#initial-loader .spinner-ring {
  display: inline-block;
  width: 60px;
  height: 60px;
  border: 6px solid rgba(0, 123, 255, 0.1);
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#initial-loader p {
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: #ccc;
  font-size: 16px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide loader when ready class is added */
#initial-loader.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hide app-root content until CSS is loaded */
body:not(.css-loaded) app-root {
  visibility: hidden;
}
