.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn--small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn--medium {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn--large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--color-primary-dark);
}

.btn--secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover:not(:disabled) {
  background-color: var(--color-bg);
}

.btn--danger {
  background-color: var(--color-danger);
  color: white;
}

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

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
}

.btn--ghost:hover:not(:disabled) {
  background-color: var(--color-bg);
}

.btn--full-width {
  width: 100%;
}

.btn--loading {
  position: relative;
}

.btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn__icon {
  display: flex;
  align-items: center;
}

.btn__text {
  display: inline-block;
}

