/* SmartAI Scoped Engine chat widget */

.sase-chat-widget{
  max-width:360px;
  border-radius:16px;
  box-shadow:0 20px 40px rgba(15,23,42,0.35);
  background:#020617;
  color:#e5e7eb;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
}
.sase-chat-header{
  padding:12px 14px;
  border-bottom:1px solid rgba(148,163,184,0.35);
  background:linear-gradient(135deg,#020617,#0f172a);
}
.sase-chat-title{
  font-weight:600;
}
.sase-chat-subtitle{
  font-size:12px;
  opacity:0.8;
  margin-top:2px;
}
.sase-chat-body{
  padding:10px;
  max-height:320px;
  overflow-y:auto;
  background:#020617;
}
.sase-chat-footer{
  padding:8px;
  border-top:1px solid rgba(148,163,184,0.35);
  background:#020617;
  display:flex;
  gap:6px;
}
.sase-chat-input{
  flex:1;
  resize:none;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.6);
  background:#020617;
  color:#e5e7eb;
  padding:8px 10px;
}
.sase-chat-input::placeholder{
  color:#6b7280;
}
.sase-chat-send{
  border:none;
  border-radius:999px;
  padding:0 14px;
  font-weight:500;
  cursor:pointer;
  background:#f97316;
  color:#111827;
  display:flex;
  align-items:center;
}
.sase-chat-message{
  margin-bottom:6px;
  display:flex;
}
.sase-chat-bubble{
  padding:6px 10px;
  border-radius:14px;
  max-width:90%;
  word-wrap:break-word;
}
.sase-chat-user .sase-chat-bubble{
  margin-left:auto;
  background:#22c55e;
  color:#022c22;
}
.sase-chat-ai .sase-chat-bubble{
  background:#1f2937;
  color:#e5e7eb;
}
.sase-chat-system .sase-chat-bubble{
  margin:0 auto;
  background:#f97316;
  color:#111827;
  font-size:12px;
  border-radius:999px;
}
.sase-chat-typing .sase-chat-bubble{
  opacity:0.75;
}
