/* ============================================
   PROJECT MANAGEMENT SITE - FEMININE SOFT THEME
   ============================================ */

:root {
  /* Feminine Color Palette */
  --color-cream: #f0eae0;
  --color-sand: #ead4d4;
  --color-terracotta: #c6b4d8;
  --color-terracotta-dark: #a894bc;
  --color-clay: #9a8a9e;
  --color-earth: #6d5c7a;
  --color-charcoal: #4a4252;
  --color-teal: #cee0e6;
  --color-teal-dark: #9bbac5;
  --color-sage: #f5c0bf;

  /* Status Colors */
  --color-completed: #b8d4be;
  --color-in-progress: #c6b4d8;
  --color-pending: #ead4d4;
  --color-deferred: #c4c4c4;

  /* Miki's color - Soft Pink */
  --color-miki: #f5c0bf;
  --color-miki-light: rgba(245, 192, 191, 0.25);

  /* Donavan's color - Light Blue */
  --color-donavan: #9bbac5;
  --color-donavan-light: rgba(206, 224, 230, 0.4);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(61, 61, 61, 0.05);
  --shadow-md: 0 4px 6px rgba(61, 61, 61, 0.07);
  --shadow-lg: 0 10px 15px rgba(61, 61, 61, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-earth);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-teal-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-earth);
}

/* ============================================
   LAYOUT
   ============================================ */

.site-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--color-sand);
  border-right: 1px solid rgba(107, 78, 61, 0.1);
  padding: var(--space-lg);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-earth);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-terracotta);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: var(--space-xs);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-charcoal);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover {
  background: rgba(212, 165, 116, 0.2);
  color: var(--color-earth);
}

.sidebar-nav a.active {
  background: var(--color-terracotta);
  color: white;
}

.sidebar-nav .nav-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.main-content {
  flex: 1;
  margin-left: 240px;
  padding: var(--space-xl);
  max-width: calc(100vw - 240px);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-sand);
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--color-clay);
  margin-top: var(--space-xs);
}

/* ============================================
   DASHBOARD GRID
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-terracotta);
}

.stat-card.teal {
  border-left-color: var(--color-teal);
}

.stat-card.sage {
  border-left-color: var(--color-sage);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-earth);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-clay);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   PROJECT COMPLETION HEADER
   ============================================ */

.completion-header {
  background: linear-gradient(135deg, var(--color-earth) 0%, var(--color-clay) 100%);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
}

.completion-dates {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.completion-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.completion-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.completion-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.completion-value.changed {
  color: var(--color-terracotta);
  background: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.completion-days {
  text-align: right;
}

.completion-days .days-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.completion-days .days-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.reschedule-notification {
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  margin-top: var(--space-sm);
  width: 100%;
}

.reschedule-notification strong {
  color: var(--color-terracotta);
  background: white;
  padding: 1px 4px;
  border-radius: 2px;
}

/* Task due date in task list */
.task-due-date {
  font-size: 0.75rem;
  color: var(--color-clay);
  margin-left: var(--space-sm);
}

.task-due-date.overdue {
  color: #d4787a;
  font-weight: 600;
}

.task-due-date.today {
  color: var(--color-terracotta);
  font-weight: 600;
}

/* ============================================
   EXPANDABLE SECTIONS
   ============================================ */

.expandable {
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--color-sand);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}

.expandable-header:hover {
  background: rgba(212, 165, 116, 0.3);
}

.expandable-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.expandable-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.expandable.open .expandable-icon {
  transform: rotate(180deg);
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.expandable.open .expandable-content {
  max-height: 2000px;
}

.expandable-inner {
  padding: var(--space-md);
  background: white;
}

/* ============================================
   GANTT CHART
   ============================================ */

.gantt-container {
  overflow-x: auto;
  margin: var(--space-md) 0;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-sand);
}

.gantt-chart {
  min-width: 800px;
  position: relative;
}

/* Header wrapper for multi-row header */
.gantt-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-sand);
  border-bottom: 2px solid var(--color-clay);
}

.gantt-header-row {
  display: flex;
  border-bottom: 1px solid rgba(107, 78, 61, 0.15);
}

.gantt-header-row:last-child {
  border-bottom: none;
}

.gantt-header-label {
  background: var(--color-sand);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-earth);
  display: flex;
  align-items: center;
}

/* Month row */
.gantt-month-row .gantt-cells {
  display: flex;
}

.gantt-month-cell {
  flex: 1;
  min-width: 30px;
  padding: 4px 2px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-earth);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(107, 78, 61, 0.1);
}

