/* Tokens compartilhados entre o painel (celular) e a tela de TV.
   Fonte canonica - nao duplicar cores nos arquivos de cada app. */
:root {
  --bg: #0b1020;
  --bg-2: #121a2e;
  --surface: #182238;
  --surface-2: #202c47;
  --line: #2c3a5c;
  --text: #f2f5fb;
  --muted: #93a1bf;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --warn: #f59e0b;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.15);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface-2);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  transition: filter 0.12s ease, transform 0.06s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.15);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.primary {
  background: var(--accent);
  color: #04210f;
}

button.danger {
  background: var(--danger);
  color: #fff;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

input,
select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  width: 100%;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.18s ease;
}

.toast.erro {
  background: var(--danger);
  border-color: var(--danger);
}

.toast.ok {
  background: var(--accent);
  border-color: var(--accent);
  color: #04210f;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
