/* Variáveis de cores customizadas - Complementam o Tailwind */
:root {
  --primary-color: #6366f1;
  --secondary-color: #7999be;
  --accent-color: #8b5cf6;
  --error-color: #ef4444;
  --success-color: #10b981;
}

/* Estilos específicos que não são facilmente substituíveis pelo Tailwind */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.text-error {
  color: var(--error-color);
}

.text-success {
  color: var(--success-color);
}

/* Customizações para plugins externos */
.flatpickr-calendar {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animações customizadas */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Customização de scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Classes de utilidade adicionais */
.no-select {
  user-select: none;
}

.cursor-pointer {
  cursor: pointer;
}

/* Personalização do outline para acessibilidade */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
} 


.message-bot h1, .message-bot h2, .message-bot h3, .message-bot h4, .message-bot h5, .message-bot h6 {
  font-weight: 600;
  margin: 1.2em 0 0.2em 0;
  line-height: 1.2;
}
.message-bot h1 { font-size: 1.3em; }
.message-bot h2 { font-size: 1.15em; }
.message-bot h3 { font-size: 1.05em; }
.message-bot h4, .message-bot h5, .message-bot h6 { font-size: 1em; }
.message-bot p {
  margin: 1.2em 0 0.2em 0;
}
.message-bot ul, .message-bot ol {
  list-style: auto;
  margin: 0.15em 0 0.15em 1.2em;
  padding: 0;
}
.message-bot li {
  list-style: auto;
  margin: 0.08em 0;
  padding-left: 0.2em;
}
.message-bot strong, .message-bot b {
  font-weight: bold;
}
.message-bot em {
  font-style: italic;
}
.message-bot del {
  text-decoration: line-through;
}
.message-bot code {
  background: #f4f4f4;
  color: #c7254e;
  font-family: monospace;
  font-size: 0.97em;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
.message-bot pre {
  background: #f4f4f4;
  border-radius: 4px;
  padding: 0.5em 0.7em;
  margin: 0.2em 0;
  font-size: 0.97em;
  overflow-x: auto;
}
.message-bot blockquote {
  border-left: 3px solid #b3b3b3;
  margin: 0.2em 0;
  padding: 0.1em 0.7em;
  color: #555;
  background: #f7f7fa;
  font-style: italic;
}
.message-bot a {
  color: #3b5bdb;
  text-decoration: underline;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.15s;
}
.message-bot a:hover {
  color: #1c3faa;
  background: #e6eaff;
  text-decoration: underline;
}
.message-bot img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  margin: 0.15em 0;
  display: inline-block;
}