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

:root {
  /* Colors from your design */
  --color-primary: #65a30d; /* Main green from design */
  --color-primary-dark: #3f6212; /* Darker green */
  --color-primary-light: #a3e635; /* Lighter green */
  --color-secondary: #0891b2; /* Eco-tip blue */
  --color-background: #f0f4f0; /* Lighter green background */ /* MODIFIED */
  --color-surface: #ffffff; /* Card background */
  --color-text: #1f2937; /* Dark text */
  --color-text-light: #6b7280; /* Light text */
  --color-border: #e5e7eb; /* Light border */
  --color-sun: #f59e0b; /* Sun yellow */
  --color-action-points: #84cc16; /* Lime green for points */ /* NEW */
  
  /* Your original error/warning colors */
  --color-error: #dc2626;
  --color-success: #16a34a; /* Kept your original success green */
  --color-warning: #f59e0b;
  
  /* Shadows and Radius */
  --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 -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --spacing-unit: 8px;
}

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

/* --- MODIFIED: Body with Gradient Background --- */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background); /* Base light green */
  /* NEW: Subtle radial gradient for the background texture */
  background-image: radial-gradient(circle at top left, #e0ebe0 10%, transparent 50%),
                    radial-gradient(circle at bottom right, #d0e0d0 15%, transparent 60%);
  background-size: 100% 100%; /* Cover the whole page */
  color: var(--color-text);
  line-height: 1.6;
}

/* --- 1. Header Styles (MODIFIED) --- */
.main-header {
  /* background-color: transparent; */ /* Ensured no solid color */
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* MODIFIED: Updated backdrop blur */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(244, 247, 243, 0.85); /* Slightly less transparent */
  border-bottom: 1px solid rgba(229, 231, 235, 0.5); /* Lighter border */
}

.main-header nav {
  display: flex;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
}
.logo-img {
  width: 32px;
  height: 32px;
}
.logo h1 {
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-unit) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  margin-left: auto;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}
.welcome-msg {
  color: var(--color-text-light);
  font-size: 0.9rem; /* Slightly larger */
  font-weight: 500;
  display: block; /* Make it always visible */
  white-space: nowrap; /* Prevent wrapping */
  margin-right: calc(var(--spacing-unit) * 1); /* Add some space before avatar */
}
/* --- Find and Replace in style.css --- */
button.logout-btn {
  color: red;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2.5);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: auto;
}

button.logout-btn:hover {
  background: var(--color-error); /* Keep red background */
  box-shadow: var(--shadow-md); /* Keep shadow effect */
  transform: translateY(-2px); /* Keep lift effect */
  color: white;
}

/* --- 2. Main Layout --- */
.dashboard-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: calc(var(--spacing-unit) * 3);
  max-width: 1600px;
  margin: calc(var(--spacing-unit) * 3) auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

/* Base card style for main content */
.dashboard-section.card-layout,
.sidebar .stat-card-new, /* Apply card styles to sidebar too */
.level-progress-new,
.eco-tip {
  background-color: var(--color-surface); /* Ensure solid background for cards */
  border-radius: var(--radius-lg);
  padding: calc(var(--spacing-unit) * 3);
  box-shadow: var(--shadow-md); /* Use consistent shadow */
  border: 1px solid var(--color-border);
}

.dashboard-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding-bottom: var(--spacing-unit);
  border-bottom: 1px solid var(--color-border);
}

/* --- 3. Main Content Components --- */

/* --- MODIFIED: Eco Tip --- */
.eco-tip {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  font-size: 0.9rem;
  /* Removed border-left */
}
.eco-tip img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.eco-tip strong {
  color: var(--color-text); /* Standard text color */
  font-weight: 600;
  flex-shrink: 0;
}
.eco-tip span {
  color: var(--color-text-light); /* Lighter tip text */
}

