/* timeline.css — Styles für die Timeline-Ansicht */

/* ── Filter-Toggle (form-row) ───────────────────────────────── */
.tl-filter {
  display: flex;
  gap: 4px;
}

.tl-filter-btn {
  background: transparent;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.tl-filter-btn:hover {
  border-color: #475569;
  color: #94a3b8;
}

.tl-filter-btn.active {
  background: #1e293b;
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ── Liste ──────────────────────────────────────────────────── */
.tl-list {
  display: flex;
  flex-direction: column;
}

/* ── Einzelne Zeile ─────────────────────────────────────────── */
.tl-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #1e293b;
  transition: background 0.1s;
}

.tl-row:hover {
  background: #0f172a;
}

/* ── Timestamp ──────────────────────────────────────────────── */
.tl-time {
  color: #475569;
  flex-shrink: 0;
  font-family: monospace;
  font-size: 11px;
  width: 130px;
}

/* ── Hauptbereich: Stakeholder + Richtung ───────────────────── */
.tl-main {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.tl-sh {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Richtungs-Badge ────────────────────────────────────────── */
.tl-dir {
  border-radius: 3px;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  text-transform: uppercase;
}

.tl-dir-i { background: #1e3a5f; color: #60a5fa; }
.tl-dir-o { background: #2e1a3f; color: #c084fc; }

/* ── Status-Badge ───────────────────────────────────────────── */
.tl-status-badge {
  border-radius: 3px;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.tl-status-open  { background: #2d1f00; color: #fbbf24; }
.tl-status-done  { background: #0e2218; color: #4ade80; }
.tl-status-other { background: #1e293b; color: #64748b; }

/* ── Detail-Tooltip (hover) ─────────────────────────────────── */
.tl-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 16px;
  z-index: 100;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 10px 14px;
  width: max-content;
  max-width: 400px;
  pointer-events: none;
}

.tl-row:hover .tl-tooltip {
  display: block;
}

.tl-tt-row {
  display: flex;
  gap: 12px;
  font-size: 11px;
  line-height: 1.8;
}

.tl-tt-label {
  color: #475569;
  font-weight: 700;
  width: 80px;
  flex-shrink: 0;
}

.tl-tt-row span:last-child {
  color: #cbd5e1;
}

/* ── Leerzustand ────────────────────────────────────────────── */
.tl-empty {
  border: 1.5px dashed #1e293b;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  padding: 32px 16px;
  text-align: center;
}
