/* wa_ai_panel/assets/style.css */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#0b141a;
  color:#e9edef;
}
.app{height:100%; display:grid; grid-template-columns: 360px 1fr;}
.sidebar{
  border-right:1px solid #1f2c33;
  background:#111b21;
  display:flex;
  flex-direction:column;
}
.sidebar-top{
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #1f2c33;
}
.brand{display:flex; gap:10px; align-items:center}
.brand-dot{width:12px;height:12px;border-radius:50%;background:#00a884}
.brand-title{font-weight:700}
.brand-sub{font-size:12px;color:#aebac1}

.btn{
  border:0;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:600;
}
.btn-primary{background:#00a884;color:#071a15}
.btn-primary:disabled{opacity:.6;cursor:not-allowed}

.conv-list{overflow:auto; padding:8px}
.conv-item{
  padding:12px;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.conv-item:hover{background:#1f2c33}
.conv-item.active{background:#2a3942}
.conv-title{font-weight:650}
.conv-last{font-size:12px;color:#aebac1;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.conv-time{font-size:11px;color:#8696a0;white-space:nowrap}

.chat{display:flex;flex-direction:column; min-width:0;}
.chat-top{
  padding:14px 16px;
  border-bottom:1px solid #1f2c33;
  background:#111b21;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.chat-title{font-weight:800}
.chat-sub{font-size:12px;color:#aebac1;margin-top:2px}
.chips{display:flex;gap:8px; flex-wrap:wrap}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#1f2c33;
  color:#aebac1;
}
.chip-ok{background:rgba(0,168,132,.18); color:#7ee2c2; border:1px solid rgba(0,168,132,.35)}
.chip-warn{background:rgba(255,180,0,.14); color:#ffd27a; border:1px solid rgba(255,180,0,.28)}
.chip-bad{background:rgba(255,80,80,.14); color:#ff9a9a; border:1px solid rgba(255,80,80,.28)}

.messages{
  flex:1;
  overflow:auto;
  padding:18px;
  background:
    radial-gradient(1200px 700px at 60% 20%, rgba(0,168,132,.08), transparent 60%),
    radial-gradient(900px 600px at 30% 70%, rgba(83,189,235,.08), transparent 60%),
    #0b141a;
}
.empty{opacity:.85; text-align:center; margin-top:20vh}
.empty-title{font-weight:800}
.empty-sub{font-size:13px;color:#aebac1;margin-top:8px}

.msg{
  max-width:780px;
  margin:10px 0;
  padding:10px 12px;
  border-radius:14px;
  line-height:1.35;
  white-space:pre-wrap;
  word-wrap:break-word;
}
.msg.user{margin-left:auto; background:#005c4b}
.msg.assistant{margin-right:auto; background:#1f2c33}
.msg-meta{font-size:11px;color:#aebac1;margin-top:6px;opacity:.9}

.composer{
  border-top:1px solid #1f2c33;
  background:#111b21;
  padding:12px;
}
.composer-form{
  display:flex;
  gap:10px;
  align-items:flex-end;
}
textarea{
  width:100%;
  resize:none;
  border-radius:14px;
  padding:10px 12px;
  border:1px solid #1f2c33;
  outline:none;
  background:#0b141a;
  color:#e9edef;
}
.composer-hint{font-size:12px;color:#8696a0;margin-top:8px}
