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

:root {
  color-scheme: dark;
}

html,
body {
  background-color: #080c12;
  color: #e2eaf4;
  font-family: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* Desktop-only prototype: lock minimum width, no mobile responsive */
  min-width: 1280px;
  overflow-x: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Scrollbar dark */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0f1620;
}
::-webkit-scrollbar-thumb {
  background: #1e2d3d;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d4058;
}

/* Selection */
::selection {
  background-color: #3db8e840;
  color: #e2eaf4;
}

/* Shimmer animation for skeletons */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(30, 45, 61, 0) 0%,
    rgba(61, 184, 232, 0.08) 50%,
    rgba(30, 45, 61, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Pulse accent (status dot online) */
@keyframes pulse-accent {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.pulse-accent {
  animation: pulse-accent 2s infinite;
}

/* Grid background (hero/canvas ambiant) */
.grid-bg {
  background-image:
    linear-gradient(rgba(61, 184, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 184, 232, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Disable default focus outlines, replace with accent ring via Tailwind */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #3db8e8;
  outline-offset: 2px;
}
