/* Bobcomerce: tema compartilhado (login e chat). Minimalista: superfícies
   lisas, poucas linhas, sem sombra pesada. O azul da Autopel (#155F79 /
   #1897BF, tirados do logo) aparece só no que é ação. */

:root {
  --marca-1: #155F79;
  --marca-2: #1897BF;
  --acento: #15799B;
  --acento-texto: #FFFFFF;

  --fundo: #FAFAF8;
  --lateral: #F2F2EF;
  --superficie: #FFFFFF;
  --superficie-2: #EFEFEB;
  --texto: #1D1D1B;
  --texto-2: #56554F;
  --texto-3: #8A8881;
  --linha: rgba(0, 0, 0, 0.08);
  --linha-forte: rgba(0, 0, 0, 0.14);
  --hover: rgba(0, 0, 0, 0.045);
  --ativo: rgba(0, 0, 0, 0.075);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --sombra-menu: 0 4px 16px rgba(0, 0, 0, 0.10);
  --perigo: #B4372C;
  --ok: #2F8A5B;
  --serifa: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

:root[data-tema="escuro"] {
  --acento: #3AA9D2;
  --acento-texto: #0E1A20;

  --fundo: #1E1E1C;
  --lateral: #181816;
  --superficie: #2A2A27;
  --superficie-2: #33332F;
  --texto: #EDECE7;
  --texto-2: #BEBCB4;
  --texto-3: #8D8B84;
  --linha: rgba(255, 255, 255, 0.08);
  --linha-forte: rgba(255, 255, 255, 0.15);
  --hover: rgba(255, 255, 255, 0.05);
  --ativo: rgba(255, 255, 255, 0.09);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.25);
  --sombra-menu: 0 6px 20px rgba(0, 0, 0, 0.40);
  --perigo: #F08A80;
  --ok: #6CCB98;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(24, 151, 191, 0.25); }

.icone { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7;
         stroke-linecap: round; stroke-linejoin: round; }

/* Logo: colorido no claro, branco no escuro. */
.logo-cor { display: block; }
.logo-branco { display: none; }
:root[data-tema="escuro"] .logo-cor { display: none; }
:root[data-tema="escuro"] .logo-branco { display: block; }

/* Botão de alternar tema: sol no escuro, lua no claro. */
.so-escuro { display: none; }
:root[data-tema="escuro"] .so-escuro { display: block; }
:root[data-tema="escuro"] .so-claro { display: none; }

/* Seletor de tema (claro / escuro / sistema). */
.tema { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--hover); }
.tema button {
  display: grid; place-items: center; width: 28px; height: 24px; border: 0; border-radius: 6px;
  background: transparent; color: var(--texto-3);
}
.tema button:hover { color: var(--texto); }
.tema button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra); }
.tema .icone { width: 14px; height: 14px; }

.botao-primario {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 0; border-radius: 10px; padding: .75rem 1.1rem; font-weight: 550;
  color: var(--acento-texto); background: var(--acento); text-decoration: none;
  transition: filter .15s;
}
.botao-primario:hover { filter: brightness(1.08); }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 6px; }

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