:root {
    --primary-green: #2A8C5F;
    --primary-green-darker: #22704E; /* Added for hover state */
    --light-green: #E6F9F0;
    --accent-green: #34D399;
    --dark-text: #1F2937;
    --light-text: #6B7280;
    --background-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--dark-text);
}

.phone-mockup {
    width: 375px;
    height: 812px;
    background-color: var(--background-color);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
}
.status-icons .material-icons {
    font-size: 18px;
    margin-left: 4px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 30px; /* Fixed height */
}
.app-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-green);
    margin: 0;
    text-align: center;
    flex-grow: 1;
}
/* Added for cart icon hover effect */
.app-header .material-icons {
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Main Screen Content */
.screen {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}
.screen.active {
    display: flex;
}
.content {
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    padding: 5px 0;
}
.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    transition: color 0.3s ease; /* Added transition */
}
.nav-btn .material-icons {
    font-size: 28px;
}
.nav-btn .nav-text {
    font-size: 10px;
}
.nav-btn.active {
    color: var(--primary-green);
}


/* --- Screen 1 Specific Styles --- */
.camera-upload {
    text-align: center;
    padding: 30px 0;
}
.camera-icon-bg {
    width: 100px;
    height: 100px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    cursor: pointer; /* Added cursor */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}
.camera-icon {
    font-size: 48px;
    color: var(--primary-green);
}
.camera-upload p {
    font-size: 18px;
    font-weight: 500;
}

.log-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}
.log-btn {
    flex: 1;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; /* Added transition */
}

.ai-classification {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.ai-classification img {
    width: 100%;
    display: block;
}
.ai-result {
    background-color: var(--light-green);
    color: var(--primary-green);
    padding: 15px;
    text-align: center;
}
.ai-result p {
    margin: 0;
    font-weight: 500;
}

.primary-btn {
    width: 100%;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added transition */
}


/* --- Screen 2 & 3 General Card Styles --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}
h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

/* --- Screen 2 Specific Styles --- */
.ready-text {
    background-color: var(--light-green);
    color: var(--primary-green);
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    margin: 0;
}
.seasonal-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seasonal-card h4 {
    margin: 0 0 5px 0;
    color: var(--light-text);
}
.seasonal-card p {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}
.seasonal-card img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
}
.view-calendar {
    display: block;
    text-align: center;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 25px;
    text-decoration: none;
    transition: color 0.3s ease; /* Added transition */
}
.feed-post p {
    margin: 0 0 10px 0;
}
.feed-post img {
    width: 100%;
    border-radius: 12px;
}

/* --- Screen 3 Specific Styles --- */
.workshop-card {
    display: flex;
    align-items: center;
    gap: 15px;
}
.community-icon {
    font-size: 36px;
    color: var(--primary-green);
    background-color: var(--light-green);
    padding: 8px;
    border-radius: 12px;
}
.workshop-card p {
    margin: 0;
    line-height: 1.4;
}
.qa-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.qa-text {
    flex-grow: 1;
}
.qa-text p {
    margin: 0;
}
.qa-icons {
    display: flex;
    gap: 10px;
    color: var(--light-text);
}
/* Added for Q&A icon hover effect */
.qa-icons .material-icons {
    cursor: pointer;
    transition: color 0.3s ease;
}
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.image-grid img {
    width: 100%;
    border-radius: 12px;
}

/* --- PERFORMANCE OPTIMIZATIONS --- */

/* Hardware acceleration for smooth animations */
.screen,
.floating-leaf,
.logo-icon,
.onboarding-icon,
.action-btn,
.back-btn,
.primary-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize animations for better performance */
@keyframes float {
    0%, 100% { 
        transform: translate3d(0, 0, 0) rotate(0deg); 
    }
    50% { 
        transform: translate3d(0, -20px, 0) rotate(180deg); 
    }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale3d(1, 1, 1); 
    }
    50% { 
        transform: scale3d(1.05, 1.05, 1); 
    }
}

