::selection {
  background-color: rgba(56, 189, 248, 0.35);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.palette-btn {
  background-color: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(30, 41, 59, 0.85);
  border-radius: 0.75rem;
  padding: 0.25rem 0;
  color: rgb(226, 232, 240);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 150ms ease;
}

.palette-btn:hover {
  border-color: rgb(14, 165, 233);
  color: rgb(125, 211, 252);
}

.scroll-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.scroll-panel::-webkit-scrollbar {
  width: 6px;
}

.scroll-panel::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.analysis-ticker {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #34d399, #06b6d4);
  animation: pulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.stack-bars {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.25rem 0;
}

.stack-segment {
  flex: 1;
  min-width: 18px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.5);
  transition: background-color 240ms ease, transform 240ms ease, opacity 240ms ease;
}

.stack-segment.stack-active {
  background: linear-gradient(120deg, #38bdf8, #22d3ee);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: scaleY(1.45);
}

.stack-segment.stack-success {
  background: linear-gradient(120deg, #22c55e, #16a34a);
  border-color: rgba(34, 197, 94, 0.6);
}

.stack-segment.stack-fail {
  background: linear-gradient(120deg, #f43f5e, #f97316);
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.35);
}
