:root {
  /* Brand Colors */
  --primary: #10B981; /* Emerald Green for Physical/Nutrition */
  --primary-dark: #059669;
  --secondary: #8B5CF6; /* Violet for Spiritual/Mind */
  --secondary-dark: #7C3AED;
  --accent: #F59E0B; /* Amber for energy/highlights */
  
  /* Neutral Colors */
  --bg-body: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-input: #F3F4F6;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --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-glow: 0 0 15px rgba(16, 185, 129, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 80px; /* Space for bottom nav */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

h1 { font-size: 28px; letter-spacing: -0.02em; }
h2 { font-size: 24px; letter-spacing: -0.01em; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p { margin: 0 0 var(--spacing-md) 0; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* Layout Containers */
.container {
  max-width: 480px; /* Mobile app max width for desktop view */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

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

.header-top {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border);
}

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

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.02);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  position: relative;
}

.card-image-top {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: -24px -24px 16px -24px;
  width: calc(100% + 48px);
}

/* Grid & Flex */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
  width: 100%; /* Mobile first */
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  width: auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

/* Forms */
.form-group { margin-bottom: var(--spacing-md); }
.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--text-main);
}
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 16px;
  transition: border-color 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

/* Navigation - Mobile Bottom Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 12px 0 24px; /* Extra padding for bottom safe area */
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  gap: 4px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
}
.nav-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.nav-item.active .nav-icon {
  color: var(--primary);
}
.nav-item.active span {
  color: var(--primary);
  font-weight: 500;
}

/* Placeholders */
.placeholder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #E5E7EB;
  background-image: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.placeholder-image {
  background-color: #F3F4F6;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 12px;
}
.placeholder-image.workout { background: #E0F2FE; }
.placeholder-image.food { background: #DCFCE7; }
.placeholder-image.mind { background: #F3E8FF; }

/* Custom Components */
.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
}
.stat-pill.fire { color: #EF4444; background: #FEF2F2; }
.stat-pill.water { color: #3B82F6; background: #EFF6FF; }

.daily-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  background: white;
  position: relative;
}
.daily-circle svg {
  width: 20px;
  height: 20px;
}
.daily-circle.ring-green { border-color: #10B981; color: #10B981; }
.daily-circle.ring-purple { border-color: #8B5CF6; color: #8B5CF6; }
.daily-circle.ring-orange { border-color: #F59E0B; color: #F59E0B; }

.goal-card {
  background: white;
  padding: 16px 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  min-width: 90px;
  flex: 1;
}

.card-header-pastel {
  height: 120px;
  width: calc(100% + 48px);
  margin: -24px -24px 16px -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.bg-pastel-blue { background-color: #E0F2FE; }
.bg-pastel-purple { background-color: #F3E8FF; }
.bg-pastel-green { background-color: #DCFCE7; }

.card-icon-lg {
  width: 48px;
  height: 48px;
  opacity: 0.8;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}
.badge-primary { background: #ECFDF5; color: var(--primary-dark); }
.badge-secondary { background: #F5F3FF; color: var(--secondary-dark); }

.list-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-content { flex: 1; padding: 0 var(--spacing-md); }

.floating-action-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  font-size: 24px;
  text-decoration: none;
  z-index: 900;
}

/* Utilities */
.w-full { width: 100%; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.no-decoration { text-decoration: none; }
.block { display: block; }
.w-auto { width: auto; }
.whitespace-nowrap { white-space: nowrap; }
.bg-transparent { background: transparent; }
.overflow-x-auto { overflow-x: auto; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.min-w-100 { min-width: 100px; }

/* Splash Screen */
.splash-bg {
  background: linear-gradient(135deg, #ECFDF5 0%, #F5F3FF 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  text-align: center;
}

.splash-logo-container {
  width: 120px; 
  height: 120px; 
  background: white; 
  border-radius: 30px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 32px; 
  box-shadow: var(--shadow-lg);
}

.splash-logo-text {
  font-size: 48px; 
  font-weight: bold; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary); /* Fallback */
}

.splash-actions {
  margin-top: 48px; 
  width: 100%; 
  max-width: 320px;
}