.gantt-month-cell.today {
  background: rgba(212, 165, 116, 0.3);
}

/* Day of week row */
.gantt-dow-row .gantt-cells {
  display: flex;
}

.gantt-dow-cell {
  flex: 1;
  min-width: 30px;
  padding: 2px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-clay);
  border-right: 1px solid rgba(107, 78, 61, 0.1);
}

.gantt-dow-cell.weekend {
  color: var(--color-terracotta-dark);
}

.gantt-dow-cell.today {
  background: var(--color-terracotta);
  color: white;
}

/* Day number row */
.gantt-day-row .gantt-cells {
  display: flex;
}

.gantt-day-cell {
  flex: 1;
  min-width: 30px;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
  border-right: 1px solid rgba(107, 78, 61, 0.1);
}

.gantt-day-cell.weekend {
  color: var(--color-clay);
}

.gantt-day-cell.today {
  background: var(--color-terracotta);
  color: white;
  font-weight: 700;
}

/* Week shading - alternating */
.week-even {
  background-color: rgba(245, 235, 224, 0.5);
}

.week-odd {
  background-color: rgba(253, 248, 243, 0.8);
}

.gantt-dow-cell.today,
.gantt-day-cell.today,
.gantt-month-cell.today {
  background: var(--color-terracotta) !important;
  color: white !important;
}

/* Legacy header cell (for backwards compatibility) */
.gantt-header {
  display: flex;
  border-bottom: 2px solid var(--color-sand);
  background: var(--color-sand);
  position: sticky;
  top: 0;
  z-index: 10;
}

.gantt-header-cell {
  flex: 1;
  min-width: 30px;
  padding: var(--space-sm) var(--space-xs);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-clay);
  border-right: 1px solid rgba(107, 78, 61, 0.1);
}

.gantt-header-cell.weekend {
  background: rgba(212, 165, 116, 0.1);
}

.gantt-header-cell.today {
  background: var(--color-terracotta);
  color: white;
}

.gantt-row-label {
  width: 200px;
  min-width: 200px;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  border-right: 2px solid var(--color-sand);
  background: var(--color-cream);
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.gantt-row {
  display: flex;
  border-bottom: 1px solid var(--color-sand);
  min-height: 36px;
  align-items: center;
}

.gantt-row:hover {
  background: rgba(212, 165, 116, 0.05);
}

.gantt-row.phase-row {
  background: var(--color-sand);
}

.gantt-row.phase-row .gantt-row-label {
  font-weight: 700;
  color: var(--color-earth);
  background: var(--color-sand);
}

.gantt-cells {
  display: flex;
  flex: 1;
  position: relative;
  height: 36px;
}

.gantt-cell {
  flex: 1;
  min-width: 30px;
  border-right: 1px solid rgba(107, 78, 61, 0.05);
  position: relative;
}

.gantt-cell.weekend {
  background: rgba(212, 165, 116, 0.05);
}

.gantt-cell.today {
  background: rgba(212, 165, 116, 0.15);
}

.gantt-bar {
  position: absolute;
  height: 20px;
  top: 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  padding: 0 var(--space-sm);
  font-size: 0.7rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-bar:hover {
  transform: scaleY(1.1);
  box-shadow: var(--shadow-md);
}

.gantt-bar.miki {
  background: var(--color-miki);
}

.gantt-bar.donavan {
  background: var(--color-donavan);
}

.gantt-bar.completed {
  background: var(--color-completed);
}

.gantt-bar.in-progress {
  background: linear-gradient(90deg, var(--color-completed) var(--progress), var(--color-in-progress) var(--progress));
}

.gantt-bar.deferred {
  background: var(--color-deferred);
  opacity: 0.5;
}

.gantt-bar.rescheduled {
  border: 2px dashed rgba(255, 255, 255, 0.6);
  animation: pulse-reschedule 2s ease-in-out infinite;
}

@keyframes pulse-reschedule {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Dependency arrows */
.gantt-dependency {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.gantt-dependency path {
  fill: none;
  stroke: var(--color-clay);
  stroke-width: 1.5;
  opacity: 0.4;
}

.gantt-dependency path.arrow-head {
  fill: var(--color-clay);
  stroke: none;
}

/* ============================================
   TASK LIST
   ============================================ */

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-sand);
  transition: background var(--transition-fast);
}

.task-item:hover {
  background: rgba(212, 165, 116, 0.05);
}

.task-item:last-child {
  border-bottom: none;
}

.task-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-clay);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-top: 2px;
}