@keyframes ringRotate {
    0% { 
        transform: translate3d(-50%, -50%, 0) rotate(0deg); 
    }
    100% { 
        transform: translate3d(-50%, -50%, 0) rotate(360deg); 
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize scrolling performance */
.content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    contain: layout style paint;
}

/* Optimize phone mockup for better performance */
.phone-mockup {
    contain: layout style paint;
    will-change: transform;
}

/* Optimize screen transitions */
.screen {
    contain: layout style paint;
    transform: translateZ(0);
}

/* Optimize floating elements performance */
.floating-elements {
    contain: layout style;
    will-change: transform;
}

/* Optimize background patterns */
.splash-background,
.guide-background,
.tracker-background,
.assistant-background,
.dashboard-background,
.auth-background {
    contain: layout style paint;
    will-change: transform;
}

/* Optimize card performance */
.card,
.guide-card,
.tracker-card,
.feature-card,
.stat-card,
.action-btn {
    contain: layout style paint;
    will-change: transform;
}

/* Optimize text rendering */
h1, h2, h3, h4, h5, h6, p, span {
    text-rendering: optimizeSpeed;
}

/* Optimize image rendering */
img {
    image-rendering: optimizeSpeed;
    will-change: transform;
}

/* Reduce layout thrashing */
.app-header {
    contain: layout style;
}

/* Optimize button interactions */
button {
    contain: layout style paint;
    will-change: transform;
}

/* Optimize input fields */
input {
    contain: layout style;
}

/* Optimize animations for 60fps */
@media (prefers-reduced-motion: no-preference) {
    .floating-leaf {
        animation: float 6s ease-in-out infinite;
    }
    
    .logo-icon {
        animation: iconPulse 2s ease-in-out infinite;
    }
    
    .logo-ring {
        animation: ringRotate 3s linear infinite;
    }
}

/* --- HOVER EFFECTS --- */

/* Primary Button Hover */
.primary-btn:hover {
    background-color: var(--primary-green-darker);
    transform: translate3d(0, -2px, 0);
}

/* Log Option Buttons Hover */
.log-btn:hover {
    border-color: var(--primary-green);
    background-color: var(--light-green);
    color: var(--primary-green);
}
.log-btn.active { /* Style for selected button */
    border-color: var(--primary-green);
    background-color: var(--card-bg);
    color: var(--primary-green);
    box-shadow: 0 0 0 1px var(--primary-green);
}

/* Camera Icon Hover */
.camera-icon-bg:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(42, 140, 95, 0.2);
}

/* Bottom Navigation Hover */
.nav-btn:hover {
    color: var(--primary-green);
}

/* View Calendar Link Hover */
.view-calendar:hover {
    color: var(--primary-green-darker);
    text-decoration: underline;
}

/* Header & Q&A Icons Hover */
.app-header .material-icons:hover,
.qa-icons .material-icons:hover {
    color: var(--primary-green);
}

/* --- SPLASH SCREEN STYLES --- */
.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.leaf-3 {
    top: 40%;
    left: 80%;
    animation-delay: 3s;
}

