/* recording-schedule.css - Styles for the Recording Schedule admin page */

/* ── Loading state ────────────────────────────────────────── */
.rec-sched-loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #8b949e);
  font-size: 0.9rem;
}

/* ── Stream key checklist ─────────────────────────────────── */
.rec-sched-checklist {
  border: 1px solid var(--border, #30363d);
  border-radius: 6px;
  padding: 8px 12px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
  background: var(--bg-secondary, #161b22);
}

.rec-sched-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle, #21262d);
  font-size: 0.875rem;
}

.rec-sched-checklist-item:last-child {
  border-bottom: none;
}

.rec-sched-checklist-item input[type="checkbox"] {
  flex-shrink: 0;
}

.rec-sched-checklist-item .key-label {
  color: var(--text-primary, #e6edf3);
  font-family: monospace;
  font-size: 0.82rem;
}

.rec-sched-checklist-item .key-lane {
  color: var(--text-muted, #8b949e);
  font-size: 0.8rem;
}

/* ── Manual stream key row ────────────────────────────────── */
.rec-sched-manual-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.rec-sched-manual-row .form-input {
  flex: 1;
}

/* ── Key hint text ────────────────────────────────────────── */
.rec-sched-key-hint {
  font-size: 0.8rem;
  color: var(--text-muted, #8b949e);
  margin-bottom: 8px;
}

/* ── Status badges ────────────────────────────────────────── */
.seg-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seg-status.pending      { background: #1f3a4a; color: #58a6ff; }
.seg-status.processing   { background: #2d2a00; color: #e3b341; }
.seg-status.uploading    { background: #1a2c1a; color: #3fb950; }
.seg-status.complete     { background: #1a2c1a; color: #3fb950; }
.seg-status.failed       { background: #3a1a1a; color: #f85149; }
.seg-status.review_needed { background: #2d1a3a; color: #bc8cff; }

/* ── Lane pair tags in table ─────────────────────────────── */
.rec-sched-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rec-sched-pair-tag {
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--text-secondary, #8b949e);
  white-space: nowrap;
}

/* ── YouTube link in table ───────────────────────────────── */
.yt-link {
  color: #f85149;
  text-decoration: none;
  font-size: 0.82rem;
}

.yt-link:hover {
  text-decoration: underline;
}

/* ── Playlist name cell truncation ──────────────────────── */
.playlist-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-muted, #8b949e);
}

/* ── Error message in segment row ───────────────────────── */
.seg-error {
  font-size: 0.78rem;
  color: #f85149;
  margin-top: 2px;
}
