.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-logo {
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

.loader-spinner {
  width: 80px;
  height: 80px;
  border: 3px solid var(--bg-secondary);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.loader-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  animation: fadeInOut 2s infinite;
}

.loader-progress {
  width: 200px;
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #f6851b);
  width: 0%;
  animation: loadProgress 2s ease-out forwards;
}

@keyframes spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

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

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadProgress {
  to {
    width: 100%;
  }
}
.loader-version {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 20px;
  font-family: "Monaco", "Menlo", monospace;
  opacity: 0.8;
}