.leaf-4 {
    top: 80%;
    left: 20%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.splash-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.splash-logo {
    margin-bottom: 30px;
    animation: logoEntrance 1.5s ease-out;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-container {
    position: relative;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 100px;
    color: white;
    display: block;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: ringRotate 3s linear infinite;
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo-text {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
    font-weight: 500;
}

.splash-tagline {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 40px 0;
    font-weight: 400;
    line-height: 1.4;
    max-width: 300px;
}

.splash-features {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.feature-item .material-icons {
    font-size: 20px;
    opacity: 0.8;
}

.loading-indicator {
    margin-top: 20px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- ONBOARDING STYLES --- */
.onboarding-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.onboarding-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

.pattern-1 {
    background: radial-gradient(circle at 20% 50%, var(--primary-green) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent-green) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, var(--light-green) 0%, transparent 50%);
}

.pattern-2 {
    background: linear-gradient(45deg, var(--primary-green) 0%, var(--accent-green) 50%, var(--light-green) 100%);
    background-size: 50px 50px;
}

.pattern-3 {
    background: conic-gradient(from 0deg at 50% 50%, var(--primary-green) 0deg, var(--accent-green) 120deg, var(--light-green) 240deg, var(--primary-green) 360deg);
    background-size: 100px 100px;
}

@keyframes patternMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.onboarding-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.onboarding-image {
    margin-bottom: 40px;
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-container {
    position: relative;
    display: inline-block;
}

.onboarding-icon {
    font-size: 120px;
    color: var(--primary-green);
    display: block;
    text-shadow: 0 4px 20px rgba(42, 140, 95, 0.3);
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(42, 140, 95, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.floating-icons {
    position: absolute;
    top: -20px;
    right: -20px;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    color: var(--accent-green);
    animation: floatAround 4s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    top: 30px;
    left: 20px;
    animation-delay: 1s;
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.chart-preview {
    position: absolute;
    bottom: -20px;
    right: -30px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: chartSlide 1s ease-out 0.5s both;
}

@keyframes chartSlide {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.mini-chart {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 40px;
}

.mini-chart .chart-bar {
    width: 8px;
    background: linear-gradient(to top, var(--primary-green), var(--accent-green));
    border-radius: 2px;
}

.rewards-preview {
    position: absolute;
    bottom: -30px;
    right: -40px;
    display: flex;
    gap: 10px;
    animation: rewardsSlide 1s ease-out 0.7s both;
}

@keyframes rewardsSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reward-badge {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(42, 140, 95, 0.3);
    animation: badgeFloat 2s ease-in-out infinite;
}

.reward-badge:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.onboarding-text {
    animation: textSlideIn 0.8s ease-out 0.3s both;
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-text p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0 0 50px 0;
    max-width: 320px;
}

.onboarding-dots {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    animation: dotsFadeIn 0.8s ease-out 0.6s both;
}

@keyframes dotsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(42, 140, 95, 0.3);
}

.onboarding-next {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: buttonSlideIn 0.8s ease-out 0.9s both;
    position: relative;
    overflow: hidden;
}

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.onboarding-next:hover::before {
    left: 100%;
}

.onboarding-next .material-icons {
    transition: transform 0.3s ease;
}

.onboarding-next:hover .material-icons {
    transform: translateX(3px);
}

/* --- WELCOME SCREEN STYLES --- */
.welcome-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}
.welcome-logo {
    margin-bottom: 20px;
}
.welcome-logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-green);
    margin: 10px 0 0 0;
}
.welcome-content p {
    font-size: 16px;
    color: var(--light-text);
    margin: 0 0 40px 0;
}
.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
}
.secondary-btn {
    width: 100%;
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.secondary-btn:hover {
    background-color: var(--primary-green);
    color: white;
}
.forgot-password-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
}
.forgot-password-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* --- AUTHENTICATION STYLES --- */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    overflow: hidden;
}

.auth-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.1;
    animation: patternMove 25s linear infinite;
}

.login-pattern {
    background: radial-gradient(circle at 30% 40%, var(--primary-green) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, var(--accent-green) 0%, transparent 50%);
}

.signup-pattern {
    background: conic-gradient(from 0deg at 50% 50%, var(--primary-green) 0deg, var(--accent-green) 120deg, var(--light-green) 240deg, var(--primary-green) 360deg);
    background-size: 80px 80px;
}

.forgot-pattern {
    background: linear-gradient(45deg, var(--primary-green) 0%, var(--accent-green) 25%, var(--light-green) 50%, var(--accent-green) 75%, var(--primary-green) 100%);
    background-size: 60px 60px;
}

.auth-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.auth-form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(42, 140, 95, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.auth-icon .material-icons {
    font-size: 40px;
    color: white;
}

.auth-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    font-size: 16px;
    color: var(--light-text);
    margin: 0;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 14px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--light-text);
    font-size: 20px;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(42, 140, 95, 0.1);
    transform: translateY(-2px);
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-green);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark-text);
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-green-darker);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-submit:hover::before {
    left: 100%;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 16px;
    color: var(--light-text);
    font-size: 14px;
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--dark-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.social-btn:hover {
    border-color: var(--primary-green);
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 140, 95, 0.15);
}

.google-btn .material-icons {
    color: #4285f4;
}

.auth-switch {
    text-align: center;
    color: var(--light-text);
    margin: 0;
    font-size: 14px;
}

