/* Initial app positioning */
#root {
  position: relative;
  min-height: 100vh;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out;
  z-index: 1;
}

#app-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #121212;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
  overflow: hidden;
}

#app-loader.light-theme {
  background: linear-gradient(to right bottom, #f0e7ff, #fff4f8);
}

#app-loader.dark-theme {
  background-color: #121212;
  color: #38ef7d;
}

/* Blurred glass overlay similar to TokenBackgroundAnimation */
.loader-glass-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.light-theme .loader-glass-overlay {
  background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.3), rgba(240, 231, 255, 0.2));
  backdrop-filter: blur(4px);
}

.dark-theme .loader-glass-overlay {
  background: linear-gradient(to right bottom, rgba(0, 28, 0, 0.15), rgba(0, 0, 0, 0.1));
  backdrop-filter: blur(3px);
}

/* Extra glass reflection effect */
.loader-glass-reflection {
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.loader-text {
  margin-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  z-index: 2;
  text-align: center;
  position: relative;
  animation: text-pulse 2s ease-in-out infinite;
}

/* Theme-specific text colors for loader */
.light-theme .loader-text {
  color: #4B2A76;
  /* Purple/dark color for light theme */
}

.dark-theme .loader-text {
  /* color: #38ef7d; */
  /* Matrix green for dark theme */
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Pulsating text animation */
@keyframes text-pulse {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

/* Token animation container */
.token-animation-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* Token item style */
.token-item {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-size: cover;
  background-position: center;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
  transition: opacity 0.5s ease;
}

/* Light theme specific token styling */
.light-theme .token-item {
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Dark theme specific token styling */
.dark-theme .token-item {
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.15);
  border: 1px solid rgba(0, 255, 0, 0.1);
} 