/* Tema visual HubGS V2 (amostra) -- so CSS, injetado por <link> no index.html.
   Nao altera o bundle React nem a logica; remover o <link> desfaz tudo.
   Tokens copiados de homologv2/public/styles.css. Escopo: so o modo claro. */
:root:not(.dark) body { background: #f2f6fb; }

/* Sidebar escura com brilho azul no canto, como no V2 */
aside.bg-slate-900 {
  background: radial-gradient(ellipse at -20% 100%, #063658, transparent 43%), #04111d !important;
  border-right: 0 !important;
}
aside.bg-slate-900 > div:first-child { border-bottom-color: #0d2a42 !important; }
aside.bg-slate-900 h3 { color: #6f8aa5 !important; opacity: 1 !important; letter-spacing: 1.4px; }
aside.bg-slate-900 button { border-radius: 9px !important; padding-top: 11px !important; padding-bottom: 11px !important; }
aside.bg-slate-900 button:hover { background-color: #112b42 !important; }
aside.bg-slate-900 button[class*="bg-blue-600/10"] {
  background: linear-gradient(110deg, #0085ff, #044080) !important;
  border-color: #188be754 !important;
  box-shadow: 0 5px 17px #0003 !important;
  color: #fff !important;
}
aside.bg-slate-900 button[class*="bg-blue-600/10"] svg,
aside.bg-slate-900 button[class*="bg-blue-600/10"] span { color: #fff !important; }

/* Cabecalho: branco translucido, borda fina */
header.h-16 { background: #ffffffda !important; border-bottom: 1px solid #e6edf6 !important; }
header.h-16 input { background: #ecf1f8 !important; border-radius: 28px !important; border-color: transparent !important; }

/* Titulo da pagina */
main h1.text-2xl { font-size: 31px; letter-spacing: -.9px; font-weight: 650; color: #111b2d; }

/* Cards de metricas: estilizados SO por dashboard-cards-estilo.js (dono unico). Nada aqui. */

/* Logo HubGS no lugar do icone de chip + texto (so aparencia; o bloco original fica escondido) */
aside.bg-slate-900 > div:first-child > div:first-child {
  width: 150px; height: 42px; flex-shrink: 0;
  background: url('/assets/hubgs-logo.png') left center / contain no-repeat;
}
aside.bg-slate-900 > div:first-child > div:first-child > * { display: none !important; }

/* Frase da marca embaixo da logo (faz parte da logo no V2) */
aside.bg-slate-900 > div:first-child > div:first-child {
  height: 58px; position: relative;
  background-position: left top;
}
aside.bg-slate-900 > div:first-child > div:first-child::after {
  content: "GESTÃO INTELIGENTE";
  position: absolute; left: 0; right: 0; bottom: 0;
  text-align: center; font-size: 9px; line-height: 1; letter-spacing: 1.6px;
  font-weight: 600; color: #e3eefb;
}

/* Frase ocupa exatamente da borda esquerda da nuvem ate a borda direita do "S" (a arte tem margem no PNG) */
aside.bg-slate-900 > div:first-child > div:first-child::after {
  left: 3.7%; right: 2.5%;
  text-align: justify; text-align-last: justify;
  letter-spacing: 0;
  word-spacing: 0;
}

/* Ajuste fino: letter-spacing calculado (medido no navegador) para o texto ir de ponta a ponta da arte */
aside.bg-slate-900 > div:first-child > div:first-child::after {
  text-align: left; text-align-last: auto;
  letter-spacing: 2.56px; white-space: nowrap;
}

/* Itens nao selecionados mais claros, mesmas cores do V2 (texto #dbe7f9, icone #9bafc7) */
aside.bg-slate-900 button:not([class*="bg-blue-600/10"]) { color: #dbe7f9 !important; }
aside.bg-slate-900 button:not([class*="bg-blue-600/10"]) span { color: #dbe7f9 !important; }
aside.bg-slate-900 button:not([class*="bg-blue-600/10"]) svg { color: #9bafc7 !important; }
aside.bg-slate-900 button:not([class*="bg-blue-600/10"]):hover svg { color: #fff !important; }

/* Logo um pouco menor (150 -> 132px); letter-spacing recalculado pra frase seguir de ponta a ponta */
aside.bg-slate-900 > div:first-child > div:first-child { width: 132px; height: 52px; }
aside.bg-slate-900 > div:first-child > div:first-child::after { letter-spacing: 1.56px; }

/* Menu reorganizado: grupos viram "display:contents" para o style.order dos botoes valer entre grupos.
   Os <h3> originais ficam escondidos; o titulo de cada grupo e desenhado no 1o botao (data-gs-titulo). */
aside.bg-slate-900 > div.flex-1 { display: flex; flex-direction: column; gap: 0; }
aside.bg-slate-900 > div.flex-1 > div { display: contents; }
aside.bg-slate-900 > div.flex-1 h3 { display: none !important; }
aside.bg-slate-900 > div.flex-1 > div > button { order: 1000; flex-shrink: 0; }
aside.bg-slate-900 button[data-gs-titulo] { position: relative; margin-top: 32px !important; }
aside.bg-slate-900 button[data-gs-titulo]::before {
  content: attr(data-gs-titulo);
  position: absolute; left: 12px; top: -22px;
  font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: #6f8aa5; pointer-events: none;
}