.auth-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-green-darker);
    text-decoration: underline;
}

.back-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.back-btn:hover {
    background-color: var(--light-green);
    transform: scale(1.1);
}

.back-btn .material-icons {
    font-size: 20px;
}

/* Back button on splash screen */
#splash-screen .back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

#splash-screen .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Back button on onboarding screens */
#onboarding-1 .back-btn,
#onboarding-2 .back-btn,
#onboarding-3 .back-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#onboarding-1 .back-btn:hover,
#onboarding-2 .back-btn:hover,
#onboarding-3 .back-btn:hover {
    background: var(--light-green);
    transform: scale3d(1.1, 1.1, 1);
}

/* Enhanced back button styling for better visibility and performance */
.back-btn {
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.back-btn:hover::before {
    left: 100%;
}

/* Fast navigation transitions */
.screen {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.screen:not(.active) {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    pointer-events: none;
}

/* Optimize card animations */
.guide-card,
.tracker-card,
.feature-card,
.stat-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Smooth scrolling for chat messages */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 2px;
}

/* Optimize floating elements */
.floating-leaf {
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduce repaints on hover */
.action-btn:hover,
.log-btn:hover,
.camera-icon-bg:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--light-text);
}

/* Terms Agreement */
.terms-agreement {
    margin-bottom: 24px;
}

.terms-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Reset Password Info */
.reset-info {
    margin-bottom: 24px;
}

.info-card {
    background: var(--light-green);
    border: 1px solid rgba(42, 140, 95, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-card .material-icons {
    color: var(--primary-green);
    font-size: 20px;
    margin-top: 2px;
}

.info-card h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

.info-card p {
    margin: 0;
    font-size: 12px;
    color: var(--light-text);
    line-height: 1.4;
}

.back-to-login {
    text-align: center;
    margin-top: 24px;
}

.back-to-login .auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* --- DASHBOARD STYLES --- */
.dashboard-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    overflow: hidden;
}

.dashboard-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(42, 140, 95, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    animation: patternMove 30s linear infinite;
}

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

.welcome-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-btn {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--light-green);
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.1);
}

.profile-avatar .material-icons {
    color: white;
    font-size: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: cardSlideIn 0.6s ease-out;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(42, 140, 95, 0.3);
}

.stat-icon .material-icons {
    font-size: 24px;
    color: white;
}

.stat-content {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
}

.stat-trend .material-icons {
    font-size: 14px;
}

.quick-actions {
    margin-bottom: 32px;
}

.quick-actions h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--dark-text);
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: actionSlideIn 0.8s ease-out;
}

.action-btn:nth-child(2) {
    animation-delay: 0.1s;
}

.action-btn:nth-child(3) {
    animation-delay: 0.2s;
}

.action-btn:nth-child(4) {
    animation-delay: 0.3s;
}

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

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.action-btn.primary-action {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border: none;
}

.action-btn.primary-action .action-title,
.action-btn.primary-action .action-subtitle {
    color: white;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--light-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.primary-action .action-icon {
    background: rgba(255, 255, 255, 0.2);
}

.action-icon .material-icons {
    font-size: 24px;
    color: var(--primary-green);
}

.primary-action .action-icon .material-icons {
    color: white;
}

.action-content {
    flex-grow: 1;
}

.action-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.action-subtitle {
    display: block;
    font-size: 12px;
    color: var(--light-text);
    font-weight: 500;
}

.action-arrow {
    color: var(--light-text);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.action-btn:hover .action-arrow {
    transform: translateX(4px);
}

.recent-activity {
    margin-bottom: 32px;
}

.recent-activity h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--dark-text);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    animation: activitySlideIn 0.8s ease-out;
}

.activity-item:nth-child(2) {
    animation-delay: 0.1s;
}

.activity-item:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes activitySlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon .material-icons {
    font-size: 20px;
    color: var(--primary-green);
}

.activity-content {
    flex-grow: 1;
}

.activity-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 2px;
}

.activity-time {
    display: block;
    font-size: 12px;
    color: var(--light-text);
}

.activity-points {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* --- COMPOST GUIDE STYLES --- */
.guide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    overflow: hidden;
}

