:root {
  --color-primary: #00ff88;
  --color-secondary: #00ddff;
  --color-accent: #ff6b6b;
  --color-warning: #ffaa00;
  
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-glass: rgba(26, 26, 26, 0.6);
  
  --border-color: #333;
  --border-active: var(--color-primary);
  
  --text-primary: #ffffff;
  --text-secondary: #888;
  --text-muted: #666;
  
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  --font-mono: 'Monaco', 'Consolas', 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.glow-text {
  text-shadow: var(--shadow-glow);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.pulse {
  animation: pulse 2s infinite;
}

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

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 10px;
  }
}

.status-healthy { color: var(--color-primary); }
.status-warning { color: var(--color-warning); }
.status-error { color: var(--color-accent); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.healthy {
  background: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
}

.status-dot.warning {
  background: var(--color-warning);
  box-shadow: 0 0 6px var(--color-warning);
}

.status-dot.error {
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

/* Connection Flow Animations */
@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 20px currentColor;
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1);
    box-shadow: 0 0 30px currentColor;
  }
}

@keyframes flowData {
  0% { transform: translateX(-10px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(10px); opacity: 0; }
}

@keyframes glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 5px currentColor); }
  50% { filter: brightness(1.2) drop-shadow(0 0 15px currentColor); }
}

.connection-node {
  animation: pulse 2s infinite ease-in-out;
}

.data-flow {
  animation: flowData 2s infinite linear;
}

.connection-glow {
  animation: glow 3s infinite ease-in-out;
}

/* Loading spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}