/* ===== Design Tokens ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-violet: #8b5cf6;
  --accent-indigo: #6366f1;

  --phase-a: #8b5cf6;
  --phase-a-bg: rgba(139, 92, 246, 0.12);
  --phase-a-border: rgba(139, 92, 246, 0.3);
  --phase-b: #f59e0b;
  --phase-b-bg: rgba(245, 158, 11, 0.12);
  --phase-b-border: rgba(245, 158, 11, 0.3);
  --phase-c: #10b981;
  --phase-c-bg: rgba(16, 185, 129, 0.12);
  --phase-c-border: rgba(16, 185, 129, 0.3);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
  --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

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

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-default: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 182, 212, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139, 92, 246, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ===== Layout ===== */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ===== Header ===== */
.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.5), transparent);
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.dashboard-header .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Progress Overview ===== */
.progress-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.progress-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-default), border-color var(--transition-default);
}

.progress-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.progress-card .card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.progress-card .card-value {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-card .card-value.phase-a { color: var(--phase-a); }
.progress-card .card-value.phase-b { color: var(--phase-b); }
.progress-card .card-value.phase-c { color: var(--phase-c); }
.progress-card .card-value.total { 
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-bar-container {
  margin-top: 0.75rem;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--transition-slow);
  min-width: 0;
}

.progress-bar-fill.phase-a { background: linear-gradient(90deg, var(--phase-a), #a78bfa); }
.progress-bar-fill.phase-b { background: linear-gradient(90deg, var(--phase-b), #fbbf24); }
.progress-bar-fill.phase-c { background: linear-gradient(90deg, var(--phase-c), #34d399); }
.progress-bar-fill.total { background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); }

/* ===== Controls Bar ===== */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.controls-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.controls-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--accent-blue);
}

.action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.action-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.action-btn.danger:hover {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.08);
}

/* ===== Timeline Visual ===== */
.timeline-visual {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
}

.timeline-visual h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-track {
  display: flex;
  align-items: stretch;
  min-height: 80px;
  position: relative;
  gap: 2px;
}

.timeline-segment {
  flex: 1;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  cursor: default;
}

.timeline-segment:hover {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-segment .period-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.timeline-segment .bar {
  flex: 1;
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.timeline-segment .bar::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity var(--transition-fast);
}

.timeline-segment:hover .bar::before {
  opacity: 1;
}

.timeline-segment .bar.phase-a {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.timeline-segment .bar.phase-b {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline-segment .bar.phase-c {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.timeline-segment .bar.empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

.timeline-segment .date-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  white-space: nowrap;
}

.today-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-rose);
  z-index: 10;
  pointer-events: none;
}

.today-indicator::before {
  content: 'OGGI';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-rose);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===== Phase Sections ===== */
.phase-section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.4s ease-out both;
}

.phase-section:nth-child(2) { animation-delay: 0.1s; }
.phase-section:nth-child(3) { animation-delay: 0.2s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.phase-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.phase-header .phase-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phase-header .phase-badge.phase-a {
  background: var(--phase-a-bg);
  color: var(--phase-a);
  border: 1px solid var(--phase-a-border);
}
.phase-header .phase-badge.phase-b {
  background: var(--phase-b-bg);
  color: var(--phase-b);
  border: 1px solid var(--phase-b-border);
}
.phase-header .phase-badge.phase-c {
  background: var(--phase-c-bg);
  color: var(--phase-c);
  border: 1px solid var(--phase-c-border);
}

.phase-header .phase-info {
  flex: 1;
}

.phase-header .phase-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.phase-header .phase-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.phase-header .phase-progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.phase-header .collapse-icon {
  color: var(--text-muted);
  transition: transform var(--transition-default);
  font-size: 1.2rem;
}

.phase-header .collapse-icon.collapsed {
  transform: rotate(-90deg);
}

.phase-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.5rem;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition-default);
}

.phase-content.collapsed {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* ===== Task Cards ===== */
.task-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-default);
  position: relative;
}

.task-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.task-card.completed {
  opacity: 0.6;
}

.task-card.completed:hover {
  opacity: 0.85;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Checkbox */
.task-checkbox {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

.task-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.task-checkbox .checkmark {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-checkbox .checkmark::after {
  content: '✓';
  color: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.task-checkbox input:checked + .checkmark {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.task-checkbox input:checked + .checkmark::after {
  color: white;
}

.task-checkbox input:hover + .checkmark {
  border-color: var(--border-hover);
}

/* Task Body */
.task-body {
  min-width: 0;
}

.task-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.task-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
}

.task-step.phase-a .step-number { background: var(--phase-a-bg); color: var(--phase-a); }
.task-step.phase-b .step-number { background: var(--phase-b-bg); color: var(--phase-b); }
.task-step.phase-c .step-number { background: var(--phase-c-bg); color: var(--phase-c); }

.task-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.task-details {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid;
}

.meta-tag.time {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.meta-tag.responsible {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-violet);
}

.meta-tag.date-range {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

/* Task Actions */
.task-actions {
  display: flex;
  gap: 0.4rem;
  align-items: start;
  margin-top: 2px;
}

.task-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.task-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.task-action-btn.has-note {
  color: var(--accent-amber);
}

/* Notes Area */
.task-notes {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.task-notes textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.task-notes textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.task-notes textarea::placeholder {
  color: var(--text-muted);
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.note-save-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent-blue);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.note-save-btn:hover {
  background: #2563eb;
}

.note-cancel-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.note-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.note-preview {
  padding: 0.5rem 0.75rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.note-preview:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-default);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.success::before {
  content: '✓ ';
  color: var(--accent-emerald);
  font-weight: 700;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-default);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-default);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.modal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-default);
}

.modal-btn.cancel {
  background: transparent;
  color: var(--text-secondary);
}

.modal-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.modal-btn.confirm {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: white;
}

.modal-btn.confirm:hover {
  background: #e11d48;
}

/* ===== Footer ===== */
.dashboard-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem 0.75rem 2rem;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  .progress-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-left, .controls-right {
    justify-content: center;
  }

  .task-card {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .task-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .timeline-track {
    min-width: 700px;
  }
}

@media (max-width: 480px) {
  .progress-overview {
    grid-template-columns: 1fr;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Animations ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.saving-indicator {
  animation: pulse 1.5s infinite;
}
