/* loading-styles.css */
body {
  margin: 0;
  background-color: #f4f4f9; /* Fallback light background */
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
  }
}

#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: inherit;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-indicator.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-left-color: #007bff; /* Primary color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 24px;
}

@media (prefers-color-scheme: dark) {
  .spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-left-color: #4da3ff;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
