/* ─────────────────────────────────────────────────────────────────────────
   Ninja Command Center — Custom Styles
   Supplements Tailwind CSS (loaded via CDN — no build step)
   ───────────────────────────────────────────────────────────────────────── */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --bg:      #0a0e17;
  --surface: #111827;
  --card:    #141e2e;
  --accent:  #818cf8;
  --green:   #34d399;
  --yellow:  #fbbf24;
  --red:     #f87171;
  --blue:    #60a5fa;
  --pink:    #f472b6;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --border:  #1e2a3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Dashboard Card ────────────────────────────────────────────────────── */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-card:hover {
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Section Title ─────────────────────────────────────────────────────── */
.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Status Dots ───────────────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.status-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.status-red    { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.status-blue   { background: var(--blue);   box-shadow: 0 0 6px var(--blue); }
.status-muted  { background: var(--muted); }

/* Pulse animation for online status */
.status-green {
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50%       { box-shadow: 0 0 10px var(--green), 0 0 20px rgba(52,211,153,.3); }
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { scrollbar-width: none; }

/* ── Tables ────────────────────────────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; }

th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ── Focus rings (accessibility) ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Prose content (intel tab) ─────────────────────────────────────────── */
.prose-invert {
  color: var(--muted);
  line-height: 1.7;
}

.prose-invert h1, .prose-invert h2, .prose-invert h3 {
  color: var(--text);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.prose-invert strong { color: var(--text); }
.prose-invert em     { color: var(--accent); }
.prose-invert code   {
  background: rgba(129,140,248,.1);
  border: 1px solid rgba(129,140,248,.2);
  border-radius: 4px;
  padding: 0 0.25rem;
  font-size: 0.8em;
}

/* ── Login form inputs ─────────────────────────────────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
}

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-panel:not(.hidden) {
  animation: fade-in 0.2s ease;
}

/* ── Mobile tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .dash-card { padding: 1rem; }
}

/* ── Number font variant ───────────────────────────────────────────────── */
.font-mono { font-variant-numeric: tabular-nums; }
