/* Tailwind é carregado via CDN no HTML — este arquivo contém apenas customizações */

/* Customizações Essenciais Pós-Tailwind */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #28a398;
}

/* Base body/html reset */
html {
  box-sizing: border-box;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  /* Garante que o conteúdo respeita as safe areas do iPhone (notch, home bar) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Previne zoom no input ao focar (iOS Safari amplifica inputs < 16px) */
input, textarea, select {
  font-size: 16px !important;
}

/* Chat messages scroll suave no mobile */
#chat-messages {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


/* Animações Modernas e Sutis */
@keyframes fadeInUp {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

.animate-fade-in-up {
  /* Removido opacity: 0 para evitar que o conteúdo suma caso a animação trave no mobile */
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Pontinhos Digitando (Typing Indicator) */
.typing { 
  display: flex; 
  gap: 5px; 
  align-items: center; 
  justify-content: flex-start; 
  padding: 0.25rem 0;
}

.typing-dot {
  width: 6px; 
  height: 6px; 
  background: #64748b; 
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-4px) scale(1.1); opacity: 1; }
}

/* Suporte à formatação no Markdown da Caixa do Bot (Markdown Body) */
.markdown-body {
  word-wrap: break-word;
}
.markdown-body p { margin-bottom: 0.75rem; color: #1e8278; font-weight: 500; }
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body strong { font-weight: 700; color: #115e56; }
.markdown-body code {
  background: rgba(40, 163, 152, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(40, 163, 152, 0.2);
  font-family: monospace;
  font-size: 0.85em;
  color: #115e56;
}
