/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    opacity 120ms ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* The Slack button is briefly probed before the OAuth redirect. */
.btn.is-busy {
  cursor: progress;
  opacity: 0.7;
  pointer-events: none;
}

.btn-primary {
  border-color: rgba(76, 141, 255, 0.5);
  background: linear-gradient(180deg, #5a97ff, #3578ec);
  color: #fff;
  box-shadow: 0 6px 18px rgba(53, 120, 236, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #6ba2ff, #4083f4);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--muted-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  border-color: rgba(255, 93, 115, 0.45);
  background: rgba(255, 93, 115, 0.1);
  color: #ff9aa8;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 93, 115, 0.18);
}

.btn-small {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
}
