@import 'tailwindcss';

@theme {
  --color-arka-bg: #070b0a;
  --color-arka-surface: #0d1311;
  --color-arka-surface-2: #141d19;
  --color-arka-border: #223029;
  --color-arka-text: #eef5f0;
  --color-arka-muted: #8d9d94;
  --color-arka-accent: #bef264;
  --color-arka-accent-2: #67e8f9;
  --color-arka-online: #5ee69a;
  --color-arka-degraded: #f7c65b;
  --color-arka-offline: #ff6b6b;
  --font-sans: 'Avenir Next', 'SF Pro Display', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
html { background: var(--color-arka-bg); }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -12%, rgba(190, 242, 100, 0.075), transparent 30rem),
    radial-gradient(circle at 15% 90%, rgba(103, 232, 249, 0.035), transparent 26rem),
    var(--color-arka-bg);
  color: var(--color-arka-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 2px var(--color-arka-bg), 0 0 0 4px var(--color-arka-accent);
}

.sidebar-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(190, 242, 100, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 242, 100, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.command-hero {
  position: relative;
  background:
    linear-gradient(112deg, rgba(18, 30, 24, .98) 0%, rgba(11, 18, 15, .97) 58%, rgba(15, 27, 21, .94) 100%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.command-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(190, 242, 100, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 242, 100, .04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.command-hero::after {
  content: '';
  position: absolute;
  right: -7rem;
  top: -10rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(190, 242, 100, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(190, 242, 100, .018), 0 0 0 7rem rgba(190, 242, 100, .012);
}

.telemetry-card {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
  transition: transform .2s ease, border-color .2s ease;
}

.telemetry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 242, 100, .25);
}

.telemetry-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 242, 100, .35), transparent);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-arka-border); border: 2px solid var(--color-arka-bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #33463d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
