*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

a { color: var(--cor-primaria); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all .15s ease;
}

input, select, textarea {
  font-family: var(--font);
  background: var(--cor-fundo-input);
  border: 1.5px solid var(--cor-borda);
  color: var(--cor-texto);
  border-radius: var(--raio);
  padding: 10px 14px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cor-primaria);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* Utilitários */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-muted { color: var(--cor-texto-muted); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.rounded { border-radius: var(--raio); }

/* Badges de status */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-ok { background: rgba(34,197,94,.2); color: var(--cor-sucesso); }
.badge-alerta { background: rgba(245,158,11,.2); color: var(--cor-alerta); }
.badge-perigo { background: rgba(239,68,68,.2); color: var(--cor-perigo); }
.badge-info { background: rgba(59,130,246,.2); color: var(--cor-info); }
