/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Base sizing for iconify-icon to prevent CLS before hydration */
iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: middle;
}

html {
    scroll-behavior: smooth;
    background-color: #2248FF;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Poppins', serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduz custo de transições globais (já usamos Tailwind utilitário) */
* { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }

/* Revenda Wizard - Modal */
.modal-backdrop {
  backdrop-filter: blur(2px);
}

.modal-enter {
  animation: modalEnter 0.3s ease-out;
}

#editProfileModal {
  animation: modalEnter 0.3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  scrollbar-gutter: stable;
}


@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Chat - Animação de mensagens */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scrollbar personalizado para chat */
#mensagens-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#mensagens-container::-webkit-scrollbar {
  width: 6px;
}

#mensagens-container::-webkit-scrollbar-track {
  background: transparent;
}

#mensagens-container::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

#mensagens-container::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

/* Chat toggle animation */
[data-chat-toggle-target="content"] {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

[data-chat-toggle-target="content"].hidden {
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
}

