@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-0: #060608;
  --bg-1: #0c0c10;
  --bg-2: #131318;
  --bg-3: #1b1b22;
  --bg-4: #24242e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: #d4d4d8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
  50% { opacity: 0.35; box-shadow: 0 0 2px currentColor; }
}
.animate-pulse-live {
  animation: pulse-live 2.4s ease-in-out infinite;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.4s ease-out both;
}

.card-hover {
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
}
.card-hover:hover {
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.04), 0 2px 12px rgba(0,0,0,0.3);
  border-color: rgba(52, 211, 153, 0.12);
  transform: translateY(-1px);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24242e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

.recharts-default-tooltip {
  background: var(--bg-3) !important;
  border: 1px solid var(--bg-4) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}