.guide-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(42, 140, 95, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    animation: patternMove 25s linear infinite;
}

.guide-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: heroSlideIn 0.8s ease-out;
}

@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.hero-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(42, 140, 95, 0.3);
}

.hero-image .material-icons {
    font-size: 30px;
    color: white;
}

.guide-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.8s ease-out;
}

.guide-card:nth-child(2) {
    animation-delay: 0.1s;
}

.guide-card:nth-child(3) {
    animation-delay: 0.2s;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header .material-icons {
    font-size: 24px;
    color: var(--primary-green);
    background: var(--light-green);
    padding: 8px;
    border-radius: 12px;
}

.card-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--dark-text);
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--dark-text);
}

.step-content p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.compost-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-category h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--dark-text);
}

.item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-tag {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(42, 140, 95, 0.2);
}

.item-list.avoid .item-tag {
    background: #fef2f2;
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--dark-text);
}

.timeline-content p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

/* --- PROGRESS TRACKER STYLES --- */
.tracker-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    overflow: hidden;
}

.tracker-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(42, 140, 95, 0.1) 0deg, rgba(52, 211, 153, 0.1) 120deg, rgba(34, 197, 94, 0.1) 240deg, rgba(42, 140, 95, 0.1) 360deg);
    background-size: 100px 100px;
    animation: patternMove 30s linear infinite;
}

.progress-overview {
    margin-bottom: 24px;
}

.progress-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.8s ease-out;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--dark-text);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: var(--light-green);
    color: var(--primary-green);
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-green) 0deg, var(--accent-green) 234deg, var(--border-color) 234deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-text);
    position: relative;
    z-index: 2;
}

.progress-info p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

.tracker-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tracker-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.8s ease-out;
}

.tracker-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tracker-card:nth-child(3) {
    animation-delay: 0.2s;
}

.tracker-card:nth-child(4) {
    animation-delay: 0.3s;
}

.temp-display {
    text-align: center;
    margin-bottom: 20px;
}

.temp-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.temp-status {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.temp-chart {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 60px;
    padding: 10px 0;
}

.temp-chart .chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-green), var(--accent-green));
    border-radius: 2px;
    min-height: 20px;
}

.moisture-meter {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

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

.moisture-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
}

.moisture-status {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.balance-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text);
    min-width: 100px;
}

.balance-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.balance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.balance-fill.green {
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
}

.balance-fill.brown {
    background: linear-gradient(90deg, #92400e, #d97706);
}

.balance-percent {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    min-width: 40px;
    text-align: right;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-green);
    border-radius: 12px;
    border: 1px solid rgba(42, 140, 95, 0.2);
}

.action-item .material-icons {
    color: var(--primary-green);
    font-size: 20px;
}

.action-text {
    flex: 1;
}

.action-text h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--dark-text);
}

.action-text p {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
}

.action-btn-small {
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-small:hover {
    background: var(--primary-green-darker);
    transform: translateY(-1px);
}

/* --- AI ASSISTANT STYLES --- */
.assistant-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    overflow: hidden;
}

.assistant-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(42, 140, 95, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    animation: patternMove 35s linear infinite;
}

.assistant-chat {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.8s ease-out;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.assistant-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(42, 140, 95, 0.3);
}

.assistant-avatar .material-icons {
    font-size: 24px;
    color: white;
}

.assistant-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--dark-text);
}

.assistant-info p {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: auto;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.assistant-message {
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar .material-icons {
    font-size: 16px;
    color: var(--primary-green);
}

.message-content {
    background: var(--light-green);
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    position: relative;
}

.user-message .message-content {
    background: var(--primary-green);
    color: white;
}

.message-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 16px;
}

.message-content li {
    font-size: 14px;
    margin-bottom: 4px;
}

.message-time {
    font-size: 10px;
    color: var(--light-text);
    position: absolute;
    bottom: -20px;
    right: 0;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.quick-questions {
    margin-bottom: 20px;
}

.quick-questions h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--dark-text);
}

.question-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.question-chip {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-chip:hover {
    background: var(--light-green);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.chat-input {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.chat-input .input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.chat-input-field:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(42, 140, 95, 0.1);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--primary-green-darker);
    transform: scale(1.1);
}

.assistant-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: cardSlideIn 0.8s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.feature-card .material-icons {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--dark-text);
}

