/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #55b021;
  --color-primary-dark: #4a9e1d;
  --color-secondary: #FFD05C;
  --color-accent-light: #e8f5e8;
  --color-accent-medium: #c8e6c9;
  --color-text: #1C1D21;
  --color-text-muted: #666666;
  --color-background: #F7F7F7;
  --color-white: #ffffff;
  --color-border: #E5E7EB;

  --font-family-base: 'Inter', sans-serif;
  --font-size-base: 16px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

/* Marketing site wallpaper - only for public pages */
body.public-site {
  background-color: #F7F7F7 !important;
  background-image: url('/assets/final-wallpaper.svg') !important;
  background-repeat: repeat !important;
  background-size: 80px 80px !important;
  background-attachment: scroll !important;
}

/* Authenticated app - clean background */
body.app {
  background: var(--color-background);
  background-image: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

p {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

/* Buttons */
.button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

/* Mobile responsiveness for public site wallpaper */
@media (max-width: 768px) {
  body.public-site {
    background-size: 60px 60px !important;
  }
}

@media (max-width: 480px) {
  body.public-site {
    background-size: 50px 50px !important;
  }
}

/* Primary Button */
.btn-primary {
  background-color: #55b021;
  color: #fff;
}

.btn-primary:hover {
  background-color: #4a9e1d;
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-accent-light);
}

/* Card / Panel */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease-in-out;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* Sections */
.section {
  padding: var(--spacing-lg) var(--spacing-md);
}

/* Navigation */
.navbar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) var(--spacing-md);
}

/* Input Fields */
input, textarea, select {
  font-family: inherit;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 100%;
  background-color: var(--color-white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-accent-medium);
}

/* Utility Classes */
.text-muted {
  color: var(--color-text-muted);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.text-center { text-align: center; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

/* LunchMoney-specific Component Classes */

/* Typography System */
.lm-heading-xl {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.lm-heading-lg {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-md);
}

.lm-heading-md {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

.lm-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.lm-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.lm-body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Button System */
.lm-button-primary {
  background: #55b021;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.lm-button-primary:hover {
  background: #4a9e1d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(85, 176, 33, 0.3);
}

.lm-button-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.lm-button-secondary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* Card System */
.lm-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.lm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Navigation System */
.lm-nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.lm-nav-link:hover {
  color: var(--color-text);
  background: rgba(85, 176, 33, 0.05);
}

.lm-nav-link-active {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
}

/* Badge System */
.lm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Container System */
.lm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .lm-container {
    padding: 0 1rem;
  }
  
  .lm-heading-xl {
    font-size: 2.5rem;
  }
  
  .lm-heading-lg {
    font-size: 2rem;
  }
}