/* Route-based Layout */
.route-content {
  width: 100%;
  min-height: 100vh;
}

#main-app {
  display: block;
}

#settings-route {
  display: none;
}

/* Design Tokens: non-invasive variables (no selector changes yet) */
:root {
  /* Colors - base */
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-text-subtle: #999;
  --color-border: #e0e0e0;
  --color-border-strong: #ddd;

  /* Semantic colors */
  --color-primary: #1976d2;
  --color-success: #27ae60;
  --color-warning: #f39c12;
  --color-danger: #dc3545;
  --color-info: #90caf9;

  /* Habit tracker colors - flat minimalistic */
  --habit-completed: #27ae60;
  --habit-missed: #f39c12;
  --habit-pending: #e5e7eb;
  --habit-pending-border: #d1d5db;
  --habit-boundary: #007bff;

  /* Accents used in gradients/details */
  --color-accent-1: #c8b8a8;
  --color-accent-2: #d4c4b4;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', sans-serif;
  --font-size-base: 15px;
  --line-height-base: 1.6;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;

  /* Radius */
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 6px;
  --radius-4: 8px;
  --radius-round: 999px;

  /* Elevation */
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
}

/* Hide phase badge in tree view, but show it in calendar view */
.task-meta .task-badge.task-phase {
  display: none !important;
}

/* Show phase badge in calendar view */
.calendar-view-container .task-meta .task-badge.task-phase {
  display: inline-block !important;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', sans-serif;
  background-color: #fafafa;
  background-image: 
    linear-gradient(45deg, rgba(0,0,0,0.003) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.003) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.003) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.003) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1, 'tnum' 1, 'ss01' 1, 'ss02' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  scroll-behavior: smooth;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245, 245, 245, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.02) 80%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

