/* Só o que o Tailwind (via CDN) não cobre: animações, scroll suave e
   respeito ao "reduzir movimento" do sistema operacional. */

html {
  scroll-behavior: smooth;
}

body {
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fade-in-up 0.5s ease both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-pop-in {
  animation: pop-in 0.25s ease both;
}

/* Mensagens novas do chat entram com uma leve subida + fade. */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-in {
  animation: slide-in 0.2s ease both;
}

/* Barra de rolagem discreta nas caixas de chat. */
.rolagem-fina::-webkit-scrollbar {
  width: 6px;
}
.rolagem-fina::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 999px;
}
.dark .rolagem-fina::-webkit-scrollbar-thumb {
  background: #404040;
}
