/* ============================================================================
   MÓDULO GERENCIAR SITE/PLATAFORMA (Fase 6) — estilos próprios, prefixo "gs-".
   Segue o mesmo padrão visual dos módulos Agendamentos/Match/Importar/
   Integrador (agendamentos.css/match.css/importar.css/integrador.css):
   laranja MyCar, chips, tabela com cabeçalho cinza. Cores em HEX FIXO (não
   var(--...)) de propósito — mesma convenção do integrador.css, pra este
   arquivo não depender da ordem de carregamento de nenhum outro CSS.
   ========================================================================== */

.gs-root { max-width: 1100px; margin: 0 auto; }

.gs-subtitulo { color: #707070; font-size: 13px; margin-top: 4px; line-height: 1.5; }

.gs-carregando {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #707070;
  font-size: 14px;
}
.gs-girando { animation: gs-girar 0.8s linear infinite; font-size: 20px; }
@keyframes gs-girar { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   Aviso de KV ausente (config pode não persistir)
   --------------------------------------------------------------------- */
.gs-aviso-kv {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7da;
  color: #7a5b00;
  border: 1px solid #f0dfa0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.gs-aviso-kv i { font-size: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   Portão de senha (tela cheia dentro do módulo, antes de autenticar)
   --------------------------------------------------------------------- */
.gs-gate {
  display: flex;
  justify-content: center;
  padding: 40px 16px 60px;
}
.gs-gate-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 32px 28px;
  text-align: center;
}
.gs-gate-icone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff1ee;
  color: #f43f27;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.gs-gate-card h2 { font-size: 18px; margin-bottom: 10px; color: #202124; }
.gs-gate-card p { color: #707070; font-size: 13px; line-height: 1.55; margin-bottom: 20px; }
.gs-gate-card form { text-align: left; }
.gs-gate-erro {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}

/* ---------------------------------------------------------------------
   Formulário — Conteúdo do Site
   --------------------------------------------------------------------- */
.gs-campo { max-width: 640px; }
.gs-preview { margin-top: 10px; }
.gs-preview-img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  object-fit: cover;
  background: #f4f4f4;
}
.gs-preview-vazio {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px dashed #dedede;
  border-radius: 8px;
  color: #999999;
  font-size: 12.5px;
  background: #fafafa;
}
.gs-preview-vazio.gs-preview-erro { color: #c72609; border-color: #f6c9c1; background: #fff5f3; }

.gs-form-rodape {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 0 4px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ededed;
}

/* ---------------------------------------------------------------------
   Aba Leads do Site
   --------------------------------------------------------------------- */
.gs-leads-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gs-leads-topo .gs-subtitulo { margin-top: 0; }

.gs-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: #e6f4ff;
  color: #0b63b0;
  text-transform: capitalize;
}

.gs-msg { max-width: 420px; }

@media (max-width: 720px) {
  .gs-leads-topo { flex-direction: column; align-items: stretch; }
  .gs-form-rodape { flex-direction: column-reverse; }
  .gs-form-rodape .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   Alternadores "sim/não" (toggles de vídeo, dentro de "Banners e mídia")
   --------------------------------------------------------------------- */
.gs-linha-alternador { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.gs-alternador-estado { font-size: 12.5px; font-weight: 600; color: #707070; }

/* ---------------------------------------------------------------------
   Aba "Ofertas em Destaque"
   --------------------------------------------------------------------- */
.gs-destaques-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gs-destaques-busca-campo { flex: 1 1 260px; max-width: 360px; margin-bottom: 0; }
.gs-destaques-busca-campo input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dedede;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}
.gs-destaques-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.gs-destaques-contador {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e7d3f;
  margin-bottom: 12px;
}
.gs-destaques-contador-auto { color: #7a5b00; }

.gs-destaques-lista {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow-y: auto;
  max-height: 520px;
}
.gs-destaque-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}
.gs-destaque-item:last-child { border-bottom: none; }
.gs-destaque-info { min-width: 0; }
.gs-destaque-titulo { font-size: 13.5px; font-weight: 600; color: #202124; }
.gs-destaque-sub { font-size: 12px; color: #8a8a8a; margin-top: 2px; }

.gs-destaques-vazio {
  padding: 30px 16px;
  text-align: center;
  color: #999999;
  font-size: 13px;
}
.gs-destaques-erro { color: #c72609; }

@media (max-width: 720px) {
  .gs-destaques-topo { flex-direction: column; align-items: stretch; }
  .gs-destaques-busca-campo { max-width: none; }
  .gs-destaques-acoes .btn { flex: 1 1 auto; }
}
