@charset "UTF-8";

.timeline-container {
  background: var(--surface-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow-subtle);
  padding: 1.25rem 1.5rem;
  max-height: 520px;
  overflow-y: auto;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(15, 23, 42, 0.15));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 48px;
  width: 4px;
  height: calc(100% - 48px);
  background: rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:hover::after {
  opacity: 1;
}

.timeline-bullet {
  position: absolute;
  left: -1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-panel);
  border: 2px solid rgba(59, 130, 246, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-bullet {
  transform: translateY(-2px);
}

.timeline-card {
  flex: 1;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface-panel), var(--surface-panel));
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow-subtle);
}

.timeline-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.timeline-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.timeline-description {
  margin: 0;
  color: var(--text-secondary);
}

.timeline-content,
.timeline-changes,
.timeline-changes .table-responsive {
  width: 100%;
}

.timeline-changes .table {
  width: 100%;
  background: var(--color-dt-surface, var(--surface-panel));
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg, 6px);
  overflow: hidden;
  margin-bottom: 0;
}

.timeline-changes .table thead th,
.timeline-changes .table tbody td {
  padding: 10px 14px;
  vertical-align: top;
}

.timeline-changes .table thead th {
  font-weight: 600;
  color: var(--neutral-700, var(--text-primary));
  border: none;
}

.timeline-changes .table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--neutral-200, var(--border-default));
}

.timeline-changes .table tbody td:first-child {
  font-weight: 600;
  color: var(--neutral-700, var(--text-primary));
  width: 30%;
}

.timeline-changes .table tbody td:nth-child(2),
.timeline-changes .table tbody td:nth-child(4) {
  word-break: break-word;
}

.timeline-smile {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes timelineLift {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item {
  animation: timelineLift 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
  animation-delay: 0.05s;
}

.timeline-item:nth-child(even) {
  animation-delay: 0.12s;
}