/* Overview Section (Score + Level) */
.overview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 3);
}
/* --- MODIFIED: Sun Score --- */
.sun-score {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Remove default card styles if applied */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.sun-score img {
  width: 100%;
  max-width: 250px;
}
/* --- MODIFIED: Sun Score Text Styling --- */
.sun-score .score-text {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; /* Constrain width to help centering */
}

.sun-score .points-value {
  font-size: 2.7rem; /* Fine-tune size */
  font-weight: 800;
  color: #854d0e; /* Darker Brown/Orange from reference */
  line-height: 1.1; /* Adjust line height */
  margin-bottom: 2px; /* Small gap */
  display: block; /* Ensure it takes full width for centering */
}
/* Ensure the span inside takes the style */
.sun-score .points-value span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* --- Find and Replace in style.css --- */
.sun-score .points-label {
  font-size: 0.6rem; /* Make text smaller */
  font-weight: 700;
  color: #b45309; /* Medium Brown/Orange */
  text-transform: uppercase;
  letter-spacing: 0.02em; /* Reduce letter spacing slightly */
  display: block;
  line-height: 1; /* Reduce line height */
}
/* Animation for score */
.points-value span.pop {
  display: inline-block;
  animation: pop 0.4s ease-out;
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.level-progress-new { /* Already has card styles from base */
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 3);
}
.level-progress-new img {
  width: 80px;
  height: 80px;
}
.level-progress-new .level-details {
  flex-grow: 1;
}
.level-progress-new .level-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.progress-bar-container {
  width: 100%;
  background-color: var(--color-border);
  border-radius: var(--radius-lg);
  height: 10px;
  overflow: hidden;
  margin: var(--spacing-unit) 0;
}
.progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  transition: width 0.5s ease-out;
}
.level-progress-new .level-next {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Log Actions */
.eco-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}
/* --- MODIFIED: Eco Action Button --- */
.eco-action-btn {
  background: var(--color-surface); /* Ensure white background */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: calc(var(--spacing-unit) * 1.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacing-unit) * 0.5);
  transition: all 0.2s ease; /* Smoother transition */
  box-shadow: var(--shadow-sm);
  width: 100%;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center; /* Center text */
}

.eco-action-btn img {
  width: 90px;
  height: auto;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  transition: transform 0.2s ease; /* Add transition to image */
}

.eco-action-btn .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text); /* Ensure default text color */
}

.eco-action-btn .points {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-action-points); /* Use lime green */
}

/* Hover effect */
/* --- Find and Replace in style.css --- */
button.eco-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary); /* Keep green border */
  /* NEW: Add a light green gradient background */
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: var(--color-primary-dark); /* Darker green text for contrast */
}

/* Ensure image still scales on hover */
button.eco-action-btn:hover img {
    transform: scale(1.1);
}

/* Ensure points text also changes color for contrast */
button.eco-action-btn:hover .points {
    color: var(--color-primary-dark); /* Darker green points */
}

/* Disabled state */
.eco-action-btn:disabled {
  opacity: 0.6; /* More visible disabled state */
  background: #f9fafb;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
  border-color: var(--color-border); /* Reset border */
  color: var(--color-text-light); /* Grey out text */
}
.eco-action-btn:disabled img {
    transform: none; /* Reset image transform */
}
.eco-action-btn:disabled .points {
    color: var(--color-text-light); /* Grey out points */
}
.eco-action-btn:disabled:hover {
  /* Prevent hover effect when disabled */
  border-color: var(--color-border);
  color: var(--color-text-light);
}

/* Remove button default styles if necessary */
button.btn {
    appearance: none;
    -webkit-appearance: none;
    background: none; /* Ensure no default browser background */
}

/* Tabs Section (History & Achievements) */
.tab-section { /* Already has card styles */
  padding: 0; /* Remove base padding, apply to content */
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  padding: 0 calc(var(--spacing-unit) * 3); /* Add padding here */
}
.tab-btn {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1); /* Adjust padding */
  margin-right: calc(var(--spacing-unit) * 2); /* Add spacing */
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all 0.2s ease;
  margin-bottom: -1px;
}
.tab-btn:hover {
  color: var(--color-text);
}
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-content {
  display: none;
  padding: calc(var(--spacing-unit) * 3); /* Add padding here */
}
.tab-content.active {
  display: block;
}

