/* ===== DESIGN TOKENS ===== */
:root {
  /* Color Tokens */
  --color-primary: #667eea;
  --color-primary-dark: #764ba2;
  --color-primary-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  
  --color-secondary: #3b82f6;
  --color-secondary-dark: #2563eb;
  --color-secondary-gradient: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  
  --color-success: #10b981;
  --color-success-dark: #059669;
  --color-success-gradient: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  
  --color-warning: #f59e0b;
  --color-warning-dark: #d97706;
  --color-warning-gradient: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
  
  --color-danger: #ef4444;
  --color-danger-dark: #dc2626;
  --color-danger-gradient: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-dark) 100%);
  
  --color-purple: #8b5cf6;
  --color-purple-dark: #7c3aed;
  --color-purple-gradient: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
  
  /* Background Colors */
  --bg-primary: #000000;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-surface: #374151;
  --bg-surface-light: rgba(255, 255, 255, 0.05);
  --bg-surface-lighter: rgba(255, 255, 255, 0.1);
  --bg-overlay: rgba(0, 0, 0, 0.9);
  --bg-modal-overlay: rgba(15, 23, 42, 0.6);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-tertiary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-inverse: #000000;
  --text-accent: var(--color-primary);
  
  /* Border Colors */
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.2);
  --border-accent: var(--color-primary);
  --border-hover: rgba(255, 255, 255, 0.3);
  
  /* Shadow Tokens */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-primary: 0 4px 12px rgba(102, 126, 234, 0.4);
  --shadow-secondary: 0 4px 12px rgba(59, 130, 246, 0.25);
  --shadow-success: 0 4px 12px rgba(16, 185, 129, 0.25);
  --shadow-warning: 0 4px 12px rgba(245, 158, 11, 0.25);
  --shadow-danger: 0 4px 12px rgba(239, 68, 68, 0.25);
  
  /* Spacing Tokens */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 48px;
  
  /* Typography Tokens */
  --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 32px;
  --font-size-5xl: 42px;
  --font-size-6xl: 48px;
  --font-size-hero: clamp(60px, 8vw, 140px);
  --font-size-hero-sub: clamp(20px, 3vw, 32px);
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.1;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;

  /* Onboarding Tokens */
  --onboarding-progress-height: 4px;
  --onboarding-step-padding: 2rem;
  --option-border-radius: 12px;
  --option-padding: 1.5rem;
  
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 2px;
  
  /* Border Radius Tokens */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 50%;
  --radius-pill: 24px;
  --radius-button: 30px;
  
  /* Transition Tokens */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: 1s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Tokens */
  --container-width: 1400px;
  --navbar-height: 72px;
  --sidebar-width: 280px;
  --content-padding: var(--space-2xl);
  
  /* Z-index Tokens */
  --z-dropdown: 100;
  --z-navbar: 200;
  --z-modal: 1000;
  --z-tooltip: 1100;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== UTILITY CLASSES ===== */

/* Background Classes */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-surface { background: var(--bg-surface); }
.bg-surface-light { background: var(--bg-surface-light); }
.bg-surface-lighter { background: var(--bg-surface-lighter); }
.bg-gradient-primary { background: var(--color-primary-gradient); }
.bg-gradient-secondary { background: var(--color-secondary-gradient); }
.bg-gradient-success { background: var(--color-success-gradient); }
.bg-gradient-warning { background: var(--color-warning-gradient); }
.bg-gradient-danger { background: var(--color-danger-gradient); }

/* Text Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.text-accent { color: var(--text-accent); }

/* Typography Classes */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }
.text-6xl { font-size: var(--font-size-6xl); }

