/* ==========================================================================
   Roadmap & Timeline Styles (Gantt & Milestone Tracking)
   ========================================================================== */

.timeline-view-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.timeline-toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface-elevated);
}

.timeline-split-pane {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 220px);
}

.timeline-sidebar {
  width: 320px;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  background: var(--bg-sidebar);
  flex-shrink: 0;
}

.timeline-sidebar-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-epic-row {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}

.timeline-epic-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-chart-area {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
}

.timeline-time-header {
  height: 48px;
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 5;
}

.timeline-month-col {
  width: 180px;
  min-width: 180px;
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}

.timeline-grid-body {
  position: relative;
  min-height: 400px;
}

.timeline-grid-lines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  pointer-events: none;
}

.timeline-grid-line {
  width: 180px;
  min-width: 180px;
  border-right: 1px dashed var(--border-subtle);
  height: 100%;
}

.timeline-bars-container {
  position: relative;
  z-index: 2;
}

.timeline-bar-row {
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  position: relative;
}

.timeline-bar {
  position: absolute;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.85), rgba(99, 102, 241, 0.85));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
}

.timeline-bar-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.timeline-bar-text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
