@import "tailwindcss";

:root {
  --background: #09090b;
  --foreground: #fafafa;
}

body {
  background: var(--background);
  color: var(--foreground);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #18181b;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Animations */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Status indicator */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.live {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-slow 2s ease-in-out infinite;
}

.status-dot.paper {
  background: #3b82f6;
}

.status-dot.stopped {
  background: #71717a;
}

/* Flash animations for price changes */
@keyframes flash-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    background-color: rgba(34, 197, 94, 0.1);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.5);
    background-color: rgba(34, 197, 94, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    background-color: transparent;
  }
}

@keyframes flash-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    background-color: rgba(239, 68, 68, 0.1);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.5);
    background-color: rgba(239, 68, 68, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    background-color: transparent;
  }
}

.animate-flash-green {
  animation: flash-green 0.6s ease-out;
}

.animate-flash-red {
  animation: flash-red 0.6s ease-out;
}

/* Active bot glow effect */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
}

.active-bot-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}