/* Border Classes */
.border { border: 1px solid var(--border-primary); }
.border-secondary { border: 1px solid var(--border-secondary); }
.border-accent { border: 1px solid var(--border-accent); }
.border-hover { border: 1px solid var(--border-hover); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Classes */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== COMPONENT STYLES ===== */

/* Hidden by default; enabled on mobile */
.mobile-calendar { display: none; }

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* Navigation */
.app-nav {
  position: fixed;
  top: var(--space-3xl);
  left: var(--space-3xl);
  z-index: var(--z-navbar);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: var(--bg-surface-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(10px);
}

.nav-toggle:hover {
  background: var(--bg-surface-lighter);
  border-color: var(--border-hover);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm);
  width: 220px;
  background: var(--bg-overlay);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.app-nav.is-open .nav-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

.nav-item:hover {
  background: var(--bg-surface-light);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

.nav-item:active {
  background: var(--bg-surface-light);
  color: var(--text-primary);
}

.nav-item:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.nav-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.nav-item-label {
  flex: 1;
  text-align: left;
}

@media (max-width: 1024px) {
  .app-nav {
    top: var(--space-2xl);
    left: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .app-nav {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-overlay);
    border-top: 1px solid var(--border-primary);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-md);
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .nav-item-label {
    font-size: var(--font-size-sm);
    text-align: center;
  }
}

/* Landing Page Specific Styles */
.main-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 var(--space-4xl);
  overflow: hidden;
}

.content-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bell-curve-container {
  position: absolute;
  width: 800px;
  height: 600px;
  transition: all var(--transition-elastic);
  left: 50%;
  transform: translateX(-50%);
}

.bell-curve-container.shifted {
  left: 25%;
  transform: translateX(-50%) scale(0.8);
}

.bell-curve-svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: absolute;
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 1.2s ease 2s forwards;
  transition: all var(--transition-slow);
}

.hero-content.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  visibility: hidden;
  z-index: -1;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  letter-spacing: -3px;
  margin-bottom: var(--space-xl);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: var(--font-size-hero-sub);
  color: var(--text-secondary);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-normal);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.feature-content {
  position: absolute;
  right: 10%;
  width: 45%;
  max-width: 600px;
  opacity: 0;
  transform: translateX(50px);
  transition: all var(--transition-bounce);
}

.feature-content.active {
  opacity: 1;
  transform: translateX(0);
}

.feature-content.past {
  opacity: 0;
  transform: translateX(-50px);
}

.feature-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--color-primary-gradient);
  border-radius: var(--radius-full);
  text-align: center;
  line-height: 40px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-xl);
}

.feature-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2xl);
  letter-spacing: -1px;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

.feature-description {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3xl);
}

.feature-bullets {
  list-style: none;
  margin-top: var(--space-xl);
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.5;
}

.feature-bullets li::before {
  content: '→';
  color: var(--color-primary);
  margin-right: var(--space-md);
  font-weight: var(--font-weight-semibold);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-4xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease 3.5s forwards;
  transition: all var(--transition-slow);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-text {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--border-secondary);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin: 0 auto;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  animation: scrollDown 2s ease-in-out infinite;
}

.progress-dots {
  position: absolute;
  bottom: var(--space-4xl);
  right: 10%;
  display: flex;
  gap: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.progress-dots.visible {
  opacity: 1;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-secondary);
  transition: all var(--transition-normal);
}

.progress-dot.active {
  width: 24px;
  background: var(--color-primary-gradient);
}

/* Hero Section for App Pages */
.hero-section {
  padding: var(--space-5xl) 0 var(--space-3xl);
  text-align: center;
}

.hero-section .hero-content h1 {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--letter-spacing-tight);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: var(--font-size-xl);
  color: var(--text-tertiary);
  line-height: var(--line-height-relaxed);
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  background: var(--bg-surface-light);
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--bg-surface-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: var(--space-3xl) 0 var(--space-2xl);
  border: 1px solid var(--border-primary);
}

.tab {
  flex: 1;
  padding: var(--space-lg) var(--space-2xl);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-tertiary);
  transition: all var(--transition-normal);
  font-family: inherit;
}

.tab.active {
  background: var(--color-secondary-gradient);
  color: var(--text-primary);
}

.tab:hover:not(.active) {
  background: var(--bg-surface-light);
  color: var(--text-secondary);
}

/* Tab Content */
.tab-content {
  display: none;
  background: var(--bg-surface-light);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-primary);
}

.tab-content.active {
  display: block;
}

/* Buttons */
button, .primary-btn {
  background: var(--color-secondary-gradient);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: inherit;
  line-height: 1;
}

button:hover, .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-secondary);
}

.secondary-btn {
  background: var(--bg-surface-light);
  color: var(--text-tertiary);
  border: 1px solid var(--border-primary);
}

