#theme-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

/* Common Spinner Styles for both initial load and React app */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--color-primary-dark, #3498db);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-sizing: border-box;
}

.spinner.small {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-left-color: currentColor;
}

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