/* ExaoraGPT – chat flottante globale in basso a destra, stile dark leggibile */

#exaora-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2D6BFF;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(45,107,255,.35);
  font-size: 22px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exaora-chat {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 360px;
  max-width: 92vw;
  display: none;
  z-index: 99999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.exaora-chat.is-open {
  display: block;
}

.exaora-window {
  background:#020617;
  border:1px solid #1E293B;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(15,23,42,.7);
}

.exaora-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  background:#020617;
  color:#EAF2FF;
  font-weight:600;
  font-size:14px;
}

.exaora-close {
  background:transparent;
  color:#9FB3D9;
  border:none;
  font-size:20px;
  cursor:pointer;
}

.exaora-messages {
  height: 320px;
  overflow:auto;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#020617;
}

.exaora-msg{
  padding:10px 12px;
  border-radius:14px;
  max-width: 90%;
  font-size:14px;
  line-height:1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.exaora-user{
  align-self:flex-end;
  background:#1E3A8A;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.12);
}

.exaora-bot{
  align-self:flex-start;
  background:#020617;
  color:#E5E7EB;
  border:1px solid #1E293B;
}

.exaora-bot p{ margin:0 0 8px; }
.exaora-bot ul, .exaora-bot ol{ margin:0 0 8px 18px; padding:0; }
.exaora-bot li{ margin:3px 0; }
.exaora-bot a{ color:#93C5FD; text-decoration: underline; }
.exaora-bot code{
  background:#0b1220;
  border:1px solid #1f2937;
  padding:2px 6px;
  border-radius:6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:12px;
}

.exaora-input{
  display:flex;
  gap:10px;
  padding:10px;
  border-top:1px solid #1E293B;
  background:#020617;
}

.exaora-input input{
  flex:1;
  background:#020617;
  color:#ffffff !important;
  border:1px solid #1E293B;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
}

.exaora-input input::placeholder{
  color:#64748B;
  opacity:1;
}

.exaora-input button{
  background:#2D6BFF;
  color:#ffffff;
  border:none;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:500;
  font-size:14px;
  white-space:nowrap;
}

.exaora-input button:hover{
  filter:brightness(1.06);
}

@media (max-width:560px){
  .exaora-messages{ height:55vh; }
  .exaora-msg{ max-width:100%; font-size:14px; }
}