.secondary-btn:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.danger {
  background: var(--color-danger-gradient);
}

.danger:hover {
  box-shadow: var(--shadow-danger);
}

.cta-button {
  display: inline-block;
  background: var(--color-primary-gradient);
  color: var(--text-primary);
  padding: var(--space-xl) var(--space-5xl);
  border-radius: var(--radius-button);
  text-decoration: none;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-normal);
  margin-top: 10px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-row {
  display: flex;
  gap: var(--space-xl);
  align-items: end;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

input, select, textarea {
  width: 100%;
  padding: var(--space-md) var(--space-md);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  background: var(--bg-surface-light);
  color: var(--text-primary);
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--bg-surface);
}

input::placeholder {
  color: var(--text-muted);
}

/* Jira Board */
.jira-board-container {
  background: transparent;
  padding: 0;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-primary);
}

.board-header h2 {
  color: var(--text-primary);
  margin: 0;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}

.board-actions {
  display: flex;
  gap: var(--space-md);
}

.add-task-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-success-gradient);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: var(--font-size-base);
}

.add-task-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-success);
}

.commitment-btn {
  background: var(--color-warning-gradient);
}

.commitment-btn:hover {
  box-shadow: var(--shadow-warning);
}

.plus-icon {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.jira-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  min-height: 600px;
}

.board-column {
  background: var(--bg-surface-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.board-column.drag-over {
  border-color: var(--color-secondary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-secondary);
}

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

.column-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.task-count {
  background: var(--text-tertiary);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  min-width: 20px;
  text-align: center;
}

.expand-btn {
  background: var(--bg-surface-light);
  color: var(--text-tertiary);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.expand-btn:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.column-content {
  min-height: 500px;
  position: relative;
}

/* Task Cards */
.task-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  cursor: move;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.task-card.dragging {
  opacity: 0.6;
  transform: rotate(2deg) scale(1.02);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.task-card-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: 1.3;
  flex: 1;
  margin-right: var(--space-sm);
}

.task-card-priority {
  padding: 3px var(--space-sm);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.priority-high {
  background: var(--color-danger-gradient);
}

.priority-medium {
  background: var(--color-warning-gradient);
}

.priority-low {
  background: var(--color-success-gradient);
}

.task-card-meta {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
}

.urgency-score {
  font-weight: var(--font-weight-semibold);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--font-size-xs);
}

.urgency-high {
  background: var(--color-danger-gradient);
}

.urgency-medium {
  background: var(--color-warning-gradient);
}

.urgency-low {
  background: var(--color-success-gradient);
}

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

.task-card-actions button {
  font-size: var(--font-size-xs);
  padding: var(--space-sm) 10px;
  border-radius: var(--radius-sm);
}

/* Column Status Colors */
.board-column[data-status="backlog"] .column-header h3 {
  color: var(--text-tertiary);
}

.board-column[data-status="backlog"] .task-count {
  background: var(--text-tertiary);
}

.board-column[data-status="up_next"] .column-header h3 {
  color: #0ea5e9;
}

.board-column[data-status="up_next"] .task-count {
  background: #0ea5e9;
}

.board-column[data-status="in_progress"] .column-header h3 {
  color: var(--color-warning);
}

.board-column[data-status="in_progress"] .task-count {
  background: var(--color-warning);
}

.board-column[data-status="completed"] .column-header h3 {
  color: var(--color-success);
}

.board-column[data-status="completed"] .task-count {
  background: var(--color-success);
}

/* Commitments Section */
.commitments-section {
  margin: var(--space-3xl) 0;
  padding: var(--space-2xl);
  background: var(--bg-surface-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.commitments-section h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.commitment-item, .task-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.commitment-item:hover, .task-item:hover {
  background: var(--bg-surface-light);
  border-color: var(--border-hover);
}

.commitment-info, .task-info {
  flex: 1;
}

.commitment-title, .task-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-base);
}

.commitment-meta, .task-meta {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.commitment-actions, .task-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Generate Section */
.generate-section {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-surface-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  text-align: center;
}

.generate-section h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.generate-section p {
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-modal-overlay);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--transition-normal) ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  animation: slideIn var(--transition-normal) ease;
  border: 1px solid var(--border-primary);
}

.modal-content.large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2xl);
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-surface-light);
}

.modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

.close {
  color: var(--text-tertiary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-light);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-normal);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
}

.close:hover {
  color: var(--color-danger);
  background: var(--bg-surface-light);
}

.modal-body {
  padding: var(--space-2xl);
  max-height: 60vh;
  overflow-y: auto;
}

.modal-tabs {
  display: flex;
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-primary);
}

.modal-tab {
  background: none;
  border: none;
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.modal-tab.active {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.modal-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.modal-form {
  display: none;
}

.modal-form.active {
  display: block;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-2xl);
  border-top: 1px solid var(--border-primary);
  background: var(--bg-surface-light);
}

.github-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
}

.github-modal-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.github-instructions p {
  color: var(--text-tertiary);
  margin: 0 0 var(--space-sm) 0;
}

.github-instructions p:last-child {
  margin-bottom: 0;
}

.github-login-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.github-login-actions button {
  align-self: flex-start;
}

.github-user-summary {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.github-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-primary);
  display: none;
}

.github-user-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.github-user-details span:first-child {
  font-size: var(--font-size-lg);
}

.github-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.github-select-wrapper select {
  padding: var(--space-md);
  width: 100%;
}

.github-repo-details {
  white-space: pre-wrap;
  background: var(--bg-surface-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  padding: var(--space-md);
  min-height: 96px;
  color: var(--text-tertiary);
}

.github-repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: flex-end;
}

.github-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.github-status {
  min-height: var(--space-2xl);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

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

.github-status.warning {
  color: var(--color-warning);
}

.github-status.info {
  color: var(--text-secondary);
}

.github-error {
  min-height: var(--space-xl);
  font-size: var(--font-size-sm);
  color: var(--color-danger);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.github-error.visible {
  opacity: 1;
}

.github-modal-footer {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Settings Page */
.header {
  background: var(--bg-surface-light);
  border-bottom: 1px solid var(--border-primary);
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-3xl);
}

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

.header-text h1 {
  color: var(--text-primary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-sm) 0;
}

.header-text p {
  color: var(--text-tertiary);
  font-size: var(--font-size-lg);
  margin: 0;
}

.back-btn {
  background: var(--color-secondary-gradient);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-lg);
  padding: 10px var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  font-family: inherit;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-secondary);
}

