:root { color-scheme: light;
--medicarama-teal: #4ab4af;
--medicarama-bg: #ffffff;
--medicarama-surface: #f9f9f9;
--medicarama-text: #222;
--medicarama-muted: #6b7280;
--medicarama-font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
--radius: 12px;
--shadow: 0 10px 30px rgba(0, 0, 0, .15);
} #full-chat-container {
width: 100%;
max-width: 1000px; margin: 1rem auto; height: 60vh; display: flex;
flex-direction: column;
border: 1px solid #e5e7eb;
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
} #chat-window {
position: relative; width: 100%;
height: 100%;
max-width: none;
max-height: none;
display: flex !important; flex-direction: column;
z-index: 1;
box-shadow: none; border: none;
border-radius: 0;
} #chat-header {
background: var(--medicarama-teal);
color: #fff;
padding: 12px 14px;
display: flex;
align-items: center;
gap: 10px;
}
#chat-header .avatar {
width: 52px;
height: 52px;
border-radius: 50%;
background: rgba(255, 255, 255, .25); display: block;
overflow: hidden; }
#chat-header .avatar img {
width: 100%;
height: 100%;
object-fit: cover; }
#chat-header .title { font-weight: 700; line-height: 1.2; }
#chat-header .subtitle { font-size: 12px; opacity: .9; }
#chat-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
#chat-clear { background: transparent;
border: 0;
color: #fff;
cursor: pointer;
font-size: 18px;
line-height: 1;
display: grid;
place-items: center;
}
#chat-messages {
flex: 1;
padding: 14px;
overflow: auto;
background: var(--medicarama-surface);
scroll-behavior: smooth;
}
.msg { max-width: 85%; margin: 8px 0; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.msg p, .msg ul, .msg ol { margin: 0 0 10px 0; }
.msg p:last-child { margin: 0; }
.msg ul, .msg ol { padding-left: 20px; }
.msg time { display: block; margin-top: 6px; font-size: 11px; color: var(--medicarama-muted); }
.msg.user { margin-left: auto; background: #e9e9eb; color: #333; border-bottom-right-radius: 6px; }
.msg.bot { margin-right: auto; background: var(--medicarama-teal); color: #fff; border-bottom-left-radius: 6px; }
.msg.bot a { color: #fff; text-decoration: underline; font-weight: 600; }
.msg.bot a:hover { text-decoration: none; }
.typing { display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; animation: blink 1s infinite; }
.dot:nth-child(2) { animation-delay: .15s }
.dot:nth-child(3) { animation-delay: .3s }
@keyframes blink { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }
#chat-input-bar {
display: flex;
gap: 8px;
align-items: flex-end;
padding: 10px;
background: var(--medicarama-bg);
border-top: 1px solid #e5e7eb;
}
#chat-input {
flex: 1;
resize: none;
border: 1px solid #cfd4dc;
border-radius: 10px;
padding: 10px 12px;
min-height: 42px;
max-height: 120px;
font: 14px/1.4 var(--medicarama-font);
box-sizing: border-box;
transition: border-color .15s, box-shadow .15s;
}
#chat-input:focus { outline: none; border-color: var(--medicarama-teal); box-shadow: 0 0 0 .2rem rgba(74, 180, 175, .25); }
#send-btn {
height: 42px;
padding: 0 14px;
border-radius: 10px;
border: 0;
cursor: pointer;
font-weight: 700;
color: #fff;
background: var(--medicarama-teal);
transition: filter .15s, transform .1s;
display: inline-grid;
place-items: center;
}
#send-btn:hover { filter: brightness(1.05) }
#send-btn:active { transform: translateY(1px) }
#send-btn[disabled] { opacity: .6; cursor: not-allowed }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }