/* --------------------------------------------------------------------------
 * Core Style Variables & Design Tokens (Dark Theme Focus)
 * -------------------------------------------------------------------------- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --bg-primary: #0a0b10;
  --bg-secondary: #12141c;
  --bg-panel: rgba(22, 25, 38, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Primary Accent & Gradients */
  --accent-color: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --gradient-title: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
  --gradient-stat: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-loved: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  
  /* Stage Colours (Tailored HSL) */
  --color-infancy: #f97316;      /* Orange */
  --color-school: #10b981;       /* Emerald */
  --color-higher-ed: #06b6d4;    /* Cyan */
  --color-retirement: #eab308;   /* Yellow */
  --color-senior: #a855f7;       /* Purple */
  --color-unassigned: #374151;   /* Grey */
  --color-loved-one: #ec4899;    /* Pink */
  
  /* Layout Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
 * Reset & Global Elements
 * -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar Customisation */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #272a3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #373b52;
}

/* --------------------------------------------------------------------------
 * Application Shell Layout
 * -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.logo-area h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-area .legend-label {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
 * Other Loved Ones Stats Card Elements
 * -------------------------------------------------------------------------- */
.other-loved-ones-stats-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  max-height: 280px;
  padding-right: 4px;
  margin-top: 0.5rem;
}

.other-loved-one-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.other-loved-one-stat-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.other-loved-one-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
}

.other-loved-one-header .name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.other-loved-one-header .relation {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.other-loved-one-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.other-loved-one-metrics .metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.other-loved-one-metrics .lbl {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.other-loved-one-metrics .val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-area .subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.quick-stats-row {
  display: flex;
  gap: 2rem;
}

.header-stat {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.header-stat .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.header-stat .stat-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Main Content Container */
.app-content {
  display: flex;
  width: 100%;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 84px - 56px); /* Subtract header and footer height */
}

/* Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
 * Sidebar Controls (Glassmorphic Slide-Out Menu)
 * -------------------------------------------------------------------------- */
.control-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100vh;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  background-color: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-panel.open {
  transform: translateX(0);
}

.drawer-actions {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 99999;
}

.btn-drawer-action {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.btn-drawer-action:hover {
  background: rgba(255,255,255,0.1);
}

/* Docked State for Desktop */
@media (min-width: 1025px) {
  .app-content.docked {
    display: grid;
    grid-template-columns: 350px 1fr;
  }
  .app-content.docked .control-panel {
    position: relative;
    transform: none !important;
    width: 100%;
    height: 100%;
    box-shadow: none;
    border-right: 1px solid var(--border-color);
  }
  .app-content.docked .drawer-backdrop {
    display: none !important;
  }
  .app-content.docked #btnCloseDrawer {
    display: none !important; /* Hide close button when docked */
  }
}

@media (max-width: 1024px) {
  .app-content {
    height: auto;
    overflow: visible;
  }
  .drawer-backdrop {
    top: 0;
    height: 100vh;
    z-index: 9999;
  }
  .control-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    border-radius: 24px 24px 0 0;
    border-right: none;
    border-top: 1px solid var(--border-color);
    transform: translateY(100%);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
    z-index: 10000;
    padding-top: 4rem; /* leave space for the X button */
  }
  .control-panel.open {
    transform: translateY(0);
  }
  .drawer-actions {
    top: 1rem;
    right: 1.5rem;
    position: fixed; /* Keep it visible even when scrolling on mobile */
  }
  .btn-dock-drawer {
    display: none !important;
  }
}

.panel-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  transition: border-color var(--transition-normal);
}

.panel-section:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-section h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.section-icon {
  font-size: 1.2rem;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.section-header-row h2 {
  margin-bottom: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group.half {
  flex: 1;
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

input[type="date"],
input[type="number"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: rgba(0, 0, 0, 0.3);
}

/* Range Inputs */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-value {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 2px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 1.25rem 0 0.75rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
  margin-right: .5em;
}

.divider:not(:empty)::after {
  margin-left: .5em;
}

/* --------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
 * Dynamic Job Entry List Elements
 * -------------------------------------------------------------------------- */
.jobs-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
}

.job-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: all var(--transition-fast);
}

.job-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.job-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-color-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.job-color-picker {
  -webkit-appearance: none;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
}

.job-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.job-color-picker::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.job-item-fields {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.job-item-fields input[type="text"],
.job-item-fields input[type="date"],
.job-item-fields input[type="number"],
.job-item-fields select {
  width: 100%;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.job-item-dates {
  display: flex;
  gap: 0.5rem;
}

.job-item-dates input[type="date"] {
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
 * Main Visualisation Panel Layout
 * -------------------------------------------------------------------------- */
.visualisation-container {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--bg-primary);
}

/* Dashboard Statistics Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: linear-gradient(135deg, rgba(23, 25, 35, 0.6) 0%, rgba(15, 17, 26, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-stat);
}

.stat-card.accent::before {
  background: var(--gradient-loved);
}

.stat-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Life Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-stat);
  border-radius: 6px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.stat-card-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detail-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Loved Ones Metrics */
.stat-card-details.loved-ones {
  display: flex;
  gap: 1.5rem;
}

.loved-one-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.loved-one-metric .metric-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.loved-one-metric.highlight .metric-val {
  background: var(--gradient-loved);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
}

.loved-one-metric .metric-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.loved-one-explanation {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.4;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
}

/* Loved One Time Breakdown Layout */
.loved-one-breakdown-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.breakdown-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

.breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.breakdown-list li .lbl {
  color: var(--text-muted);
}

.breakdown-list li .val {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
}


/* View Segment Controls */
.view-segment-control {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 2px;
}

.view-segment-control .btn {
  border: none;
  background: none;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.view-segment-control .btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.view-segment-control .btn.active {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
 * Canvas Visualisation Card
 * -------------------------------------------------------------------------- */
.canvas-card {
  background: rgba(22, 25, 38, 0.2);
  border-bottom: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  padding: 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: -2rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.toolbar-title h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.toolbar-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

/* Canvas Viewport (Handles zooming & panning) */
.canvas-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: grab;
}

.canvas-viewport:active {
  cursor: grabbing;
}

#lifeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  display: block;
}

/* Floating Tooltip */
.canvas-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.canvas-tooltip.hidden {
  opacity: 0;
  visibility: hidden;
}

.tooltip-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.tooltip-val {
  font-weight: 500;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
 * Color Legend
 * -------------------------------------------------------------------------- */
.legend-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.app-footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 10;
}
