/* widgets/chart/chart.css */

/* Root */
.widget-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Header (project name + phase) */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.chart-project-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.chart-project-phase {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Timeline rows container */
.chart-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Individual phase row */
.chart-row {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Phase header: label + date range */
.chart-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.chart-row-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.chart-row-range {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Progress bar */
.chart-row-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chart-row-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #7cf27c;
  transition: width 0.25s ease-out;
}

/* Status text under bar */
.chart-row-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Empty state */
.chart-empty {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Meta line at bottom of widget */
.chart-meta {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.7;
}