.feature-card p {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

/* --- ANALYTICS STYLES --- */
.analytics-chart {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.analytics-chart h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
}
.chart-placeholder {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
    padding: 10px 0;
}
.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-green), var(--accent-green));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}
.analytics-insights h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}
.insight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}
.insight-item .material-icons {
    color: var(--primary-green);
    font-size: 24px;
}
.insight-item p {
    margin: 0;
    font-weight: 500;
}

/* --- REWARDS STYLES --- */
.rewards-summary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}
.points-display {
    margin-bottom: 10px;
}
.points-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-green);
}
.points-label {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}
.rewards-summary p {
    margin: 0;
    color: var(--light-text);
}
.rewards-list h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}
.reward-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}
.reward-item .material-icons {
    color: var(--primary-green);
    font-size: 24px;
}
.reward-info {
    flex-grow: 1;
}
.reward-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}
.reward-info p {
    margin: 0;
    font-size: 14px;
    color: var(--light-text);
}
.reward-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.reward-btn:hover {
    background: var(--primary-green-darker);
}

/* --- Screen 4 (Planting Calendar) Styles --- */
.calendar-card {
    padding: 0;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.calendar-month {
    font-weight: 600;
}
.calendar-back {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}
.calendar-back:hover {
    text-decoration: underline;
}
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 20px 20px;
}
.calendar-cell {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}
.calendar-cell.sow { background-color: #ecfdf5; }
.calendar-cell.transplant { background-color: #eff6ff; }
.calendar-cell.harvest { background-color: #fff7ed; }

/* Weather & Climate */
.weather-card {
    margin-top: 15px;
}
.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.weather-icon {
    color: var(--primary-green);
}
.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.weather-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
}
.weather-item .label {
    display: block;
    font-size: 12px;
    color: var(--light-text);
}
.weather-item .value {
    font-weight: 600;
}
.climate-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.climate-badge {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}
.climate-tip {
    color: var(--light-text);
    font-size: 12px;
}

/* Garden Planner Styles */
.planner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #85f469 0%, #00f2fe 100%);
    overflow: hidden;
}

.planner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(79, 172, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 242, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 25s ease-in-out infinite;
}

.planner-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: heroSlideIn 0.8s ease-out;
}

.planner-hero .hero-content h3 {
    background: linear-gradient(135deg, #d237c0, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.planner-hero .hero-image {
    font-size: 4rem;
    margin: 1rem 0;
    animation: iconFloat 3s ease-in-out infinite;
}

.planner-sections {
    display: grid;
    gap: 1.5rem;
}

.planner-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.6s ease-out;
    border: 1px solid rgba(96, 6, 6, 0.2);
}

.planner-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.planner-card .card-header .material-icons {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #4facfe;
}

.planner-card .card-header h4 {
    color: var(--dark-text);
    font-size: 1.2rem;
    margin: 0;
}

/* Calendar Styles */
.calendar-view {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1rem;
}

.calendar-month h5 {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: scale(1.05);
}