/* History Timeline */
.history-timeline {
  position: relative;
  padding-left: calc(var(--spacing-unit) * 4);
  max-height: 400px; /* Limit height and allow scroll */
  overflow-y: auto;
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: calc(var(--spacing-unit) * 1.5) 0;
  padding-right: var(--spacing-unit); /* Add padding for scrollbar */
  border-bottom: 1px dashed var(--color-border);
}
.timeline-item:last-child {
  border-bottom: none;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: -27px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
}
/* --- MODIFIED: Timeline Item Points --- */
.timeline-item .points {
  font-weight: 700;
  color: var(--color-action-points); /* Use lime green */
  font-size: 1rem; /* Adjusted size */
}
.timeline-item-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
}
.timeline-item-info img {
  width: 32px;
  height: 32px;
}
.timeline-item-info .details {
  display: flex;
  flex-direction: column;
}
.timeline-item-info .label { /* Added */
  font-weight: 600;
  font-size: 0.9rem;
}
.timeline-item-info .time {
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.activity-points-delete { /* Styles for delete button container */
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
}
.delete-activity-btn {
  background: #fef2f2;
  color: var(--color-error);
  border: 1px solid #fecaca;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.2;
  /* margin-left: var(--spacing-unit); */ /* Removed margin */
}
.timeline-item:hover .delete-activity-btn {
  opacity: 1;
}
.delete-activity-btn:hover {
  background: var(--color-error);
  color: white;
}

/* Achievement Tree */
.achievement-tree-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: calc(var(--spacing-unit) * 2) auto;
  min-height: 350px;
}
.tree-base {
  display: block;
  width: 100%;
  height: auto;
}
.badge-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: all 0.4s ease-in-out;
  transform: scale(0.9) translate(-50%, -50%); /* Start smaller and ensure centered */
  cursor: help;
  width: 70px;
}
.badge-node img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e5e7eb;
  padding: 4px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.badge-node span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
}
/* Badge positions (Adjust these %) */
#badge-first-step { top: 75%; left: 15%; }
#badge-recycle { top: 39%; left: 28%; }
#badge-tree-hugger { top: 90%; left: 50%; }
#badge-eco-hero { top: 36%; left: 64%; }

.badge-node.locked {
  filter: grayscale(100%);
  opacity: 0.5;
}
.badge-node.unlocked {
  filter: none;
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
}
.badge-node.unlocked img {
  background: var(--color-surface);
  border: 3px solid var(--color-sun);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.badge-node.unlocked span {
  color: var(--color-primary-dark);
}


/* --- 4. Sidebar Components (MODIFIED) --- */
.sidebar .stat-card-new { /* Base styles already applied */
  padding: calc(var(--spacing-unit) * 2.5);
}
.sidebar .stat-card-new h2 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  border: none;
  padding: 0;
}
/* MODIFIED: Stat Content Layout */
.stat-content {
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: space-between;
}
.stat-content img {
  width: 56px;
  height: 56px;
  margin-right: calc(var(--spacing-unit) * 2);
  flex-shrink: 0;
}
.stat-content .stat-value {
  font-size: 2.8rem; /* Adjusted size */
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
  text-align: right;
  flex-grow: 1;
}
/* Chart card styles */
#statistics-card, #breakdown-card {
    padding: calc(var(--spacing-unit) * 3); /* Restore padding */
}
#statistics-card canvas,
#breakdown-card canvas {
  height: 220px !important; /* Adjust height */
}

/* --- 5. Other Components --- */

/* Leaderboard */
.subtitle {
  text-align: left;
  margin-top: calc(var(--spacing-unit) * -2);
  margin-bottom: calc(var(--spacing-unit) * 3);
  font-size: 1rem;
}
.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.leaderboard-item {
  display: flex;
  align-items: center;
  padding: calc(var(--spacing-unit) * 2);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-unit);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.leaderboard-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}
