/* Bimo — asistentul AI LostCube. Port 1:1 al asistentului din CIFIN (avatar + animații identice),
   așezat ca panou plutitor în dreapta-jos. Clasele ba-* păstrează numele originale. */
/* ⚠️ display:flex/grid pe .ba-panel/.ba-fab ar bate atributul [hidden] → panoul ar sta mereu
   deschis. Reset explicit (bimo.css se încarcă și pe pagini fără wiki.css): */
.ba-panel[hidden], .ba-fab[hidden], .ba-fab-hi[hidden]{ display:none !important; }

/* ── avatarul Bimo (ecran bleu, ochi + zâmbet indigo) — identic cu originalul ── */
.ba-ava{ width:34px; height:34px; border-radius:11px; background:linear-gradient(160deg,#3b82f6,#1e3a8a);
  display:grid; place-items:center; flex:0 0 auto; box-shadow:0 4px 10px rgba(37,99,235,.3); }
.ba-ava-scr{ width:23px; height:18px; border-radius:6px; background:linear-gradient(180deg,#f8fafc,#bae6fd);
  border:1.5px solid #93c5fd; position:relative; display:flex; gap:5px; align-items:center; justify-content:center; }
.ba-eye{ width:4px; height:4px; border-radius:50%; background:#1e3a8a; }
.ba-smile{ position:absolute; bottom:3px; left:50%; transform:translateX(-50%); width:8px; height:4px;
  border:1.6px solid #1e3a8a; border-top:0; border-radius:0 0 8px 8px; }
/* Bimo „viu": clipește din ochi + plutește blând + halou pulsator */
@keyframes ba-blink{ 0%,92%,100%{ transform:scaleY(1); } 95%{ transform:scaleY(.12); } }
@keyframes ba-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-3px); } }
@keyframes ba-glow{ 0%,100%{ box-shadow:0 4px 10px rgba(37,99,235,.28); } 50%{ box-shadow:0 9px 24px rgba(37,99,235,.5); } }
.ba-ava{ animation:ba-float 4.5s ease-in-out infinite, ba-glow 3.2s ease-in-out infinite; }
.ba-eye{ animation:ba-blink 5s infinite; }

/* ── butonul plutitor (dreapta-jos) ── */
.ba-fab{ position:fixed; right:22px; bottom:22px; z-index:95; width:60px; height:60px; border-radius:19px; border:none;
  cursor:pointer; background:linear-gradient(160deg,#3b82f6,#1e3a8a); display:grid; place-items:center;
  box-shadow:0 10px 30px rgba(37,99,235,.45); transition:transform .15s; animation:ba-float 4.5s ease-in-out infinite, ba-glow 3.2s ease-in-out infinite; }
.ba-fab:hover{ transform:scale(1.06); }
.ba-fab .ba-ava{ width:44px; height:44px; animation:none; box-shadow:none; background:transparent; }
.ba-fab .ba-ava-scr{ width:30px; height:23px; gap:6px; }
.ba-fab .ba-eye{ width:5px; height:5px; }
.ba-fab .ba-smile{ width:10px; height:5px; }
.ba-fab-hi{ position:fixed; right:92px; bottom:34px; z-index:95; background:#0d1220; border:1px solid var(--border2,#33406a);
  color:var(--text,#eaf0fb); border-radius:13px 13px 4px 13px; padding:9px 14px; font-size:13.5px; box-shadow:0 12px 30px rgba(0,0,0,.5);
  animation:ba-hi .4s ease; }
@keyframes ba-hi{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

/* ── panoul de chat ── */
.ba-panel{ position:fixed; right:22px; bottom:96px; z-index:96; width:min(400px, calc(100vw - 32px));
  height:min(600px, calc(100vh - 130px)); display:flex; flex-direction:column; background:#0d1220;
  border:1px solid var(--border2,#33406a); border-radius:20px; box-shadow:0 30px 80px rgba(0,0,0,.65);
  overflow:hidden; animation:ba-pop .2s ease; }
@keyframes ba-pop{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }

.ba-head{ display:flex; align-items:center; gap:11px; padding:12px 14px; border-bottom:1px solid var(--border,#26314c);
  background:linear-gradient(180deg,rgba(37,99,235,.1),transparent); flex:0 0 auto; }
.ba-head-name{ font-weight:800; font-size:15px; color:var(--text,#eaf0fb); }
.ba-head-sub{ font-size:11.5px; color:var(--muted,#96a3c4); }
.ba-head-act{ margin-left:auto; display:flex; gap:5px; }
.ba-hbtn{ width:32px; height:32px; border-radius:9px; border:1px solid transparent; background:transparent; cursor:pointer;
  color:var(--muted,#96a3c4); font-size:14px; display:grid; place-items:center; transition:.13s; }
.ba-hbtn:hover{ background:rgba(255,255,255,.07); color:var(--text,#eaf0fb); }
.ba-hbtn.on{ color:#93c5fd; border-color:rgba(59,130,246,.4); background:rgba(37,99,235,.12); }

/* bara „conversație temporară" */
.ba-tempbar{ display:none; padding:7px 14px; background:rgba(154,108,255,.1); border-bottom:1px solid rgba(154,108,255,.25);
  color:#cbb6ff; font-size:12px; flex:0 0 auto; }
.ba-panel.temp .ba-tempbar{ display:block; }

/* ── sertarul de conversații ── */
.ba-drawer{ display:none; flex-direction:column; position:absolute; top:57px; left:0; right:0; bottom:0;
  background:#0d1220; z-index:2; }
.ba-panel.drawer .ba-drawer{ display:flex; }
.ba-new{ margin:12px; padding:11px 14px; border:0; border-radius:12px; background:linear-gradient(135deg,#2563eb,#1e3a8a);
  color:#fff; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; font-size:14px; font-family:inherit; }
.ba-new:hover{ filter:brightness(1.06); }
.ba-convs{ flex:1; overflow-y:auto; padding:4px 8px 10px; }
.ba-conv{ display:flex; align-items:center; gap:8px; padding:9px 10px; border-radius:10px; cursor:pointer; color:var(--text,#eaf0fb); }
.ba-conv:hover{ background:rgba(37,99,235,.1); }
.ba-conv.on{ background:rgba(37,99,235,.16); }
.ba-conv .ic{ font-size:12px; opacity:.6; flex:0 0 auto; }
.ba-conv-t{ flex:1; min-width:0; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ba-conv-when{ font-size:11px; color:var(--dim,#63708f); flex:0 0 auto; }
.ba-conv-act{ opacity:0; display:flex; gap:2px; }
.ba-conv:hover .ba-conv-act{ opacity:1; }
.ba-conv-act button{ border:0; background:transparent; color:var(--muted,#96a3c4); cursor:pointer; padding:3px 5px;
  border-radius:7px; font-size:12px; }
.ba-conv-act button:hover{ background:rgba(255,255,255,.1); color:var(--text,#eaf0fb); }
.ba-empty-side{ padding:14px; color:var(--muted,#96a3c4); font-size:12.5px; text-align:center; }

/* ── mesaje ── */
.ba-msgs{ flex:1; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; gap:12px; }
.ba-row{ display:flex; gap:10px; max-width:88%; }
.ba-row.me{ align-self:flex-end; flex-direction:row-reverse; }
.ba-bubble{ padding:10px 13px; border-radius:15px; font-size:14px; line-height:1.5; white-space:pre-wrap; word-wrap:break-word; }
.ba-row.me .ba-bubble{ background:linear-gradient(135deg,#2563eb,#1e3a8a); color:#fff; border-bottom-right-radius:5px; }
.ba-row.bot .ba-bubble{ background:#141b30; color:var(--text,#eaf0fb); border:1px solid var(--border,#26314c); border-bottom-left-radius:5px; }
.ba-bubble b, .ba-bubble strong{ font-weight:800; }
.ba-bubble code{ font-family:Consolas,monospace; font-size:13px; color:var(--cyan,#5ee0ff); background:#0b1120;
  border:1px solid var(--border,#26314c); border-radius:6px; padding:1px 6px; }

/* surse (chips) sub răspuns */
.ba-src{ margin-top:7px; display:flex; flex-wrap:wrap; gap:6px; }
.ba-src a{ font-size:11.5px; background:rgba(37,99,235,.12); color:#93c5fd; border-radius:999px; padding:2px 9px; text-decoration:none; }
.ba-src a:hover{ background:rgba(37,99,235,.24); }

/* căsuța „Deschide în ghid" sub răspuns */
.ba-links{ margin-top:8px; display:flex; flex-wrap:wrap; gap:7px; }
.ba-links a{ font-size:12.5px; border:1px solid rgba(94,224,255,.35); color:var(--cyan,#5ee0ff); border-radius:9px;
  padding:5px 10px; text-decoration:none; display:inline-flex; gap:6px; align-items:center; transition:.13s; }
.ba-links a:hover{ background:rgba(94,224,255,.1); }

/* hello + sugestii */
.ba-hello{ margin:auto; text-align:center; color:var(--muted,#96a3c4); max-width:320px; padding:10px; }
.ba-hello .ba-ava{ width:62px; height:62px; border-radius:18px; margin:0 auto 14px; }
.ba-hello .ba-ava-scr{ width:42px; height:32px; gap:9px; }
.ba-hello .ba-eye{ width:7px; height:7px; }
.ba-hello .ba-smile{ width:15px; height:7px; bottom:5px; }
.ba-hello h2{ font-size:19px; font-weight:800; color:var(--text,#eaf0fb); margin:0 0 6px; }
.ba-hello p{ font-size:13.5px; }
.ba-sugg{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:16px; }
.ba-sugg button{ border:1px solid var(--border2,#33406a); background:transparent; color:var(--text,#eaf0fb);
  border-radius:11px; padding:8px 12px; font-size:12.5px; cursor:pointer; font-family:inherit; transition:.13s; }
.ba-sugg button:hover{ background:rgba(37,99,235,.12); border-color:rgba(59,130,246,.45); }
.ba-sugg-inline{ display:flex; flex-wrap:wrap; gap:6px; max-width:88%; margin:-2px 0 2px 2px; }
.ba-sugg-chip{ border:1px solid rgba(94,224,255,.35); background:rgba(94,224,255,.06); color:var(--cyan,#5ee0ff);
  border-radius:14px; padding:5px 11px; font-size:12.5px; cursor:pointer; font-family:inherit; }
.ba-sugg-chip:hover{ background:rgba(94,224,255,.14); }

/* typing */
.ba-typing{ font-size:13px; color:var(--muted,#96a3c4); display:flex; align-items:center; gap:8px; }
.ba-dots{ display:inline-flex; gap:3px; }
.ba-dots span{ width:5px; height:5px; border-radius:50%; background:#93c5fd; animation:ba-dot 1.2s infinite; }
.ba-dots span:nth-child(2){ animation-delay:.15s; }
.ba-dots span:nth-child(3){ animation-delay:.3s; }
@keyframes ba-dot{ 0%,60%,100%{ opacity:.25; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }

/* ── composer ── */
.ba-composer{ border-top:1px solid var(--border,#26314c); padding:10px 12px; display:flex; gap:8px; align-items:flex-end; flex:0 0 auto; }
.ba-composer textarea{ flex:1; resize:none; max-height:120px; border:1px solid var(--border2,#33406a); border-radius:13px;
  padding:10px 13px; font-size:14px; font-family:inherit; background:#0b1120; color:var(--text,#eaf0fb); }
.ba-composer textarea:focus{ outline:none; border-color:#3b82f6; }
.ba-go{ width:42px; height:42px; flex:0 0 auto; border:0; border-radius:13px; background:linear-gradient(135deg,#2563eb,#1e3a8a);
  color:#fff; font-size:16px; cursor:pointer; display:grid; place-items:center; }
.ba-go:disabled{ opacity:.5; cursor:default; }

@media(max-width:560px){
  .ba-panel{ right:8px; bottom:86px; width:calc(100vw - 16px); height:min(560px, calc(100vh - 110px)); }
  .ba-fab{ right:14px; bottom:14px; }
}
