/* ChainAtlasOne Insights — base.css (independent of Vite bundle)
   Keep Insights pages styled even if dashboard bundle isn't loaded.
*/
:root{
  --max: 1080px;

  --bg: #070a12;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.03);
  --text: rgba(235,240,248,1);
  --muted: rgba(235,240,248,.65);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.14);

  --shadow2: 0 14px 40px rgba(0,0,0,.35);
  --cardR: 18px;
  --blur: blur(16px);

  --green: #19c37d;
  --amber: #f2c14e;
  --red: #ff5d5d;
  --blue: #7aaaff;
}

html[data-theme="light"]{
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #fbfbfd;
  --text: #0b0e14;
  --muted: rgba(15, 18, 28, .62);
  --stroke: rgba(15, 18, 28, .10);
  --stroke2: rgba(15, 18, 28, .14);
  --shadow2: 0 10px 30px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

/* Layout */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 28px;
}

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--stroke);
  border-radius: var(--cardR);
  box-shadow: var(--shadow2);
}

.muted{ color: var(--muted); }

/* Topbar */
.topbar{
  max-width: var(--max);
  margin: 22px auto 0;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.topbarActions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn:hover{ border-color: var(--stroke2); }
.btnGhost{ background: transparent; }
.btnIcon{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
}
.iconMoon{ font-size: 16px; opacity:.9; }

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
}

/* Logo (robust) */
.logo{
  height: 52px;
  width: auto;
  display: block;
}
.logo-dark{ display:block; }
.logo-light{ display:none; }

/* Light => light logo */
html[data-theme="light"] .logo-dark{ display:none; }
html[data-theme="light"] .logo-light{ display:block; }

/* Dark/Default => dark logo */
html:not([data-theme="light"]) .logo-dark{ display:block; }
html:not([data-theme="light"]) .logo-light{ display:none; }

/* Footer */
.footer{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px 26px;
  font-size: 12px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}
