/* ========== STATUS STYLES ========== */

/* Status message */
.status {
  font-size: var(--font-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status--saved {
  color: var(--status-success);
}

/* ========== STATUS INDICATORS ========== */
.status-indicator {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-md);
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 700;
}

.status-indicator--on-track {
  background: rgba(34, 197, 94, 0.2);
  color: var(--status-success);
}

.status-indicator--behind {
  background: rgba(239, 68, 68, 0.2);
  color: var(--status-error);
  animation: behindPulse 2s ease-in-out infinite;
}

@keyframes behindPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status-indicator--ahead {
  background: rgba(59, 130, 246, 0.2);
  color: var(--status-info);
}

.status-indicator--complete {
  background: rgba(34, 197, 94, 0.3);
  color: var(--status-success);
}

.status-indicator--not-started {
  background: rgba(100, 100, 100, 0.25);
  color: var(--text-secondary);
}

/* ========== PROGRESS STATS ========== */
.progress-stats {
  font-size: var(--font-base);
  color: var(--text-secondary);
  margin-left: var(--spacing-lg);
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

/* ========== VARIANCE CARD ========== */
.variance-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xs) 10px;
  background: transparent;
  border: none;
}

.variance-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.variance-stat__value {
  font-size: var(--font-md);
  font-weight: 600;
}

.variance-stat__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.variance-stat--planned .variance-stat__value {
  color: var(--text-secondary);
}

.variance-stat--reality .variance-stat__value {
  color: var(--text-secondary);
}

.variance-stat--diff .variance-stat__value {
  color: var(--text-muted);
}

.variance-stat--diff.variance-stat--behind .variance-stat__value {
  color: var(--status-error);
}

.variance-stat--diff.variance-stat--ahead .variance-stat__value {
  color: var(--status-success);
}

/* ========== BACKUP INDICATOR ========== */
.backup-indicator {
  font-size: var(--font-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.backup-indicator::before {
  content: '\u25CF';
  color: var(--status-success);
  font-size: 8px;
}

/* ========== PRIORITY BADGES ========== */
.priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 6px;
  flex-shrink: 0;
}

.priority-badge--high {
  background: #dc2626;
  color: #fff;
}

.priority-badge--medium {
  background: #f59e0b;
  color: #000;
}

.priority-badge--low {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ========== ASSIGNEE DISPLAY ========== */
.task-assignee {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-left: 6px;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.task-assignee::before {
  content: '@';
  opacity: 0.6;
}

/* ========== NOTES INDICATOR ========== */
.task-notes-icon {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-left: var(--spacing-xs);
  cursor: help;
  flex-shrink: 0;
}

.task-notes-icon:hover {
  color: var(--text-secondary);
}

/* ========== MILESTONE MARKERS ========== */
.task-row--milestone > div:first-child {
  position: relative;
}

.milestone-marker {
  width: 14px;
  height: 14px;
  background: var(--status-warning);
  transform: rotate(45deg);
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.task-row--milestone .task-name-text {
  font-weight: 600;
  color: var(--status-warning);
}
