/*
 * 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;
    overscroll-behavior: none;
}

/* Firefox mobile: a barra de endereço dinâmica recalcula o viewport visual sem repintar
   elementos fixed a tempo, e por um instante o bottom nav "descola" do fundo real da tela.
   Forçar camada de composição própria evita esse atraso de reposicionamento. */
#app-bottom-nav {
  transform: translateZ(0);
}

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

/* 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;
}

/* Esconde a barra de scroll da faixa de chips de filtro (mobile), mantém o scroll funcional */
.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Campo numérico sem as setas de incremento nativas do navegador */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spinner {
  -moz-appearance: textfield;
}

/* iOS Safari dá zoom automático ao focar campo com font-size < 16px. Força 16px só no
   mobile pra não fazer o navegador "pular" pro campo — não muda a tipografia no desktop. */
@media (max-width: 767px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Hero search input: remove border, outline e box-shadow que o Tailwind Preflight injeta */
.hero-search-input,
.hero-search-input:focus,
.hero-search-input:focus-visible,
.hero-search-input:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  border-width: 0 !important;
}

/* 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;
}

