/* ============================================================
   タイムライン（作業ログ型）— data-timeline-1.css
   ============================================================ */

:root {
  --tl-done:     #22C55E;
  --tl-progress: #3B82F6;
  --tl-hold:     #F59E0B;
  --tl-line:     #E2E8F0;
  --tl-hover:    #F8FAFC;
}

/* ---- デモラッパー ---- */
.tl-demo-wrap {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--tl-line);
  border-radius: 10px;
  padding: 20px 24px;
}

/* ---- コンテナ ---- */
.tl {
  position: relative;
  padding-left: 28px;
}

/* 縦ライン（コンテナ側で1本描画） */
.tl::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 4px;
  width: 2px;
  background: var(--tl-line);
  border-radius: 1px;
}

/* ---- 各アイテム ---- */
.tl-item {
  position: relative;
  padding: 4px 8px 24px 16px;
  border-radius: 6px;
  transition: background 0.1s;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item:hover {
  background: var(--tl-hover);
}

/* ---- ステータスドット ---- */
.tl-dot {
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CBD5E1;
}

.tl-item[data-status="done"]     .tl-dot { background: var(--tl-done); }
.tl-item[data-status="progress"] .tl-dot {
  background: var(--tl-progress);
  animation: tl-pulse 1.5s ease-in-out infinite;
}
.tl-item[data-status="hold"]     .tl-dot { background: var(--tl-hold); }

@keyframes tl-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ---- 日時 ---- */
.tl-date {
  display: block;
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 4px;
}

/* ---- タスク名 ---- */
.tl-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
  color: #1A2533;
}

/* ---- 担当者＋バッジ ---- */
.tl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-assignee {
  font-size: 13px;
  color: #64748B;
}

/* ---- ステータスバッジ ---- */
.tl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #CBD5E1;
}

.tl-badge[data-status="done"]     { background: var(--tl-done); }
.tl-badge[data-status="progress"] { background: var(--tl-progress); }
.tl-badge[data-status="hold"]     { background: var(--tl-hold); }