.task-checkbox:hover {
  border-color: var(--color-terracotta);
  background: rgba(212, 165, 116, 0.1);
}

.task-checkbox.checked {
  background: var(--color-completed);
  border-color: var(--color-completed);
}

.task-checkbox.checked::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-name {
  font-weight: 500;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.task-name.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-sand);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-clay);
  transition: all var(--transition-fast);
}

.task-info-btn:hover {
  background: var(--color-terracotta);
  color: white;
}

.task-meta {
  font-size: 0.8rem;
  color: var(--color-clay);
}

.task-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.task-btn {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.task-btn:hover {
  background: var(--color-sand);
}

.task-btn.in-progress {
  background: var(--color-in-progress);
  border-color: var(--color-in-progress);
  color: white;
}

.task-btn.deferred {
  background: var(--color-deferred);
  border-color: var(--color-deferred);
  color: white;
}

/* ============================================
   PHASE CATEGORY
   ============================================ */

.phase-category {
  margin-bottom: var(--space-xl);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-sand);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--color-sand);
}

.phase-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-terracotta);
}

.phase-indicator.miki {
  background: var(--color-miki);
}

.phase-indicator.donavan {
  background: var(--color-donavan);
}

.phase-title {
  margin: 0;
  font-size: 1rem;
}

.phase-progress {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--color-clay);
}

.phase-tasks {
  border: 1px solid var(--color-sand);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: white;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 61, 61, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-sand);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-sand);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-clay);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-terracotta);
  color: white;
}

.modal-body {
  padding: var(--space-lg);
}

.modal-section {
  margin-bottom: var(--space-lg);
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-clay);
  margin-bottom: var(--space-sm);
}

.modal-section ul {
  margin: 0;
  padding-left: var(--space-lg);
}

.modal-section li {
  margin-bottom: var(--space-xs);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
}

.btn-secondary {
  background: var(--color-sand);
  color: var(--color-earth);
}

.btn-secondary:hover {
  background: rgba(212, 165, 116, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-sand);
  color: var(--color-charcoal);
}

.btn-outline:hover {
  background: var(--color-sand);
}

/* ============================================
   INFO GRID (for overview)
   ============================================ */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.info-item {
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-md);
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-clay);
  margin-bottom: var(--space-xs);
}

.info-value {
  font-weight: 600;
  color: var(--color-earth);
}

/* ============================================
   FUNNEL VISUAL
   ============================================ */

.funnel-visual {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-x: auto;
}

.funnel-stage {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-sand);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-width: 100px;
}

.funnel-arrow {
  color: var(--color-clay);
  font-size: 1.25rem;
}

/* ============================================
   LEGEND
   ============================================ */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
}

.legend-color.miki {
  background: var(--color-miki);
}

.legend-color.donavan {
  background: var(--color-donavan);
}

.legend-color.completed {
  background: var(--color-completed);
}

.legend-color.in-progress {
  background: var(--color-in-progress);
}

.legend-color.deferred {
  background: var(--color-deferred);
}

/* ============================================
   TAGS
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tag-miki {
  background: var(--color-miki-light);
  color: #c4918f;
}

.tag-donavan {
  background: var(--color-donavan-light);
  color: #6a909b;
}

.tag-completed {
  background: rgba(184, 212, 190, 0.3);
  color: #6a9172;
}

.tag-in-progress {
  background: rgba(198, 180, 216, 0.25);
  color: var(--color-terracotta-dark);
}

.tag-deferred {
  background: rgba(196, 196, 196, 0.3);
  color: #777;
}

/* ============================================
   MILESTONE MARKERS
   ============================================ */

.milestone-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 2px solid var(--color-sage);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.milestone-icon {
  width: 20px;
  height: 20px;
  background: var(--color-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.milestone-item.reached {
  background: var(--color-sage);
  color: white;
}

.milestone-item.reached .milestone-icon {
  background: white;
}

.milestone-item.reached .milestone-icon::after {
  background: var(--color-sage);
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.settings-section {
  margin-bottom: var(--space-xl);
}

.settings-section h3 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-sand);
}

.timing-editor {
  font-family: var(--font-mono);
  width: 100%;
  min-height: 400px;
  padding: var(--space-md);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

.file-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
    max-width: calc(100vw - 200px);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(107, 78, 61, 0.1);
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .sidebar-nav li {
    margin-bottom: 0;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: var(--space-md);
  }

  .site-wrapper {
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .gantt-row-label {
    width: 120px;
    min-width: 120px;
    font-size: 0.75rem;
  }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
  }

  .btn, .task-btn {
    display: none;
  }
}
