body {
  margin: 0;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.01071em;
  color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0);
  border-radius: 50%;
  border-top-color: #1976d2; /* MUI primary blue color */
  border-right-color: #1976d2; /* MUI primary blue color */
  animation: spin 1s ease-in-out infinite;
}

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

@media (prefers-color-scheme: dark) {
  body {
    background-color: #18191a; /* dark mode background */
  }

  #splash {
    background: #18191a;
    color: rgba(255, 255, 255, 0.9);
  }

  .spinner {
    border: 3px solid rgba(255, 255, 255, 0);
    border-top-color: #1c83e9; /* Lighter MUI blue for dark mode */
    border-right-color: #1c83e9; /* Lighter MUI blue for dark mode */
  }
}
