/**
 * Loader styles - loaded before React hydration
 * These styles are applied immediately to prevent FOUC
 */

/* Telegram theme variables fallback */
:root {
  --bg-color: #ffffff;
  --secondary-bg-color: #f4f4f5;
  --section-separator-color: #e4e4e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #18181b;
    --secondary-bg-color: #27272a;
    --section-separator-color: #3f3f46;
  }
}

/* Loading screen */
#app-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

#app-loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#app-loading-screen svg {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}
