/* =========================================================
   SIGMA CONECTA — DESIGN SYSTEM
   efeitos.css: movimento e hover do sistema inteiro.
   - .entrar      → o elemento aparece subindo suavemente; use
                    style="--atraso: N" para escalonar (N × 60ms)
   - .painel-hover → painel que reage ao passar o mouse
   Quem configurou o computador para "reduzir animações" não vê
   nenhum movimento (bloco no fim do arquivo).
========================================================= */

/* =========================
   ANIMAÇÕES
========================= */

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes brilho {
  from { transform: translateX(-120%) skewX(-20deg); }
  to { transform: translateX(260%) skewX(-20deg); }
}

@keyframes crescer {
  from { width: 0; }
}

.entrar {
  animation: entrar .55s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--atraso, 0) * 60ms);
}

.barra-preench {
  animation: crescer 1.1s cubic-bezier(.2, .7, .2, 1) .35s both;
}

/* Conteúdo de cada página aparece com um leve fade */
.hub-conteudo > .conteudo,
.hub-conteudo > .tf-conteudo {
  animation: entrar .4s ease-out both;
}

.entrada-card {
  animation: entrar .5s cubic-bezier(.2, .7, .2, 1) .25s both;
}

/* Vitrine do login: logo, frase e citação entram em sequência */
.entrada-vitrine-conteudo > * {
  animation: entrar .6s cubic-bezier(.2, .7, .2, 1) both;
}

.entrada-vitrine-conteudo > *:nth-child(2) { animation-delay: .08s; }
.entrada-vitrine-conteudo > *:nth-child(3) { animation-delay: .16s; }
.entrada-vitrine-conteudo > *:nth-child(4) { animation-delay: .24s; }
.entrada-vitrine-conteudo > *:nth-child(5) { animation-delay: .36s; }

.entrada-marca .marca-simbolo {
  animation: flutuar 6s ease-in-out infinite;
}

.entrada-vitrine-sigma,
.manifesto-sigma {
  transition: -webkit-text-stroke-color .6s;
}

.manifesto:hover .manifesto-sigma {
  -webkit-text-stroke-color: rgba(245, 217, 122, 0.45);
}

.citacao {
  transition: border-color .3s, box-shadow .3s;
}

.entrada-vitrine .citacao:hover {
  border-color: var(--sc-ouro);
  box-shadow: 0 10px 30px rgba(245, 217, 122, 0.10);
}

/* =========================
   HOVER: CARTÕES
========================= */

.modulo-card,
.stat,
.sistema-card,
.painel-hover,
.dados-card,
.aviso-card {
  transition:
    transform .25s cubic-bezier(.2, .7, .2, 1),
    border-color .25s,
    box-shadow .25s,
    background .25s;
}

a.stat:hover,
.modulo-card:hover,
.sistema-card:hover {
  transform: translateY(-6px);
  border-color: var(--sc-verde-claro);
  box-shadow: 0 14px 32px rgba(57, 197, 126, 0.22);
}

.sistema-futuro:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--sc-texto-apagado);
}

.painel-hover:hover,
.dados-card:hover {
  border-color: rgba(57, 197, 126, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.aviso-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 193, 7, 0.12);
}

/* Faixa de brilho que atravessa o cartão no hover */
.modulo-card::after,
a.stat::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}

.modulo-card:hover::after,
a.stat:hover::after {
  animation: brilho .8s ease-out;
}

/* Ícones crescem um pouco */
.modulo-card-icone,
.stat-icone,
.sistema-card-icone {
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .25s;
}

.modulo-card:hover .modulo-card-icone,
a.stat:hover .stat-icone {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(57, 197, 126, 0.26);
}

.sistema-card:hover .sistema-card-icone {
  transform: scale(1.15);
}

/* Setas andam para a direita */
.seta {
  display: inline-block;
  transition: transform .25s;
}

.modulo-card:hover .seta,
.link-seta:hover .seta,
.lista-recentes a:hover .seta,
.aviso-card:hover .aviso-card-seta {
  transform: translateX(5px);
}

.aviso-card-seta {
  transition: transform .25s;
}

.lista-recentes a {
  transition: background .2s, transform .2s;
}

.lista-recentes a:hover {
  transform: translateX(3px);
}

/* =========================
   HOVER: BOTÕES, SIDEBAR, TABELAS
========================= */

.btn,
.btn-primary {
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47, 163, 107, 0.30);
}

.btn-light:hover,
.btn-secondary:hover,
.btn-info:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}

.btn-link:hover {
  transform: none;
  box-shadow: none;
}

.btn:active,
.btn-primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: none;
}

.hub-sidebar-item {
  transition: background .2s, color .2s, border-color .2s, padding-left .2s;
}

.hub-sidebar-item:hover {
  padding-left: 16px;
}

.hub-sidebar-item .hub-sidebar-icone {
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.hub-sidebar-item:hover .hub-sidebar-icone {
  transform: scale(1.18);
}

.hub-sidebar-logo .logo:hover {
  transform: translateY(-2px) rotate(-8deg);
}

tbody tr td {
  transition: background .15s;
}

.categoria {
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.categoria:hover {
  transform: translateY(-3px);
}

/* Foco visível ao navegar pelo teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sc-verde-texto);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================
   MASCOTE
========================= */

@keyframes acenar {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  75% { transform: rotate(6deg); }
}

.entrada-mascote,
.estado-vazio-mascote {
  animation: flutuar 5s ease-in-out infinite;
}

.entrada-mascote:hover,
.estado-vazio-mascote:hover,
.inicio-hero-marca .mascote:hover {
  animation: acenar .6s ease-in-out 2;
  transform-origin: 50% 90%;
}

.assinatura img {
  transition: opacity .25s;
}

.assinatura:hover img {
  opacity: 1;
}

/* =========================
   MENOS MOVIMENTO
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