.settings-content {
  background: var(--bg-surface-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.settings-section {
  padding: var(--space-2xl);
  border-bottom: 1px solid var(--border-primary);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h2, .settings-section h3 {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

/* Schedule View */
.schedule-controls {
  margin-bottom: var(--space-2xl);
  display: flex;
  gap: var(--space-md);
}

.schedule-view {
  background: var(--bg-surface-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.calendar-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-sm);
}

.calendar-range {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.calendar-week-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-sm) var(--space-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calendar-week-label {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-normal);
}

.calendar-nav {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: var(--bg-surface-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.calendar-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-nav.today-btn {
  width: auto;
  padding: 0 12px;
  font-size: var(--font-size-sm);
  background: var(--color-secondary-gradient);
  border: 1px solid var(--color-secondary);
  color: white;
  margin-left: 8px;
}

.calendar-nav.today-btn:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
}

.calendar-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-help {
  opacity: 0.6;
  cursor: help;
  color: var(--text-tertiary);
  transition: opacity 0.2s ease;
}

.calendar-help:hover {
  opacity: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-secondary);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calendar-time-column {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--border-secondary);
  padding: 0 var(--space-sm) var(--space-sm);
}

.calendar-time-spacer {
  height: var(--calendar-day-header, 56px);
}

.calendar-time-slot {
  height: var(--calendar-hour-height, 56px);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 4px;
  padding-right: 2px;
  letter-spacing: 0.05em;
}

.calendar-day-columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(15, 23, 42, 0.55);
}

.calendar-day {
  display: flex;
  flex-direction: column;
  position: relative;
}

.calendar-day + .calendar-day {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-day-header {
  height: var(--calendar-day-header, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--border-secondary);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.calendar-day-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.calendar-day-number {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.calendar-day-body {
  position: relative;
  flex: 1;
  padding: 6px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent calc(var(--calendar-hour-height, 56px))
  );
}

.calendar-event {
  position: absolute;
  left: 10px;
  right: 10px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-secondary-gradient);
  box-shadow: var(--shadow-secondary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.calendar-event h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  word-break: break-word;
}

.calendar-event p {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.85);
}

.calendar-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.calendar-event--commitment {
  background: var(--color-purple-gradient);
  box-shadow: var(--shadow-primary);
}

.calendar-event--break {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px dashed var(--border-secondary);
  box-shadow: none;
}

/* Schedule Summary */
.schedule-summary {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
}

.schedule-summary h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

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

.summary-stats .stat-item {
  background: var(--bg-surface-light);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.summary-stats .stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.summary-stats .stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/* Violations */
.violations {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.violations h4 {
  color: var(--color-danger);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.violation-item {
  background: var(--bg-surface);
  padding: var(--space-md);
  margin: var(--space-sm) 0;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-danger);
  border-left: 3px solid var(--color-danger);
}

/* Expanded View */
.expanded-task-list {
  display: grid;
  gap: var(--space-md);
  max-height: 60vh;
  overflow-y: auto;
}

.expanded-task-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.expanded-task-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

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

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --content-padding: var(--space-lg);
  }
  
  .nav-container {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .nav-sections {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .container {
    padding: 0 var(--space-lg);
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .jira-board {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .board-header {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: stretch;
  }
  
  .board-actions {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
    margin: var(--space-lg);
  }
  
  .modal-footer {
    flex-direction: column-reverse;
  }
}

/* ===== ONBOARDING STYLES ===== */

/* Progress Bar */
.onboarding-progress {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-primary);
}

.progress-bar {
  width: 100%;
  height: var(--onboarding-progress-height);
  background: var(--bg-surface-light);
  border-radius: calc(var(--onboarding-progress-height) / 2);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-fill {
  height: 100%;
  background: var(--color-secondary-gradient);
  border-radius: calc(var(--onboarding-progress-height) / 2);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Onboarding Steps */
.onboarding-step {
  display: none;
  padding: var(--onboarding-step-padding);
  min-height: 400px;
  max-height: 60vh;
  overflow-y: auto;
}

.onboarding-step.active {
  display: block;
}

.step-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.step-header h2 {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.step-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

/* Goal Options */
.goal-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  width: 100%;
  max-width: 600px;
}

.goal-category h3 {
  margin: 0 0 var(--space-lg) 0;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.goal-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--option-padding);
  background: var(--bg-surface-light);
  border: 2px solid transparent;
  border-radius: var(--option-border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-option:hover {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.1);
}

.goal-option.selected {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-secondary);
}

.goal-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 50%;
  flex-shrink: 0;
}

.goal-option h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.goal-option p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

/* Days Off Options */
.days-off-options {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.days-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl);
  background: var(--bg-surface-light);
  border: 2px solid transparent;
  border-radius: var(--option-border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
  text-align: center;
}

.days-option:hover {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.1);
}

.days-option.selected {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-secondary);
}

.days-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.days-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.days-desc {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

/* Sleep Picker */
.sleep-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.sleep-label {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.sleep-input {
  font-size: var(--font-size-xl);
  padding: var(--space-lg);
  text-align: center;
  min-width: 150px;
}

.sleep-preview {
  font-size: var(--font-size-lg);
  color: var(--text-tertiary);
}

/* Exercise Options */
.exercise-options, .ai-options {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

/* Exercise Schedule Section */
.exercise-schedule-section {
  width: 100%;
  max-width: 600px;
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-surface-light);
  border: 1px solid var(--border-primary);
  border-radius: var(--option-border-radius);
}

.schedule-preference-options {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.schedule-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 2px solid transparent;
  border-radius: var(--option-border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.schedule-option:hover {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.1);
}

.schedule-option.selected {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-secondary);
}

.schedule-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.schedule-option h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.schedule-option p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

/* Manual Schedule Input */
.manual-schedule-input {
  margin-top: var(--space-2xl);
}

.manual-schedule-input h4 {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.exercise-form .form-row {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.exercise-form .form-group {
  flex: 1;
}

.exercise-form .form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.exercise-form select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.exercise-form select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* Days Selector */
.days-selector {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.day-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.day-checkbox:hover {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.1);
}

.day-checkbox input {
  margin: 0;
  accent-color: var(--color-secondary);
}

.day-checkbox input:checked + span {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.day-checkbox:has(input:checked) {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.15);
}

.exercise-option, .ai-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--option-padding);
  background: var(--bg-surface-light);
  border: 2px solid transparent;
  border-radius: var(--option-border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.exercise-option:hover, .ai-option:hover {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.1);
}

.exercise-option.selected, .ai-option.selected {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-secondary);
}

.exercise-icon, .ai-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 50%;
  flex-shrink: 0;
}

.exercise-option h4, .ai-option h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.exercise-option p, .ai-option p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

/* Productivity Options */
.productivity-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  width: 100%;
  max-width: 500px;
}

.productivity-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--option-padding);
  background: var(--bg-surface-light);
  border: 2px solid transparent;
  border-radius: var(--option-border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.productivity-option:hover {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.1);
}

.productivity-option.selected {
  border-color: var(--color-secondary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-secondary);
}

.productivity-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 50%;
  flex-shrink: 0;
}

.productivity-option h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.productivity-option p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

/* Focus Slider */
.focus-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
  max-width: 400px;
}

.focus-slider {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-light);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.focus-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-secondary-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.focus-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.focus-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-secondary-gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.focus-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.focus-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.focus-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.focus-time {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.focus-desc {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.focus-value {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Navigation */
.onboarding-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-top: 1px solid var(--border-primary);
}

.nav-btn {
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn.primary {
  background: var(--color-secondary-gradient);
  color: var(--text-primary);
}

.nav-btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-secondary);
}

.nav-btn.secondary {
  background: var(--bg-surface-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.nav-btn.secondary:hover:not(:disabled) {
  background: var(--bg-surface-lighter);
  border-color: var(--border-secondary);
}

.nav-btn.skip {
  background: none;
  color: var(--text-tertiary);
  border: none;
  text-decoration: underline;
}

.nav-btn.skip:hover {
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .onboarding-step {
    padding: var(--space-lg);
    min-height: 350px;
  }
  
  .step-header h2 {
    font-size: var(--font-size-2xl);
  }
  
  .goal-options {
    gap: var(--space-lg);
  }
  
  .goal-option {
    padding: var(--space-lg);
  }
  
  .days-off-options {
    gap: var(--space-lg);
  }
  
  .days-option {
    min-width: 120px;
    padding: var(--space-lg);
  }
  
  .productivity-options {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .exercise-options, .ai-options {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .exercise-option, .ai-option {
    min-width: auto;
    width: 100%;
  }
  
  .onboarding-navigation {
    padding: var(--space-lg);
  }
  
  .nav-btn {
    padding: var(--space-md) var(--space-lg);
    min-width: 80px;
  }
}

/* Media Queries for Smaller Onboarding Modal */
@media (max-width: 768px) {
  .week-grid {
    font-size: var(--font-size-xs);
    grid-template-columns: auto repeat(7, minmax(50px, 1fr));
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
  }
  
  .bell-curve-container {
    width: 600px;
    height: 450px;
  }
  
  .bell-curve-container.shifted {
    transform: translateX(-50%) scale(0.6) translateY(-100px);
    left: 50%;
  }
  
  .feature-content {
    width: 80%;
    right: 10%;
    left: 10%;
    top: 55%;
  }
  
  .feature-title {
    font-size: var(--font-size-4xl);
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 1200px) {
  .feature-content {
    width: 50%;
    right: 5%;
  }

  .bell-curve-container.shifted {
    left: 20%;
  }
}

@media (max-width: 968px) {
  .feature-content {
    width: 55%;
  }
}

/* ===== Mobile Overrides (simple, minimal) ===== */
@media (max-width: 768px) {
  /* Home (index.html) hero/feature layout: stack and allow scrolling */
  body {
    position: static !important;
    height: auto !important;
    overflow-y: auto !important;
  }
  .main-container {
    height: auto;
    padding: var(--space-2xl) var(--space-xl) 100px; /* bottom space for mobile nav */
  }
  .content-wrapper {
    height: auto;
    display: block;
  }
  .bell-curve-container,
  .bell-curve-container.shifted {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    height: 240px;
    margin: 0 auto var(--space-2xl);
  }
  .hero-content {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none;
    margin-bottom: var(--space-xl);
  }
  .feature-content,
  .feature-content.active,
  .feature-content.past {
    position: static;
    right: auto;
    width: 100%;
    max-width: none;
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: var(--space-3xl);
  }
  .scroll-indicator,
  .progress-dots {
    display: none !important;
  }

  /* Home (home.html): hide Jira board on mobile, show Schedule tab */
  .tabs { display: none; }
  #tasks-tab { display: none !important; }
  #schedule-tab { display: block !important; }

  /* Calendar: hide weekly grid; show month/day mobile UI */
  .calendar-toolbar { display: none; }
  .calendar-grid { display: none; }
  .mobile-calendar { display: grid; gap: var(--space-xl); }
  .month-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-xl);
  }
  /* Make month/day controls look like rectangular buttons */
  .month-toolbar .calendar-nav,
  .day-toolbar .calendar-nav {
    width: auto;
    height: auto;
    min-width: 44px;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-surface-light);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
  }
  .month-toolbar .calendar-nav.today-btn {
    background: var(--color-secondary-gradient);
    border-color: transparent;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-xl);
  }
  .day-toolbar .back-btn {
    background: var(--bg-surface-light);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
  }
  .month-grid { display: grid; gap: 6px; }
  .dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; opacity: 0.7; font-size: var(--font-size-sm); text-align: center; }
  .days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .day-cell { 
    background: var(--bg-surface-light);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    font: inherit;
  }
  .day-cell.empty { visibility: hidden; }
  .day-cell.today { border-color: var(--color-secondary); }
  .day-cell.selected { background: var(--color-secondary-gradient); border-color: transparent; }
  .day-cell.has-items { position: relative; }
  .day-cell.has-items::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); }
  .day-schedule { display: grid; gap: var(--space-sm); }
  .day-schedule-title { font-weight: var(--font-weight-semibold); margin-top: var(--space-sm); margin-bottom: var(--space-sm); }
  .day-schedule-item { display: flex; gap: var(--space-md); align-items: flex-start; background: var(--bg-surface-light); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: var(--space-md); }
  .day-schedule-time { min-width: 84px; font-size: var(--font-size-sm); color: var(--text-tertiary); }
  .day-schedule-title { color: var(--text-primary); }
  .day-schedule-type { font-size: var(--font-size-xs); }

  .day-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-surface-light);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-xl);
  }
  .day-schedule-item.gap {
    background: var(--bg-surface);
    border-style: dashed;
    border-color: var(--border-secondary);
  }
}

