/* Estilos base do chatbot. O CSS detalhado será adicionado após a conversão do Figma. */
#askme-chatbot-button {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
}
#askme-chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 32px;
  z-index: 10000;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-radius: 24px;
  background: #fff;
  font-family: 'Inter', Arial, sans-serif;
  display: none;
}
.amc-chatbot-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  width: 100%;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}
.amc-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.amc-chatbot-logo {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #105caf;
}
.amc-chatbot-close {
  background: #fff;
  border: none;
  font-size: 24px;
  color: #4b5563;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background 0.2s;
}
.amc-chatbot-close:hover {
  background: #f3f4f6;
}
.amc-chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.amc-chatbot-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.amc-chatbot-message-bot {
  flex-direction: row;
}
.amc-chatbot-message-user {
  flex-direction: row-reverse;
}
.amc-chatbot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #105caf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.amc-chatbot-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 15px;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  max-width: 240px;
  word-break: break-word;
  line-height: 1.5;
}
.amc-chatbot-message-bot .amc-chatbot-bubble {
  background: #fff;
  color: #111827;
}
.amc-chatbot-message-user .amc-chatbot-bubble {
  background: #105caf;
  color: #fff;
}
/* Formatação markdown */
.amc-chatbot-bubble strong {
  font-weight: 600;
}
.amc-chatbot-bubble em {
  font-style: italic;
}
.amc-chatbot-bubble a {
  color: #105caf;
  text-decoration: underline;
}
.amc-chatbot-message-user .amc-chatbot-bubble a {
  color: #fff;
  text-decoration: underline;
}
.amc-chatbot-bubble p {
  margin: 8px 0;
}
.amc-chatbot-bubble p:first-child {
  margin-top: 0;
}
.amc-chatbot-bubble p:last-child {
  margin-bottom: 0;
}
.amc-chatbot-bubble ul,
.amc-chatbot-bubble ol {
  margin: 8px 0;
  padding-left: 20px;
}
.amc-chatbot-bubble ul {
  list-style-type: disc;
}
.amc-chatbot-bubble ol {
  list-style-type: decimal;
}
.amc-chatbot-bubble li {
  margin: 4px 0;
  line-height: 1.4;
}
.amc-chatbot-bubble li strong {
  font-weight: 600;
}
/* Estilo para bullets personalizados */
.amc-chatbot-bubble br + • {
  display: block;
  margin-top: 4px;
}
.amc-chatbot-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.amc-chatbot-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  background: #f3f4f6;
  color: #111827;
  transition: border 0.2s;
}
.amc-chatbot-input:focus {
  border: 1.5px solid #105caf;
}
.amc-chatbot-send {
  background: #105caf;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.amc-chatbot-send:hover {
  background: #0d4a8c;
}
.amc-chatbot-footer {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding: 8px 16px 12px 16px;
  background: #fff;
}
/* Animação de loading para streaming */
.amc-loading {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Indicador de digitação */
.amc-typing {
  color: #6b7280;
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
} 