/* ===== TIMELINE VISUALIZATION STYLES ===== */

/* Execution Timeline Styling */
.execution-timeline {
  position: relative;
  width: 100%;
  height: 32px;
  background: #f8f9fa;
  border-radius: 4px;
  overflow: visible;
  border: 1px solid #e9ecef;
}

.execution-bar-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.execution-bar {
  position: absolute;
  height: 26px;
  top: 2px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0 6px;
  min-width: 2px;
}

.execution-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  height: 30px;
  top: 0;
}

.execution-time-label {
  color: white;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SVG TIMELINE HIGHLIGHT STYLES ===== */

/* Invocation highlight on hover/selection */
.invocation-highlight rect,
.invocation-highlight circle {
  stroke: #0d6efd;
  stroke-width: 3;
  filter: drop-shadow(0 0 4px rgba(13, 110, 253, 0.5));
}

/* Runner lane highlight — applied to lane-bg rects matching a runner_id */
.lane-bg.runner-highlight {
  fill: #0d6efd !important;
  opacity: 0.12 !important;
}

/* Runner label highlight */
.runner-label.runner-highlight {
  font-weight: 700 !important;
  fill: #0d6efd !important;
}

/* Cursor for hoverable SVG elements */
svg [data-invocation-id] {
  cursor: pointer;
}
svg .runner-label {
  cursor: pointer;
}