/* ===== DEPENDENCY GRAPH STYLES ===== */
.dependencies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dependencies-actions {
  display: flex;
  gap: 1rem;
}

.dependency-graph-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-primary);
}

.dependency-graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-surface-light);
  border-radius: 8px;
  border: 1px solid var(--border-primary);
}

.legend {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
}

.graph-controls {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.graph-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.graph-controls input[type="checkbox"] {
  accent-color: var(--color-primary);
}

.dependency-graph-canvas {
  min-height: 400px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  position: relative;
  overflow: auto;
}

.dependency-graph-svg {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.graph-node {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.graph-node:hover {
  opacity: 0.8;
}

.graph-instructions {
  padding: 2rem;
  text-align: center;
}

.graph-instructions ul {
  text-align: left;
  max-width: 500px;
  margin: 1rem auto;
  list-style-type: disc;
  padding-left: 2rem;
}

/* ===== PROJECT STYLES ===== */
.projects-display {
  margin-bottom: 2rem;
}

.project-item {
  background: var(--bg-surface-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.project-stats {
  font-size: 0.8125rem;
}

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

/* Enhanced Task Card Styles for Color Coding */
.task-card {
  position: relative;
  padding-left: 0.5rem;
}

.task-card-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Enhanced Calendar Event Styles */
.calendar-event--task {
  border-radius: 4px;
  color: white;
  font-weight: 500;
  overflow: hidden;
}

.calendar-event--commitment {
  border-radius: 4px;
  color: white;
  font-weight: 500;
  overflow: hidden;
}

.calendar-event h4 {
  font-size: 0.875rem;
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.calendar-event p {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.9;
}
