/* Base visual compartilhada: painel, área do aluno e páginas avulsas. */
/* Identidade do site eletricaacademy.com.br: fundo preto, cartões grafite, laranja-âmbar, fonte Lato. */
:root {
  color-scheme: dark;
  --bg: #101010;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --ink: #ffffff;
  --ink-2: #aaaaaa;
  --ink-3: #808080;
  --line: #262626;
  --line-2: #444444;
  --brand: #FFB94E;          /* cor primária do site */
  --brand-2: #FFA400;        /* cor secundária do site */
  --primary: #FFB94E;        /* botões principais */
  --primary-ink: #101010;
  --link: #FFB94E;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --focus: rgba(255, 185, 78, .4);
  --radius: 8px;
  --shadow: none;
}
/* Tema claro (opcional, botão "☀ Claro") */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f4; --surface: #ffffff; --surface-2: #fafaf9;
  --ink: #141414; --ink-2: #555555; --ink-3: #7a7a7a;
  --line: #e5e5e3; --line-2: #d4d4d1;
  --primary: #FFB94E; --primary-ink: #101010;
  --link: #b45f00;
  --ok: #15803d; --warn: #b45309; --err: #b91c1c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
:root[data-theme="light"] ::placeholder { color: #9a9a9a; }

/* Botão de tema */
.btn-tema { font-size: 13px; }

/* Dicas (tooltips) para a equipe: <span class="dica" data-dica="texto">?</span> ou data-dica em qualquer elemento */
.dica { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; font-weight: 700;
  color: var(--ink-3); border: 1px solid var(--line-2); cursor: help; margin-left: 4px; vertical-align: 1px; position: relative; }
[data-dica] { position: relative; }
[data-dica]:hover::after, [data-dica]:focus-visible::after {
  content: attr(data-dica); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 280px; white-space: normal; text-align: left; z-index: 50;
  background: #000; color: #fff; border: 1px solid #333; border-radius: 6px; padding: 8px 10px;
  font-size: 12.5px; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  pointer-events: none;
}
[data-dica].dica-baixo:hover::after { bottom: auto; top: calc(100% + 8px); }
[data-dica].dica-dir:hover::after { left: auto; right: 0; transform: none; }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 "Lato", Arial, system-ui, sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: 13px; }
h1 { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 4px; border-radius: 4px; }

/* Marca */
.marca { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.marca-icone { width: 28px; height: 28px; border-radius: 6px; background: var(--brand); display: grid; place-items: center; flex: none; }
.marca-icone svg { width: 16px; height: 16px; fill: #101010; }
.marca > span:last-child { text-transform: uppercase; letter-spacing: .04em; font-weight: 900; }
.marca small { text-transform: none; letter-spacing: 0; }
.marca small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; line-height: 1.2; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.btn.primario { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primario:hover { opacity: .9; }
.btn.perigo { color: var(--err); }
.btn.perigo:hover { border-color: var(--err); }
.btn.pequeno { height: 28px; padding: 0 9px; font-size: 13px; }
.btn.texto { border-color: transparent; background: none; padding: 0 6px; color: var(--ink-2); }
.btn.texto:hover { color: var(--ink); background: var(--surface-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Formulários */
.campo { display: block; margin-top: 14px; }
.campo > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.campo > small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 4px; }
input, select, textarea {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.linha { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .linha { grid-template-columns: 1fr; } }

/* Status: ponto + texto (sem pílulas coloridas) */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.ok::before { background: var(--ok); }
.status.warn::before { background: var(--warn); }
.status.err::before { background: var(--err); }
.status.err { color: var(--err); }

/* Tabelas */
.tabela { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.acoes { text-align: right; white-space: nowrap; }
td.acoes .btn + .btn { margin-left: 4px; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: var(--surface-2); }
.vazio { padding: 28px 14px; text-align: center; color: var(--ink-3); }

/* Blocos */
.bloco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.bloco-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bloco-corpo { padding: 16px; }
.secao { margin-top: 28px; }
.secao-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

/* Diálogos */
dialog { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dlg-cab { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dlg-corpo { padding: 4px 18px 18px; }
.dlg-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 8px 8px; }

.aviso { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.aviso.erro { border-color: var(--err); color: var(--err); background: transparent; }
.aviso.ok { border-color: var(--ok); color: var(--ok); background: transparent; }

.copiar { display: flex; gap: 6px; margin-top: 8px; }
.copiar input { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: var(--radius); font-size: 13px; z-index: 60; }

/* Páginas de acesso (login, senha) */
.pagina-acesso { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.cartao-acesso { width: 100%; max-width: 380px; }
.cartao-acesso .marca { margin-bottom: 28px; }
.cartao-acesso h1 { margin-bottom: 6px; }
.cartao-acesso .btn.primario { width: 100%; height: 40px; margin-top: 20px; }
.cartao-acesso .rodape { margin-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.qr-suporte { margin: 0; text-align: center; flex: none; }
.qr-suporte img { display: block; width: 120px; height: 120px; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 auto; }
.qr-suporte figcaption { font-size: 12px; color: var(--ink-3); max-width: 140px; margin-top: 6px; }

/* Ajustes da identidade do site */
.btn.primario { font-weight: 700; }
.btn.primario:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--primary-ink); }
input, select, textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
::placeholder { color: #666; }
[data-dica].dica-lado:hover::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }
@media (max-width: 860px) { [data-dica].dica-lado:hover::after { display: none; } }
