/* Escutatória RH - Chatbot Widget Styles */
:root{--esc-primary:#1a5276;--esc-primary-dark:#0e3a54;--esc-primary-light:#2980b9;--esc-accent:#e67e22;--esc-bg-light:#f8f9fa;--esc-bg-white:#fff;--esc-text-dark:#2c3e50;--esc-text-light:#7f8c8d;--esc-border:#dce1e6;--esc-shadow:rgba(0,0,0,.15);--esc-radius:16px}
#esc-chatbot-bubble{position:fixed;bottom:24px;right:24px;width:60px;height:60px;border-radius:50%;background:var(--esc-primary);border:none;cursor:pointer;box-shadow:0 4px 16px var(--esc-shadow);z-index:99999;display:flex;align-items:center;justify-content:center;transition:transform .3s,box-shadow .3s}
#esc-chatbot-bubble:hover{transform:scale(1.08);box-shadow:0 6px 24px rgba(0,0,0,.25)}
#esc-chatbot-bubble img{width:36px;height:36px;border-radius:50%;object-fit:contain}
#esc-chatbot-bubble .esc-close-icon{display:none;font-size:24px;color:#fff;font-weight:bold}
#esc-chatbot-bubble.esc-open img{display:none}
#esc-chatbot-bubble.esc-open .esc-close-icon{display:block}
#esc-chatbot-window{position:fixed;bottom:96px;right:24px;width:380px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.2);z-index:99998;display:none;flex-direction:column;overflow:hidden;font-family:'Inter','Segoe UI',-apple-system,sans-serif}
#esc-chatbot-window.esc-visible{display:flex}
.esc-chat-header{background:linear-gradient(135deg,var(--esc-primary),var(--esc-primary-dark));color:#fff;padding:16px 20px;display:flex;align-items:center;gap:12px;flex-shrink:0}
.esc-chat-header-logo{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.15);padding:6px;object-fit:contain}
.esc-chat-header-info{flex:1}
.esc-chat-header-title{font-size:15px;font-weight:600;margin:0}
.esc-chat-header-subtitle{font-size:12px;opacity:.85;margin:0}
.esc-chat-header-status{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2ecc71;margin-right:4px;vertical-align:middle}
.esc-chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--esc-bg-light)}
.esc-chat-messages::-webkit-scrollbar{width:4px}
.esc-chat-messages::-webkit-scrollbar-thumb{background:var(--esc-border);border-radius:4px}
.esc-message{max-width:85%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.5;word-wrap:break-word}
.esc-message-bot{align-self:flex-start;background:#fff;color:var(--esc-text-dark);border:1px solid var(--esc-border);border-bottom-left-radius:4px}
.esc-message-user{align-self:flex-end;background:var(--esc-primary);color:#fff;border-bottom-right-radius:4px}
.esc-message-time{font-size:11px;color:var(--esc-text-light);margin-top:4px;display:block}
.esc-message-user .esc-message-time{color:rgba(255,255,255,.7);text-align:right}
.esc-typing-indicator{align-self:flex-start;display:flex;gap:4px;padding:12px 16px;background:#fff;border:1px solid var(--esc-border);border-radius:12px;border-bottom-left-radius:4px}
.esc-typing-dot{width:8px;height:8px;border-radius:50%;background:var(--esc-text-light);animation:esc-typing 1.4s infinite}
.esc-typing-dot:nth-child(2){animation-delay:.2s}
.esc-typing-dot:nth-child(3){animation-delay:.4s}
@keyframes esc-typing{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}
.esc-chat-input-area{padding:12px 16px;background:#fff;border-top:1px solid var(--esc-border);display:flex;gap:8px;align-items:flex-end;flex-shrink:0}
.esc-chat-input{flex:1;border:1px solid var(--esc-border);border-radius:20px;padding:10px 16px;font-size:14px;resize:none;max-height:80px;outline:none;transition:border-color .2s}
.esc-chat-input:focus{border-color:var(--esc-primary-light)}
.esc-chat-input::placeholder{color:var(--esc-text-light)}
.esc-chat-send-btn{width:40px;height:40px;border-radius:50%;background:var(--esc-primary);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;flex-shrink:0}
.esc-chat-send-btn:hover{background:var(--esc-primary-dark)}
.esc-chat-send-btn:disabled{background:var(--esc-border);cursor:not-allowed}
.esc-chat-send-btn svg{width:18px;height:18px;fill:#fff}
.esc-chat-footer{padding:6px 16px;text-align:center;font-size:11px;color:var(--esc-text-light);background:#fff;border-top:1px solid var(--esc-border);flex-shrink:0}
.esc-chat-footer a{color:var(--esc-primary-light);text-decoration:none}
.esc-quick-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 16px;background:var(--esc-bg-light)}
.esc-quick-btn{padding:6px 12px;border:1px solid var(--esc-primary-light);border-radius:16px;background:#fff;color:var(--esc-primary);font-size:12px;cursor:pointer;transition:all .2s}
.esc-quick-btn:hover{background:var(--esc-primary);color:#fff}
@media(max-width:480px){#esc-chatbot-window{bottom:0;right:0;width:100vw;height:100vh;max-height:100vh;border-radius:0}#esc-chatbot-bubble{bottom:16px;right:16px;width:54px;height:54px}}