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

:root {
    --primary-green: #00B050;
    --dark-green: #006B30;
    --light-green: #40D17A;
    --sage-green: #8FBC8F;
    --mint-green: #E8F5E8;
    --forest-green: #2D5016;
    --text-dark: #1B1B1B;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: rgba(0, 176, 80, 0.15);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 176, 80, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px);
    box-shadow: 0 2px 20px rgba(0, 176, 80, 0.08);
    border-bottom: 1px solid rgba(0, 176, 80, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.cta-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--mint-green) 0%, rgba(255, 255, 255, 0.8) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 176, 80, 0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 176, 80, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 176, 80, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(0, 176, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 176, 80, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.hero-content .accent {
    color: var(--primary-green);
    position: relative;
}

.hero-content .accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--light-green), var(--primary-green));
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    padding: 16px 32px;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--mint-green) 0%, var(--white) 100%);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.leaf-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--mint-green) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.features-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 176, 80, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 20px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .hero::after {
        background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    }
}

/* ================================
   Centered Authentication Layout
=================================== */
.auth-section-centered {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--mint-green) 0%, rgba(255, 255, 255, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    width: 100vw;
}

.auth-section-centered::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 176, 80, 0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.auth-section-centered::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 176, 80, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 176, 80, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(0, 176, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 176, 80, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    pointer-events: none;
    z-index: 1;
}

.auth-container-centered {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px);
}

.auth-form-container-centered {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px var(--shadow),
        0 10px 30px rgba(0, 176, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 176, 80, 0.2);
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.auth-form-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 70px var(--shadow),
        0 15px 35px rgba(0, 176, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 24px 24px 0 0;
}

/* ================================
   Auth Header Styles
=================================== */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

/* ================================
   Form Elements
=================================== */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--mint-green);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.15);
    transform: translateY(-1px);
}

.form-group input:invalid:not(:focus) {
    border-color: #EF4444;
}

/* ================================
   Form Options (Remember me, etc.)
=================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-green);
}

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

.forgot-password:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* ================================
   Checkbox Group for Register
=================================== */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-group .checkbox-label {
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-group .checkbox-label a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group .checkbox-label a:hover {
    text-decoration: underline;
}

/* ================================
   Password Strength Indicator
=================================== */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    display: none;
}

/* ================================
   Auth Button
=================================== */
.auth-btn {
    width: 100%;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 24px;
}

.auth-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.auth-btn:active {
    transform: translateY(0);
}

/* ================================
   Auth Divider
=================================== */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 176, 80, 0.2);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    color: var(--text-light);
    font-size: 14px;
    position: relative;
}

/* ================================
   Social Authentication
=================================== */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--mint-green);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

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

.google-btn:hover {
    background: #f8f9fa;
}

.facebook-btn:hover {
    background: #f0f2f5;
}

/* ================================
   Auth Footer
=================================== */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ================================
   Modal Styles
=================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
}

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

.modal-header h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--mint-green);
    color: var(--text-dark);
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ================================
   Responsive Design for Auth
=================================== */
@media (max-width: 768px) {
    .auth-section-centered {
        padding: 16px;
    }
    
    .auth-form-wrapper {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .social-auth {
        gap: 8px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 24px 16px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 12px 14px;
    }
    
    .auth-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .social-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ================================
   Dashboard Layout
=================================== */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--mint-green);
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* ================================
   Sidebar Styles - FIXED VERSION
=================================== */
.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: 4px 0 20px rgba(0, 176, 80, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    border-right: 1px solid rgba(0, 176, 80, 0.1);
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

/* Desktop - sidebar always visible */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
    }
    
    .main-content {
        margin-left: 280px;
    }
}

/* Mobile - sidebar hidden by default */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 176, 80, 0.2);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Mobile overlay */
    body.sidebar-open {
        overflow: hidden;
    }
    
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 176, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    flex-grow: 1;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    background: var(--mint-green);
}

/* Show close button only on mobile */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.sidebar-nav {
    padding: 24px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--mint-green);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 176, 80, 0.1), transparent);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 176, 80, 0.1);
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    background: var(--mint-green);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

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

/* ================================
   Main Content Area - FIXED
=================================== */
.main-content {
    flex: 1;
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================
   Top Header - FIXED
=================================== */
.top-header {
    background: var(--white);
    padding: 20px 32px;
    box-shadow: 0 2px 10px rgba(0, 176, 80, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 176, 80, 0.05);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: none;
}

.mobile-toggle:hover {
    background: var(--mint-green);
}

/* Show mobile toggle only on mobile */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--mint-green);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 16px;
    z-index: 1;
}

