/* Animações da Gestão. Só valem com html[data-anim="1"] (ver animacoes.js): modo leve, "reduzir movimento" e "sem animações" deixam tudo parado.
   Só mexem em opacidade e posição (o navegador faz isso sem esforço, até em computador fraco). */
@keyframes anim-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes anim-barra { from { transform: scaleX(0); } to { transform: none; } }
@keyframes anim-dica { from { opacity: 0; transform: translate(-6px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

html[data-anim="1"] .anim-entra { animation: anim-entra .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--ai, 0) * 55ms); }
html[data-anim="1"] .anim-barra { transform-origin: left center; animation: anim-barra .8s cubic-bezier(.22, 1, .36, 1) .3s both; }

/* menu: cor, ícone e deslize suaves ao passar o mouse */
html[data-anim="1"] a.nav-item { position: relative; z-index: 1; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
html[data-anim="1"] a.nav-item .nav-ico { transition: transform .28s cubic-bezier(.34, 1.56, .64, 1); }
html[data-anim="1"] a.nav-item:hover .nav-ico { transform: scale(1.14) rotate(-5deg); }

/* cartões do painel levantam um pouco */
html[data-anim="1"] .dash-kpi { transition: transform .25s ease, box-shadow .25s ease; }
html[data-anim="1"] .dash-kpi:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(138, 75, 92, .45); }

/* nome do item do menu recolhido */
.dica-menu { display: none; }
html[data-anim="1"] .dica-menu {
  display: block; position: fixed; z-index: 3000; pointer-events: none; opacity: 0; transform: translate(0, -50%);
  padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--cor-marca, #8a4b5c); font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(60, 30, 40, .5), 0 0 0 1px rgba(138, 75, 92, .14); white-space: nowrap;
}
html[data-anim="1"] .dica-menu.on { opacity: 1; animation: anim-dica .2s ease-out both; }
html[data-tema="escuro"][data-anim="1"] .dica-menu { background: #2b2c32; color: #f1dfe5; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }

/* o modo leve continua mandando em tudo */
html[data-leve="1"] .dica-menu { display: none !important; }

/* faixa de descobertas no painel (descobertas.js): discreta, uma linha no computador */
.dash-descoberta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 20px; background: var(--s-tinta-1, #fbf4f6); border: 1px solid var(--s-linha, #ecdcd6); position: relative; }
.dash-descoberta .dd-ico { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--cor-marca, #8a4b5c); }
.dash-descoberta .dd-texto { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dash-descoberta .dd-texto small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a7c80; }
.dash-descoberta .dd-texto small i { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--cor-marca, #8a4b5c); font-weight: 700; letter-spacing: 0; text-transform: none; }
.dash-descoberta .dd-texto b { font-size: 14.5px; }
.dash-descoberta .dd-texto span { font-size: 13px; color: #6d6270; line-height: 1.35; }
.dash-descoberta .dd-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-descoberta .dd-ver { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--cor-marca, #8a4b5c); color: #fff; font-weight: 700; font-size: 13px; }
.dash-descoberta .dd-depois, .dash-descoberta .dd-conheco { border: 0; background: transparent; padding: 8px 10px; border-radius: 999px; font-size: 13px; color: #6d6270; cursor: pointer; }
.dash-descoberta .dd-depois:hover, .dash-descoberta .dd-conheco:hover { background: rgba(255, 255, 255, .8); }
.dash-descoberta .dd-off { position: absolute; right: 14px; bottom: 4px; border: 0; background: transparent; font-size: 10.5px; color: #a09498; cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 800px) { .dash-descoberta { padding-bottom: 22px; } }
html[data-tema="escuro"] .dash-descoberta { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
html[data-tema="escuro"] .dash-descoberta .dd-ico, html[data-tema="escuro"] .dash-descoberta .dd-texto small i { background: rgba(255, 255, 255, .08); color: var(--s-acento, #f1b9c8); }
html[data-tema="escuro"] .dash-descoberta .dd-texto span, html[data-tema="escuro"] .dash-descoberta .dd-depois, html[data-tema="escuro"] .dash-descoberta .dd-conheco { color: #c9bcc1; }

/* painel sob demanda: o bloco espera escondido até aparecer na tela */
html[data-anim="1"] .anim-espera { opacity: 0; transform: translateY(22px); }
@keyframes anim-traco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes anim-surge { from { opacity: 0; } to { opacity: 1; } }
@keyframes anim-donut { from { opacity: 0; transform: rotate(-70deg) scale(.82); } to { opacity: 1; transform: none; } }
html[data-anim="1"] .anim-traco { stroke-dasharray: 1; stroke-dashoffset: 1; animation: anim-traco 1.3s cubic-bezier(.4, 0, .2, 1) .25s forwards; }
html[data-anim="1"] .anim-surge { opacity: 0; animation: anim-surge .7s ease .9s forwards; }
html[data-anim="1"] .anim-donut { transform-origin: 50% 50%; animation: anim-donut 1s cubic-bezier(.22, 1, .36, 1) .15s both; }

/* menu: um único fundo que desliza e persegue o mouse entre os itens */
html[data-anim="1"] .nav-secoes { position: relative; }
.nav-cacador { display: none; }
@media (hover: hover) {
  html[data-anim="1"] .nav-cacador {
    display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0;
    background: rgba(138, 75, 92, .11); box-shadow: 0 8px 18px -12px rgba(138, 75, 92, .6);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), width .4s cubic-bezier(.22, 1, .36, 1), height .4s cubic-bezier(.22, 1, .36, 1), border-radius .25s ease, opacity .22s ease;
  }
  html[data-anim="1"] .nav-cacador.on { opacity: 1; }
  html[data-anim="1"] a.nav-item:not(.ativa):hover { background: transparent; box-shadow: none; }
}
html[data-tema="escuro"][data-anim="1"] .nav-cacador { background: rgba(255, 255, 255, .09); box-shadow: none; }
html[data-leve="1"] .nav-cacador { display: none !important; }
