/* AIAT·V2 dashboard — base palette/layout. Component look is carried by inline styles in
   the JS templates (1:1 with design/Trading Agent Dashboard.dc.html); this file holds the
   things inline styles can't do: fonts, background, scrollbars, keyframes, hover states. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(175, 164, 233, 0.10), transparent 55%),
    radial-gradient(900px 500px at 110% 110%, rgba(100, 220, 255, 0.06), transparent 50%),
    #07070b;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: #e9e9f2;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 8px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

@keyframes aiatPulse {
  0%, 100% { border-color: rgba(120,229,160,0.9); box-shadow: 0 0 0 0 rgba(120,229,160,0.55), 0 0 18px 2px rgba(120,229,160,0.45); }
  50% { border-color: rgba(120,229,160,0.25); box-shadow: 0 0 0 5px rgba(120,229,160,0), 0 0 6px 0 rgba(120,229,160,0.15); }
}
@keyframes aiatBlinkText { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes aiatSpin { to { transform: rotate(360deg); } }

.app-shell { display: flex; gap: 18px; padding: 18px; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* hover affordances (design used style-hover attributes) */
.hoverable { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hoverable:hover { transform: scale(1.025); border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 28px -8px rgba(0,0,0,0.5), 0 0 22px -4px rgba(255,255,255,0.12); }
.nav-btn:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
.row-hover { transition: .15s; }
.row-hover:hover { background: rgba(255,255,255,0.05) !important; }
.clickable { cursor: pointer; }
a { color: inherit; }

/* logo (gufo + AIAT·V2) — white text glow + owl drop-shadow on hover (design 1:1) */
.hover-logo { transition: .18s; }
.hover-logo:hover { background: rgba(255,255,255,0.06) !important; color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.65); filter: drop-shadow(0 0 8px rgba(255,255,255,0.4)); }
/* "Experiment running" box — scale + green glow */
.hover-exp { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hover-exp:hover { transform: scale(1.025); border-color: rgba(120,229,160,0.5) !important;
  box-shadow: 0 8px 26px -6px rgba(120,229,160,0.3), 0 0 0 1px rgba(120,229,160,0.14); }
/* header cron-timer box — subtle lighten */
.hover-timer { transition: .18s; }
.hover-timer:hover { background: rgba(255,255,255,0.07) !important; }
/* link/box cards that carry their own accent colour via --hover-border */
.hover-lift { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.hover-lift:hover { transform: translateY(-2px);
  border-color: var(--hover-border, rgba(255,255,255,0.18)) !important;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.55), 0 0 22px -6px var(--hover-border, rgba(255,255,255,0.12)); }

/* reusable column-header tooltip (ⓘ) */
.th-tip { cursor: help; transition: color .15s ease; }
.th-tip:hover { color: rgba(233,233,242,0.85); }
.th-i { font-size: 9px; margin-left: 3px; opacity: 0.45; vertical-align: super; }
.th-tip:hover .th-i { opacity: 0.95; }

@media (max-width: 960px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: auto !important; min-height: 0 !important; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .four-col { grid-template-columns: 1fr !important; }
}
