/* timelines.css - Timeline visualization styles */

.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e5e7eb;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

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

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #d1d5db;
  z-index: 1;
}

.timeline-marker.active {
  border-color: #2563eb;
  background-color: #2563eb;
}

.timeline-marker.completed {
  border-color: #22c55e;
  background-color: #22c55e;
}

.timeline-marker.pending {
  border-color: #f59e0b;
  background-color: #fef3c7;
}

.timeline-content {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 1rem;
  transition: box-shadow 0.15s;
}

.timeline-content:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.timeline-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Incident timeline card */
.incident-timeline {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.incident-timeline-header {
  background-color: #f9fafb;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.incident-timeline-title {
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.incident-timeline-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.incident-timeline-body {
  padding: 1.5rem;
}

/* Timeline filter controls */
.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.timeline-filter {
  padding: 0.375rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.15s;
}

.timeline-filter:hover {
  background-color: #f9fafb;
}

.timeline-filter.active {
  background-color: #37352f;
  color: white;
  border-color: #37352f;
}

/* Progress indicator */
.timeline-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.timeline-progress-bar {
  flex: 1;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  background-color: #22c55e;
  transition: width 0.3s;
}