.day-number {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.day-tasks {
    position: absolute;
    bottom: 2px;
    display: flex;
    gap: 2px;
}

.task-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.task-dot.sow { background: #4facfe; }
.task-dot.harvest { background: #ff6b6b; }
.task-dot.water { background: #4ecdc4; }
.task-dot.transplant { background: #45b7d1; }
.task-dot.fertilize { background: #96ceb4; }

/* Garden Grid Styles */
.garden-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.garden-plot {
    aspect-ratio: 1;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.garden-plot:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: scale(1.02);
}

.plot-item {
    text-align: center;
    color: var(--dark-text);
}

.plot-item .material-icons {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.plot-item.tomato .material-icons { color: #ff6b6b; }
.plot-item.lettuce .material-icons { color: #4ecdc4; }
.plot-item.herbs .material-icons { color: #96ceb4; }
.plot-item.empty .material-icons { color: #ccc; }

.plot-item span:not(.material-icons) {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Recommendations Styles */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: translateX(5px);
}

.recommendation-item .material-icons {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #4facfe;
}

.rec-content h5 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.rec-content p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Plant Growth Tracker Styles */
.growth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    overflow: hidden;
}

.growth-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(168, 237, 234, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(254, 214, 227, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: patternMove 30s ease-in-out infinite;
}

.growth-overview {
    margin-bottom: 2rem;
}

.growth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.growth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.growth-header h3 {
    color: var(--dark-text);
    margin: 0;
    font-size: 1.3rem;
}

.growth-status {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: var(--dark-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.growth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(168, 237, 234, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(168, 237, 234, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.growth-sections {
    display: grid;
    gap: 1.5rem;
}

/* Timeline Chart Styles */
.timeline-chart {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1rem;
}

.chart-container {
    position: relative;
    height: 200px;
    background: linear-gradient(to top, rgba(168, 237, 234, 0.1), transparent);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.growth-line {
    position: relative;
    width: 100%;
    height: 100%;
}

.growth-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #617c65;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.growth-point.active {
    background: #4facfe;
    transform: translate(-50%, 50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.growth-point:hover {
    transform: translate(-50%, 50%) scale(1.1);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Health Metrics Styles */
.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(168, 237, 234, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.metric-fill.water { background: linear-gradient(90deg, #4ecdc4, #44a08d); }
.metric-fill.sun { background: linear-gradient(90deg, #ffd89b, #19547b); }
.metric-fill.nutrients { background: linear-gradient(90deg, #96ceb4, #feca57); }

.metric-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    min-width: 40px;
    text-align: right;
}

/* Photo Timeline Styles */
.photo-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.photo-item {
    text-align: center;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-placeholder {
    aspect-ratio: 1;
    background: rgba(168, 237, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    background: rgba(168, 237, 234, 0.3);
}

.photo-placeholder .material-icons {
    font-size: 2rem;
    color: #a8edea;
}

.photo-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photo-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
}

.photo-desc {
    font-size: 0.7rem;
    color: var(--light-text);
}

/* AI Gardening Assistant Styles */
.gardening-assistant-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffecd2 0%, #22bd55 100%);
    overflow: hidden;
}

.gardening-assistant-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 236, 210, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(252, 182, 159, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: patternMove 35s ease-in-out infinite;
}

/* Community Forum Styles */
.forum-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2aec91 0%, #764ba2 100%);
    overflow: hidden;
}

.forum-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(85, 93, 131, 0.242) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

.forum-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: heroSlideIn 0.8s ease-out;
}

.forum-hero .hero-content h3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.forum-hero .hero-image {
    font-size: 4rem;
    margin: 1rem 0;
    animation: iconFloat 3s ease-in-out infinite;
}

.forum-sections {
    display: grid;
    gap: 1.5rem;
}

.forum-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forum-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.forum-card .card-header .material-icons {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #667eea;
}

.forum-card .card-header h4 {
    color: var(--dark-text);
    font-size: 1.2rem;
    margin: 0;
}

/* Discussion List Styles */
.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discussion-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.discussion-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.discussion-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.discussion-avatar .material-icons {
    color: white;
    font-size: 1.2rem;
}

.discussion-content {
    flex: 1;
}

.discussion-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.discussion-content p {
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.discussion-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--light-text);
}

.discussion-stats {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #667eea;
    font-weight: 600;
    flex-shrink: 0;
}

/* Category Grid Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.category-item .material-icons {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.category-item h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.post-count {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Contributors List Styles */
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contributor-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contributor-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.contributor-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contributor-avatar .material-icons {
    color: white;
    font-size: 1.5rem;
}

.contributor-info {
    flex: 1;
}

.contributor-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.contributor-info p {
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.contributor-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.contributor-stats {
    text-align: center;
    flex-shrink: 0;
}

.points {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
}

.label {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Nearby Gardens Map Styles */
.map-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #98e1f0 0%, #00f2fe 100%);
    overflow: hidden;
}

.map-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(79, 172, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 242, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 25s ease-in-out infinite;
}

.map-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: heroSlideIn 0.8s ease-out;
}

.map-hero .hero-content h3 {
    background: linear-gradient(135deg, #008ae6, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.map-hero .hero-image {
    font-size: 4rem;
    margin: 1rem 0;
    animation: iconFloat 3s ease-in-out infinite;
}

.map-sections {
    display: grid;
    gap: 1.5rem;
}

.map-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.map-card .card-header .material-icons {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #1deaba;
}

.map-card .card-header h4 {
    color: var(--dark-text);
    font-size: 1.2rem;
    margin: 0;
}

/* Map Container Styles */
.map-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1rem;
}

.map-placeholder {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #3ef3a1, #00f2fe);
    border-radius: 12px;
    color: white;
}

.map-placeholder .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.map-placeholder p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.community { background: #4facfe; }
.legend-dot.private { background: #ff6b6b; }
.legend-dot.public { background: #4ecdc4; }

/* Garden List Styles */
.garden-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.garden-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(79, 172, 254, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.garden-item:hover {
    background: rgba(79, 172, 254, 0.1);
    transform: translateX(5px);
}

.garden-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.garden-image .material-icons {
    color: white;
    font-size: 1.5rem;
}

.garden-info {
    flex: 1;
}

.garden-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.garden-info p {
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.garden-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.garden-actions {
    flex-shrink: 0;
}

.action-btn-small {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

/* Add Garden Styles */
.add-garden {
    text-align: center;
    padding: 2rem;
}

.add-garden-content {
    background: rgba(79, 172, 254, 0.1);
    border-radius: 15px;
    padding: 2rem;
}

.add-garden-content .material-icons {
    font-size: 3rem;
    color: #4facfe;
    margin-bottom: 1rem;
    display: block;
}

.add-garden-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.2rem;
}

.add-garden-content p {
    margin: 0 0 1.5rem 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Events & Workshops Styles */
.events-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #36a12c 0%, #fecfef 100%);
    overflow: hidden;
}

.events-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 154, 158, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(254, 207, 239, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 30s ease-in-out infinite;
}

.events-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: heroSlideIn 0.8s ease-out;
}

.events-hero .hero-content h3 {
    background: linear-gradient(135deg, #c70e89, #fecfef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.events-hero .hero-image {
    font-size: 4rem;
    margin: 1rem 0;
    animation: iconFloat 3s ease-in-out infinite;
}

.events-sections {
    display: grid;
    gap: 1.5rem;
}

.events-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardSlideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.events-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.events-card .card-header .material-icons {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #ff9a9e;
}

.events-card .card-header h4 {
    color: var(--dark-text);
    font-size: 1.2rem;
    margin: 0;
}

/* Event List Styles */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 154, 158, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-item:hover {
    background: rgba(255, 154, 158, 0.1);
    transform: translateX(5px);
}

.event-date {
    text-align: center;
    margin-right: 1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
}

.month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-info {
    flex: 1;
}

.event-info h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.event-info p {
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--light-text);
    align-items: center;
}

.event-meta .material-icons {
    font-size: 1rem;
}

.event-actions {
    flex-shrink: 0;
}

/* Workshop Grid Styles */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.workshop-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 154, 158, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.workshop-item:hover {
    background: rgba(255, 154, 158, 0.2);
    transform: translateY(-5px);
}

.workshop-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.workshop-icon .material-icons {
    color: white;
    font-size: 1.5rem;
}

.workshop-item h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.workshop-item p {
    margin: 0 0 1rem 0;
    color: var(--light-text);
    font-size: 0.8rem;
    line-height: 1.4;
}

.workshop-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--light-text);
}

.duration, .level {
    background: rgba(255, 154, 158, 0.2);
    color: #ff9a9e;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Meetup List Styles */
.meetup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meetup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 154, 158, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.meetup-item:hover {
    background: rgba(255, 154, 158, 0.1);
    transform: translateX(5px);
}

.meetup-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.meetup-info p {
    margin: 0 0 0.25rem 0;
    color: var(--light-text);
    font-size: 0.8rem;
}

.meetup-location {
    color: #ff9a9e;
    font-size: 0.8rem;
    font-weight: 600;
}

.meetup-stats {
    text-align: right;
}

.attendees {
    background: rgba(255, 154, 158, 0.2);
    color: #ff9a9e;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}