.leaderboard-item .rank {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
  width: 40px;
}
.leaderboard-item .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  flex-grow: 1;
}
.leaderboard-item .points {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.leaderboard-item:nth-child(1) { border-left: 4px solid #FFD700; }
.leaderboard-item:nth-child(1) .rank { color: #b38600; font-size: 1.5rem; }
.leaderboard-item:nth-child(2) { border-left: 4px solid #C0C0C0; }
.leaderboard-item:nth-child(2) .rank { color: #8c8c8c; }
.leaderboard-item:nth-child(3) { border-left: 4px solid #CD7F32; }
.leaderboard-item:nth-child(3) .rank { color: #CD7F32; }


/* Notification */
.notification {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 3);
  right: calc(var(--spacing-unit) * 3);
  background: var(--color-text);
  color: white;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  max-width: 350px;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
  z-index: 2000;
  border-left: 4px solid var(--color-success);
}
.notification.show {
  opacity: 1;
  transform: translateY(0);
}
.notification.success { border-left-color: var(--color-success); }
.notification.error { border-left-color: var(--color-error); }
.notification.warning { border-left-color: var(--color-warning); }
.notification.success[style*="🏆"] {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-left-color: var(--color-sun);
}

/* Empty State */
.empty-state {
  text-align: center;
  color: var(--color-text-light);
  padding: calc(var(--spacing-unit) * 4);
  font-style: italic;
}


/* --- 6. Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
  }
  #statistics-card, #breakdown-card {
    grid-column: 1 / -1;
  }
  .nav-links {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 4);
    padding-top: var(--spacing-unit);
    border-top: 1px solid var(--color-border);
  }
  .main-header nav {
    flex-wrap: wrap;
  }
  .user-menu {
    margin-left: 0;
    order: 2;
    flex-grow: 1;
    justify-content: flex-end;
  }
  .logo { order: 1; }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    padding: 0;
  }
  .dashboard-wrapper {
    margin: 0;
    padding: calc(var(--spacing-unit) * 2);
    gap: calc(var(--spacing-unit) * 2);
  }
  .main-header {
    padding: calc(var(--spacing-unit) * 2);
  }
  .main-header nav {
    gap: calc(var(--spacing-unit) * 1.5);
  }
  .user-menu {
    width: 100%;
    justify-content: space-between;
  }
  .overview-section {
    grid-template-columns: 1fr;
  }
  .level-progress-new img {
    width: 60px;
    height: 60px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .eco-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .tab-btn {
    font-size: 0.9rem;
    padding: calc(var(--spacing-unit) * 1.5);
  }
  .history-timeline {
    padding-left: calc(var(--spacing-unit) * 3);
  }
  .timeline-item::after {
    left: -23px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  .sun-score .points-value {
      font-size: 2.5rem; /* Smaller sun score on mobile */
  }
  .sun-score .points-label {
      font-size: 0.6rem;
  }
  .stat-content .stat-value {
      font-size: 2.2rem; /* Smaller sidebar values */
  }
}

/* Login/Signup page specific styles (keep these minimal) */
.container:not(.dashboard-wrapper) { /* Target only login/signup */
    background-color: var(--color-surface);
    padding: calc(var(--spacing-unit) * 5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px; /* Limit width */
    margin: calc(var(--spacing-unit) * 4) auto; /* Center on page */
    animation: fadeInUp 0.6s ease-out;
}
.container:not(.dashboard-wrapper) h1 {
  text-align: center;
}
/* Input styles needed for login/signup */
.input-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.input-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.875rem;
}
.input-group input {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-surface);
    color: var(--color-text);
}
.input-group input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.1); /* Use primary color */
}
/* General Button style needed for login/signup */
button.btn {
  /* Use simpler button style for login/signup if needed */
  background: var(--color-primary);
  color: white;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
button.btn:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Message styles needed for login/signup */
.message {
    margin-top: calc(var(--spacing-unit) * 2);
    text-align: center;
    font-size: 0.875rem;
}
.message a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.message a:hover {
    color: var(--color-primary-dark);
}
.message.error, .message.success {
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--radius-sm);
    border-left-width: 4px;
    border-left-style: solid;
}
.message.error {
    color: var(--color-error);
    background-color: #fef2f2;
    border-left-color: var(--color-error);
}
.message.success {
    color: var(--color-success);
    background-color: #f0fdf4;
    border-left-color: var(--color-success);
}