/* ================================
   FIXED NOTIFICATION STYLES
=================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative; /* Important for dropdown positioning */
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: var(--mint-green);
    color: var(--primary-green);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: #EF4444;
    border-radius: 9px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Dropdown styles */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: white;
    border: 1px solid rgba(0, 176, 80, 0.15);
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 176, 80, 0.1);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0, 176, 80, 0.15);
    border-top: 1px solid rgba(0, 176, 80, 0.15);
    transform: rotate(45deg);
    z-index: -1;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafafa, #ffffff);
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.clear-notifications {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-notifications:hover {
    background: var(--mint-green);
    color: var(--dark-green);
}

.notification-content {
    max-height: 320px;
    overflow-y: auto;
}

.notification-content::-webkit-scrollbar {
    width: 4px;
}

.notification-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.notification-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

#notificationList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: rgba(0, 176, 80, 0.05);
    border-left: 3px solid var(--primary-green);
    font-weight: 500;
}

.notification-item.unread:hover {
    background-color: rgba(0, 176, 80, 0.08);
}

.notification-item.read {
    opacity: 0.8;
}

#noNotifications {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 280px;
        right: -20px; /* Adjust for mobile margins */
    }
    
    .notification-dropdown::before {
        right: 35px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -16px;
        left: auto;
    }
    
    .notification-dropdown::before {
        right: 50px;
    }
}

/* Loading state */
.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.notification-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   Dashboard Content
=================================== */
.dashboard-content {
    padding: 32px;
    max-width: 1400px;
    flex-grow: 1;
    overflow-y: auto;
}

/* ================================
   Stats Cards
=================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 176, 80, 0.08);
    border: 1px solid rgba(0, 176, 80, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), var(--light-green));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 176, 80, 0.15);
}

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

.stat-title {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.stat-icon.scans { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.stat-icon.diseases { background: linear-gradient(135deg, #EF4444, #DC2626); }
.stat-icon.healthy { background: linear-gradient(135deg, var(--primary-green), var(--dark-green)); }
.stat-icon.accuracy { background: linear-gradient(135deg, #F59E0B, #D97706); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--primary-green); }
.stat-change.negative { color: #EF4444; }

/* ================================
   Upload Section
=================================== */
.upload-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 176, 80, 0.1);
    border: 1px solid rgba(0, 176, 80, 0.1);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
}

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

.upload-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.upload-header p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

.upload-area {
    border: 3px dashed var(--primary-green);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 176, 80, 0.02), rgba(0, 176, 80, 0.05));
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: var(--dark-green);
    background: linear-gradient(135deg, rgba(0, 176, 80, 0.05), rgba(0, 176, 80, 0.08));
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: var(--light-green);
    background: linear-gradient(135deg, rgba(0, 176, 80, 0.08), rgba(0, 176, 80, 0.12));
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.upload-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.upload-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.upload-formats {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
}

#file-input {
    display: none;
}

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

.upload-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* ================================
   Processing Overlay
=================================== */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 176, 80, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-green);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
}

/* ================================
   Analysis Results
=================================== */
.analysis-section {
    display: none;
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 176, 80, 0.1);
    border: 1px solid rgba(0, 176, 80, 0.1);
    margin-bottom: 32px;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 176, 80, 0.1);
}

.analysis-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    flex-grow: 1;
}

.analysis-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-status.processing {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
}

.analysis-status.complete {
    background: rgba(0, 176, 80, 0.1);
    color: var(--dark-green);
}

.analysis-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

.image-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--mint-green);
}

.image-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.result-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

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

.confidence-score span:first-child {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    min-width: 80px;
}

.confidence-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 176, 80, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

.confidence-value {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 14px;
    min-width: 40px;
    text-align: right;
}

.result-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.treatment-section {
    background: var(--mint-green);
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.treatment-section h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.treatment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treatment-list li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.treatment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 600;
}

/* ================================
   Recent Scans
=================================== */
.recent-scans {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 176, 80, 0.1);
    border: 1px solid rgba(0, 176, 80, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 176, 80, 0.1);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.scan-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scan-item:hover {
    background: var(--mint-green);
}

.scan-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mint-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.scan-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-info {
    flex: 1;
    min-width: 0;
}

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

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

.scan-result {
    text-align: right;
    flex-shrink: 0;
}

.result-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    display: inline-block;
}

.result-status.healthy {
    background: rgba(0, 176, 80, 0.1);
    color: var(--dark-green);
}

.result-status.disease {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.scan-date {
    color: var(--text-light);
    font-size: 11px;
}

/* ================================
   Mobile Responsiveness - FIXED
=================================== */
@media (max-width: 1024px) {
    .search-input {
        width: 200px;
    }
    
    .analysis-content {
        grid-template-columns: 250px 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }
    
    .top-header {
        padding: 16px 20px;
    }
    
    .dashboard-content {
        padding: 20px 16px;
    }
    
    .upload-section {
        padding: 24px 16px;
    }
    
    .upload-area {
        padding: 32px 16px;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-preview img {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .recent-scans {
        padding: 24px 16px;
    }
    
    .analysis-section {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.2rem;
    }
    
    .upload-header h2 {
        font-size: 1.4rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .notification-btn {
        padding: 8px;
        font-size: 1rem;
    }
    
    .dashboard-content {
        padding: 16px 12px;
    }
    
    .upload-area {
        padding: 24px 16px;
    }
    
    .upload-text h3 {
        font-size: 1rem;
    }
    
    .upload-text p {
        font-size: 14px;
    }
}