/* ==========================================================================
   Shared status styles still used outside the Auto Email tab
   (dashboard activity list, professor-card contact badges, manual email
   status pills and filter chips). The Auto Email tab itself is styled by
   campaigns.css.
   ========================================================================== */

.status-filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.status-filter-chip:hover {
  border-color: var(--text-muted);
}

.status-filter-chip.active {
  background: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.queued {
  background: #f5f5f5;
  color: #777777;
  border: 1px solid #dddddd;
}

.status-pill.sending {
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid #0a0a0a;
  animation: pulseBlack 1.5s infinite;
}

.status-pill.sent {
  background: #f0f0f0;
  color: #222222;
  border: 1px solid #cccccc;
}

.status-pill.failed {
  background: #f5f5f5;
  color: #555555;
  border: 1px solid #dddddd;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.status-pill.sent {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.status-pill.failed {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.status-pill.queued {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.status-pill.sending {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
}

.badge-contact-sent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-already-emailed {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* List status badges on the dashboard (class built as badge-status-<status>) */

.badge-status-active {
  background: #0a0a0a;
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-status-draft {
  background: #f0f0f0;
  color: #444444;
  border: 1px solid #e0e0e0;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-status-paused {
  background: #f5f5f5;
  color: #555555;
  border: 1px solid #cccccc;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-status-completed {
  background: #0a0a0a;
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Dashboard queue status dot (animation set from JS) */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Free send windows: start / end time rows */
.ae-windows { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 100%; }
.ae-window-row { display: flex; align-items: center; gap: 0.5rem; }
.ae .ae-window-row .ae-time { width: 8.5rem; flex: 0 1 8.5rem; min-width: 6.5rem; padding: 0.45rem 0.6rem; }
.ae-window-row > span { font-size: 0.85rem; color: var(--text-secondary); }
.ae-window-row .ae-icon-btn[hidden] { display: none; }
.ae-window-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ae-window-actions [hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
