.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}
.w-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-brand);
  color: var(--color-neutral-900);
  &:hover:not(:disabled) {
    background-color: var(--color-brand-hover);
  }
}

.btn-secondary {
  background-color: var(--color-neutral-200);
  color: var(--color-neutral-900);
  &:hover:not(:disabled) {
    background-color: var(--color-neutral-300);
  }
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-brand);
  border-width: 2px;
  padding: calc(0.5rem - 1px) calc(1rem - 1px);
  color: var(--color-neutral-900);
  font-weight: 600;
  &:hover:not(:disabled) {
    background-color: var(--color-brand);
    color: var(--color-neutral-900);
  }
}

.btn-text {
  background-color: transparent;
  color: var(--color-text-muted);
  padding: 0.5rem;
  &:hover:not(:disabled) {
    color: var(--color-text);
  }
}

.btn-ghost {
  background-color: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text);
  &:hover:not(:disabled) {
    background-color: var(--color-surface-muted);
  }
}

.btn-danger {
  background-color: var(--color-danger-500);
  color: #fff;
  &:hover:not(:disabled) {
    background-color: #dc2626;
  }
}
