/* Relaynix landing-look theme — shared by base.html and admin_base.html.
   Extracted from base.html (Sprint 101.21) so the admin shell can wear
   the same skin without duplicating 250 lines of CSS. */

/* ── Sprint 101 · Landing-look theme ──────────────────────────────
   The marketing landing set the visual bar (aurora bg, soft glass
   surfaces, 18px radii, accent-orange focus). This override layer
   re-dresses the whole app to match — colours, type, chips,
   buttons, inputs, sidebar. Cascade-only: no template changes. */
body { background: #07080a; }
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #07080a; overflow: hidden;
}
.app-bg::before {
  content: ""; position: absolute; inset: -10%;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,107,74,0.045) 1px, transparent 0);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 20%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 20%, black, transparent 80%);
}
.app-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(255,107,74,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(56,130,200,0.05) 0%, transparent 60%);
}
h1, h2, h3 { letter-spacing: -0.02em; }
a { color: #ff9d80; }
a:hover { color: #ffb39d; }
.card {
  border-radius: 18px;
  background: rgba(19, 25, 34, 0.6);
  border-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease;
}
.card:hover { border-color: rgba(255, 107, 74, 0.25); }
.chip { padding: 0.18rem 0.6rem; background: rgba(255,255,255,0.06); }
.chip-ok    { background: rgba(52, 211, 153, 0.14); }
.chip-warn  { background: rgba(251, 191, 36, 0.13); }
.chip-err   { background: rgba(252, 165, 165, 0.13); }
.chip-info  { background: rgba(125, 211, 252, 0.12); }
input, select, textarea { border-radius: 10px; border-color: rgba(255,255,255,0.12); background: rgba(10,14,20,0.7); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(255,107,74,0.6);
  box-shadow: 0 0 0 3px rgba(255,107,74,0.14);
}
button { border-radius: 10px; border-color: rgba(255,255,255,0.12); transition: border-color .15s, background .15s, transform .15s; }
button:hover { border-color: rgba(255,107,74,0.45); }
th, td { border-bottom-color: rgba(255,255,255,0.06); }
.table-scroll, .cmp-wrap { border-radius: 14px; }
.sidebar {
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-right-color: rgba(255, 255, 255, 0.06);
}
.sidebar-brand, .sidebar-user { border-color: rgba(255,255,255,0.06); }
.sidebar-link { border-radius: 10px; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.05); }
.sidebar-link.active {
  background: rgba(255, 107, 74, 0.12);
  box-shadow: inset 3px 0 0 var(--brand-accent);
}
/* Emoji icons → quiet monochrome glyphs; the active item keeps colour */
.sidebar-link .sb-emoji {
  filter: grayscale(1) brightness(1.5); opacity: 0.85;
  transition: filter 0.15s, opacity 0.15s;
}
.sidebar-link:hover .sb-emoji, .sidebar-link.active .sb-emoji {
  filter: none; opacity: 1;
}
.hamburger {
  border-radius: 10px; background: rgba(19, 25, 34, 0.7);
  border-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hamburger:hover { border-color: rgba(255,107,74,0.5); background: rgba(26,34,48,0.8); }
.agent-box { border-radius: 14px; background: rgba(19,25,34,0.6); }
/* Primary action buttons — accent like the landing CTAs.
   Bare (class-less) submit buttons get it automatically: the most
   common legacy pattern is a grey 'Save' submit with no class. */
.btn-accent,
form button[type="submit"]:not([class]) {
  background: var(--brand-accent); color: #fff; font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 6px 20px -8px rgba(255,107,74,0.55);
}
.btn-accent:hover,
form button[type="submit"]:not([class]):hover {
  background: #ff5630; border-color: transparent;
}
/* Onboarding wizard — progress dots + landing-grade CTAs */
.wsteps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0.4rem; margin: 0.25rem 0 1.4rem;
}
.wstep { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.wdot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(255,255,255,0.06); color: #8b97a5;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s ease;
}
.wstep.now .wdot {
  background: var(--brand-accent); color: #fff; border-color: var(--brand-accent);
  box-shadow: 0 0 16px rgba(255,107,74,0.5);
}
.wstep.done .wdot {
  background: rgba(110,231,183,0.15); color: #6ee7b7;
  border-color: rgba(110,231,183,0.4);
}
.wlbl { font-size: 0.62rem; color: #8b97a5; white-space: nowrap; }
.wstep.now .wlbl { color: #fff; font-weight: 600; }
.wline {
  width: 26px; height: 2px; border-radius: 1px;
  background: rgba(255,255,255,0.1); margin-top: 12px;
}
.wline.done { background: rgba(110,231,183,0.4); }
@media (max-width: 480px) { .wlbl { display: none; } }
.wizard-submit, .wizard-connect {
  border-radius: 12px !important;
  box-shadow: 0 8px 26px -8px rgba(255,107,74,0.5);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wizard-submit:hover, .wizard-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(255,107,74,0.6);
}
/* Mission Control — mini robot crew strip (links to /realtime) */
.fnow-bots {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  margin-bottom: 0.7rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
}
.fnow-bot { position: relative; display: inline-block; }
.fnow-bot img {
  height: 36px; width: auto; max-width: 46px; object-fit: contain;
  filter: grayscale(0.5) brightness(0.85);
  transition: filter 0.3s ease;
}
.fnow-bot.busy img { filter: none; }
.fnow-bot.busy { animation: bot-mini 2.2s ease-in-out infinite; }
.fnow-bot .dot {
  position: absolute; right: -1px; bottom: 1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #5f6c7a; border: 2px solid #0d1117;
}
.fnow-bot.busy .dot { background: #fbbf24; }
.fnow-bot.warm .dot { background: #6ee7b7; }
.fnow-bot.silent img { filter: grayscale(0.95) brightness(0.6); opacity: 0.6; }
@keyframes bot-mini {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
/* Mission Control KPI strip (dashboard v2) */
.kpi {
  background: rgba(19, 25, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; padding: 0.85rem 1rem;
}
.kpi-label { color: #8b97a5; font-size: 0.74rem; margin-bottom: 0.25rem; }
.kpi-num {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FF6B4A 0%, #ffba9a 60%, #FF6B4A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
/* Sidebar social mini-icons — landing-footer style */
.soc-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12); color: #cfd6df;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.soc-mini:hover { border-color: var(--brand-accent); color: #fff; }
.soc-mini svg { width: 13px; height: 13px; fill: currentColor; }
/* Project-grouped channels widget (dashboard root) */
.psum {
  background: rgba(19, 25, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; padding: 0.65rem 0.8rem;
}
.psum-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.psum-name { font-weight: 700; color: #fff; font-size: 0.92rem; }
.psum-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.psum-plat {
  flex: 1 1 150px; min-width: 140px; max-width: 220px;
  background: rgba(12, 17, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px; padding: 0.5rem 0.6rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s ease;
}
.psum-plat:hover { border-color: rgba(255, 107, 74, 0.45); }
.psum-subs { font-size: 1.15rem; font-weight: 700; color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,107,74,0.4); }
::-webkit-scrollbar-track { background: transparent; }

/* Zen empty-states — a friendly robot instead of bare grey text */
.zen { text-align: center; padding: 1.4rem 1rem; }
.zen img {
  height: 72px; width: auto; display: block; margin: 0 auto 0.6rem;
  opacity: 0.85; filter: grayscale(0.15);
}
.zen-t { color: #cfd6df; font-weight: 600; font-size: 0.92rem; }
.zen-s { color: #7a8896; font-size: 0.78rem; margin-top: 0.25rem; }
