/* ═══════════════════════════════════════════════════════════════ */
/* Rainbow Base — General UI, Animations, Badges, Spinners       */
/* ═══════════════════════════════════════════════════════════════ */

/* Recent Activity: compact by default (3 items), expand with chevron */
.recent-activity-card .recent-activity-list {
  max-height: 11rem;
}

.recent-activity-card.activity-expanded .recent-activity-list {
  max-height: 24rem;
}

/* Activity Category Tabs — Notion-style views */
.activity-cat-tab {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.activity-cat-tab:hover {
  color: #374151;
}

.activity-cat-tab.active {
  color: #111827;
  border-bottom-color: #111827;
  font-weight: 600;
}

/* Toast animations */
.toast {
  animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Tab styles */
.tab-active {
  border-bottom: 2px solid #6366f1;
  color: #6366f1;
  font-weight: 600;
}

/* Help tab: User vs Developer audience switcher */
.help-audience-btn {
  background: transparent;
  color: #6b7280;
}

.help-audience-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.help-audience-btn.active {
  background: #fff;
  color: #6366f1;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Spinner / loader */
.spinner {
  border: 3px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bounce animation */
@keyframes bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Textarea styles */
textarea {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
}

/* Badges */
.badge-warn {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 9999px;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 9999px;
}
