- Python FastAPI backend (chatbot-api/) with Claude Sonnet 4.6, prompt injection protection, rate limiting (30 msg/session), off-topic filtering, Redis session storage - Rocket.Chat integration for live monitoring and human takeover - Lead capture via n8n webhook - React chat widget: floating bubble, auto-greeting after 30s, glassmorphism chat window, mobile responsive, lazy loaded, Mixpanel analytics - Nginx proxy /api/chat → chatbot-api:8000 - Docker: chatbot-api + Redis services added to docker-compose Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
65 lines
1.3 KiB
CSS
65 lines
1.3 KiB
CSS
.chat-input {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
padding: 12px 14px;
|
|
border-top: 1px solid rgba(211, 221, 222, 0.1);
|
|
background: rgba(35, 48, 56, 0.6);
|
|
border-radius: 0 0 16px 16px;
|
|
}
|
|
|
|
.chat-input__field {
|
|
flex: 1;
|
|
background: rgba(211, 221, 222, 0.08);
|
|
border: 1px solid rgba(211, 221, 222, 0.15);
|
|
border-radius: 12px;
|
|
padding: 10px 14px;
|
|
color: var(--light-grey-100);
|
|
font-family: var(--font-primary);
|
|
font-size: 14px;
|
|
resize: none;
|
|
outline: none;
|
|
max-height: 80px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chat-input__field::placeholder {
|
|
color: rgba(211, 221, 222, 0.4);
|
|
}
|
|
|
|
.chat-input__field:focus {
|
|
border-color: var(--orange-100);
|
|
}
|
|
|
|
.chat-input__field:disabled {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.chat-input__send {
|
|
flex-shrink: 0;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: var(--orange-100);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s, opacity 0.2s;
|
|
}
|
|
|
|
.chat-input__send:hover:not(:disabled) {
|
|
background: var(--yellow-100);
|
|
color: var(--dark-grey-100);
|
|
}
|
|
|
|
.chat-input__send:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
.chat-input__send svg {
|
|
fill: currentColor;
|
|
}
|