/* Botões — variantes de ação (primary, ghost, danger) e tamanhos */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tamanho compacto */
.btn.btn-sm {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Primary — ação principal, acento de Monitoramento */
.btn-primary {
  background: var(--mon);
  border-color: var(--mon);
  color: var(--text-hi);
}
.btn-primary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--mon);
  color: var(--text-hi);
}

/* Ghost — ação secundária, sobre superfície neutra */
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: var(--text-hi);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-hi);
}

/* Danger — ação destrutiva ou de reconhecimento de estado crítico */
.btn-danger {
  background: var(--crit);
  border-color: var(--crit);
  color: var(--text-hi);
}
.btn-danger:hover:not(:disabled) {
  background: var(--crit-hi);
  border-color: var(--crit-hi);
}
