/* CSS Variables - Agricultural Theme */
:root {
    /* Colors */
    --primary: hsl(142, 71%, 45%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-glow: hsl(142, 71%, 55%);
    
    --secondary: hsl(142, 30%, 96%);
    --secondary-foreground: hsl(142, 71%, 25%);
    
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(142, 71%, 12%);
    
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(142, 71%, 12%);
    
    --muted: hsl(142, 15%, 96%);
    --muted-foreground: hsl(142, 20%, 50%);
    
    --accent: hsl(35, 100%, 50%);
    --accent-foreground: hsl(0, 0%, 98%);
    
    --earth: hsl(25, 60%, 45%);
    --earth-foreground: hsl(0, 0%, 98%);
    
    --success: hsl(142, 71%, 45%);
    --success-foreground: hsl(0, 0%, 98%);
    
    --warning: hsl(45, 93%, 47%);
    --warning-foreground: hsl(0, 0%, 98%);
    
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(210, 40%, 98%);
    
    --border: hsl(142, 30%, 90%);
    --input: hsl(142, 30%, 94%);
    
    /* Text colors */
    --text-primary: hsl(142, 71%, 12%);
    --text-secondary: hsl(142, 20%, 50%);
    
    /* Success/Error colors for notifications */
    --success-light: hsl(142, 30%, 96%);
    --earth-light: hsl(25, 60%, 96%);
    --primary-light: hsl(142, 30%, 96%);
    --warning-light: hsl(45, 93%, 96%);
    --primary-dark: hsl(142, 71%, 35%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
    --gradient-earth: linear-gradient(135deg, var(--earth), var(--accent));
    --gradient-hero: linear-gradient(135deg, var(--primary), var(--earth));
    --gradient-card: linear-gradient(145deg, var(--card), var(--secondary));
    
    /* Shadows */
    --shadow-primary: 0 10px 30px -5px hsla(142, 71%, 45%, 0.3);
    --shadow-earth: 0 8px 25px -8px hsla(25, 60%, 45%, 0.4);
    --shadow-card: 0 4px 15px -3px hsla(142, 71%, 45%, 0.1);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
}

/* Dark mode variables */
body.dark {
    --primary: hsl(142, 71%, 55%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-glow: hsl(142, 71%, 65%);
    
    --secondary: hsl(142, 20%, 14%);
    --secondary-foreground: hsl(142, 71%, 75%);
    
    --background: hsl(0, 0%, 9%);
    --foreground: hsl(0, 0%, 98%);
    
    --card: hsl(0, 0%, 11%);
    --card-foreground: hsl(0, 0%, 98%);
    
    --muted: hsl(142, 15%, 15%);
    --muted-foreground: hsl(142, 20%, 65%);
    
    --border: hsl(142, 30%, 20%);
    --input: hsl(142, 30%, 16%);
}

/* Dark mode body styles */
body.dark {
    background-color: hsl(0, 0%, 9%);
    color: hsl(0, 0%, 98%);
}

/* Dark mode section backgrounds */
body.dark .services {
    background: hsl(0, 0%, 6%);
}

body.dark .weather {
    background: hsl(0, 0%, 8%);
}

body.dark .market {
    background: hsl(0, 0%, 6%);
}

body.dark .footer {
    background: hsl(0, 0%, 5%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px hsla(142, 71%, 45%, 0.4);
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 16px 32px;
    font-size: 1.125rem;
    box-shadow: var(--shadow-primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-cta {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 16px 32px;
    font-size: 1.125rem;
    box-shadow: var(--shadow-primary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
}

.full-width { width: 100%; }
.small { padding: 8px 16px; font-size: 0.75rem; }
.large { padding: 16px 32px; font-size: 1rem; }

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

/* Dark mode navigation */
body.dark .nav {
    background: rgba(23, 23, 23, 0.95);
    border-bottom: 1px solid hsl(142, 30%, 20%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.logo-icon i {
    color: var(--primary-foreground);
    font-size: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--foreground);
    margin: 0;
    font-weight: 600;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Global dark mode navbar fix - prevent white text issues */
body.dark * {
    -webkit-text-fill-color: initial;
}

body.dark .nav * {
    color: inherit;
}

body.dark .nav-links a,
body.dark .nav-links a:link,
body.dark .nav-links a:visited,
body.dark .nav-links a:active {
    color: hsl(0, 0%, 95%) !important;
    -webkit-text-fill-color: hsl(0, 0%, 95%) !important;
}

body.dark .nav-links a:hover {
    color: hsl(142, 71%, 55%) !important;
    -webkit-text-fill-color: hsl(142, 71%, 55%) !important;
}

/* Dark mode navigation links */
body.dark .nav-links a {
    color: hsl(0, 0%, 95%) !important;
}

body.dark .nav-links a:hover {
    color: hsl(142, 71%, 55%) !important;
}

/* Force navbar text color in dark mode for all states */
body.dark .nav-links {
    color: hsl(0, 0%, 95%);
}

body.dark .nav-container .nav-links a {
    color: hsl(0, 0%, 95%) !important;
}

body.dark .nav-container .nav-links a:hover {
    color: hsl(142, 71%, 55%) !important;
}

body.dark .nav-container .nav-links a:visited {
    color: hsl(0, 0%, 95%) !important;
}

body.dark .nav-container .nav-links a:active {
    color: hsl(0, 0%, 95%) !important;
}

/* Dark mode service cards */
body.dark .service-card {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .service-card h3 {
    color: hsl(0, 0%, 98%);
}

body.dark .service-card p {
    color: hsl(142, 20%, 65%);
}

body.dark .service-features li {
    color: hsl(142, 20%, 65%);
}

/* Dark mode weather cards */
body.dark .current-weather,
body.dark .irrigation-alerts {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .weather-header h3,
body.dark .alerts-header h3 {
    color: hsl(0, 0%, 98%);
}

body.dark .weather-header p {
    color: hsl(142, 20%, 65%);
}

body.dark .weather-item .label {
    color: hsl(142, 20%, 65%);
}

body.dark .weather-item .value {
    color: hsl(0, 0%, 98%);
}

/* Dark mode market cards */
body.dark .price-card {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .price-card h3 {
    color: hsl(0, 0%, 98%);
}

body.dark .price-card .location {
    color: hsl(142, 20%, 65%);
}

/* Dark mode footer */
body.dark .footer-brand h3,
body.dark .footer-links h4,
body.dark .footer-support h4,
body.dark .footer-newsletter h4 {
    color: hsl(0, 0%, 98%);
}

body.dark .footer-brand p,
body.dark .footer-newsletter p {
    color: hsl(142, 20%, 65%);
}

body.dark .footer-links a,
body.dark .footer-support a {
    color: hsl(142, 20%, 65%);
}

body.dark .footer-links a:hover,
body.dark .footer-support a:hover {
    color: hsl(142, 71%, 55%);
}

body.dark .contact-item span {
    color: hsl(142, 20%, 65%);
}

body.dark .footer-credit,
body.dark .footer-legal a {
    color: hsl(142, 20%, 65%);
}

body.dark .government-badge span {
    color: hsl(142, 20%, 65%);
}

/* Dark mode language selector */
body.dark .lang-selector {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .lang-selector:hover {
    background: hsl(142, 71%, 55%);
    color: hsl(0, 0%, 98%);
}

body.dark .lang-selector.active {
    background: hsl(142, 71%, 55%);
    color: hsl(0, 0%, 98%);
}

body.dark .available-text {
    color: hsl(142, 71%, 55%);
}

/* Dark mode section headers */
body.dark .section-header h2 {
    color: hsl(0, 0%, 98%);
}

body.dark .section-header p {
    color: hsl(142, 20%, 65%);
}

/* Dark mode services section */
body.dark .services {
    background: hsl(0, 0%, 9%);
}

body.dark .services-cta {
    background: linear-gradient(135deg, hsl(142, 71%, 45%), hsl(142, 71%, 35%));
}

/* Dark mode language support card */
body.dark .language-support-card {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
}

body.dark .language-support-card:hover {
    border-color: hsl(142, 71%, 55%);
    background: hsl(0, 0%, 13%);
}

body.dark .language-support-card .lang-selector {
    background: hsl(0, 0%, 15%);
    border-color: hsl(142, 30%, 25%);
}

body.dark .language-support-card .lang-selector:hover {
    background: hsl(142, 71%, 45%);
    color: hsl(0, 0%, 98%);
    border-color: hsl(142, 71%, 55%);
}

body.dark .language-support-card .lang-selector.active {
    background: hsl(142, 71%, 45%);
    color: hsl(0, 0%, 98%);
    border-color: hsl(142, 71%, 55%);
}

/* Dark mode insight cards */
body.dark .insight-card {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .insight-card h4 {
    color: hsl(0, 0%, 98%);
}

body.dark .insight-card p {
    color: hsl(142, 20%, 65%);
}

/* Dark mode buttons */
body.dark .btn-outline {
    background: transparent;
    color: hsl(0, 0%, 98%);
    border-color: hsl(142, 30%, 20%);
}

body.dark .btn-outline:hover {
    background: hsl(142, 71%, 55%);
    color: hsl(0, 0%, 98%);
    border-color: hsl(142, 71%, 55%);
}

/* Dark mode price alerts */
body.dark .price-alerts {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .price-alerts h3,
body.dark .alerts-header h3 {
    color: hsl(0, 0%, 98%);
}

body.dark .alerts-header {
    color: hsl(0, 0%, 98%);
}

body.dark .alerts-header i {
    color: hsl(142, 71%, 55%);
}

body.dark .alert-item {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark .alert-item.opportunity {
    background: hsla(142, 71%, 45%, 0.2);
    border-color: hsla(142, 71%, 45%, 0.4);
}

body.dark .alert-item.warning {
    background: hsla(45, 93%, 47%, 0.2);
    border-color: hsla(45, 93%, 47%, 0.4);
}

body.dark .alert-item.success {
    background: hsla(142, 71%, 45%, 0.2);
    border-color: hsla(142, 71%, 45%, 0.4);
}

body.dark .alert-item .crop,
body.dark .alert-item .field {
    color: hsl(0, 0%, 98%);
}

body.dark .alert-item .message {
    color: hsl(142, 20%, 65%);
}

/* Dark mode forecast */
body.dark .forecast-day {
    color: hsl(0, 0%, 98%);
}

body.dark .forecast h4 {
    color: hsl(0, 0%, 98%);
}

/* Dark mode inputs */
body.dark input,
body.dark select,
body.dark textarea {
    background: hsl(0, 0%, 11%);
    border-color: hsl(142, 30%, 20%);
    color: hsl(0, 0%, 98%);
}

body.dark input::placeholder {
    color: hsl(142, 20%, 65%);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--foreground);
}

/* Dark mode mobile menu button */
body.dark .mobile-menu-btn {
    color: hsl(0, 0%, 95%);
}

/* Dark mode logo text */
body.dark .logo-text h1 {
    color: hsl(0, 0%, 95%);
}

body.dark .logo-text p {
    color: hsl(142, 20%, 65%);
}

.mobile-menu {
    display: none;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    color: var(--foreground);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.mobile-btn {
    margin-top: 16px;
}

/* Theme Toggle */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#theme-toggle {
    min-width: 40px;
    padding: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: hsla(0, 0%, 100%, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    border-radius: 24px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    line-height: 1.1;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
}

.hero-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: hsla(0, 0%, 100%, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 32px;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid hsla(0, 0%, 100%, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
    margin: 8px auto 0;
    animation: scrollDot 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 24px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: hsla(142, 30%, 96%, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
    align-items: stretch;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid hsla(142, 30%, 90%, 0.5);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

.service-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon.success { background: var(--success); color: var(--success-foreground); }
.service-icon.warning { background: var(--warning); color: var(--warning-foreground); }
.service-icon.primary { background: var(--primary); color: var(--primary-foreground); }
.service-icon.earth { background: var(--earth); color: var(--earth-foreground); }
.service-icon.accent { background: var(--accent); color: var(--accent-foreground); }
.service-icon.language { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }

.service-icon i {
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 8px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 12px;
}

.service-btn {
    width: 100%;
    transition: all 0.3s ease;
}

.service-card:hover .service-btn {
    background: var(--primary);
    color: var(--primary-foreground);
}

.services-cta {
    text-align: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 48px 32px;
    box-shadow: var(--shadow-primary);
}

.services-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 16px;
}

.services-cta p {
    color: hsla(0, 0%, 100%, 0.9);
    margin-bottom: 24px;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.services-cta .btn-cta {
    background: hsla(0, 0%, 100%, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    color: var(--primary-foreground);
}

.services-cta .btn-cta:hover {
    background: hsla(0, 0%, 100%, 0.4);
}

/* Language Support Card - Compact Version */
.language-support-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
}

.language-support-card:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.compact-language-grid {
    margin: 16px 0;
}

.available-text {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 12px;
    text-align: center;
}

.compact-lang-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.language-support-card .lang-selector {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    width: 100%;
}

.language-support-card .lang-selector:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.language-support-card .lang-selector.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Weather Section */
.weather {
    padding: var(--section-padding);
    background: var(--background);
}

.weather-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.current-weather {
    background: var(--gradient-card);
    border: 1px solid hsla(142, 30%, 90%, 0.5);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.weather-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.weather-header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.current-temp {
    text-align: right;
}

.temp {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.condition {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.weather-item .label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.weather-item .value {
    font-weight: 600;
    font-size: 0.875rem;
}

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

.forecast h4 {
    font-weight: 600;
    margin-bottom: 12px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.forecast-day {
    text-align: center;
    padding: 12px;
    background: hsla(142, 30%, 96%, 0.5);
    border-radius: 8px;
}

.forecast-day .day {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.forecast-day i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.forecast-day .temps {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.forecast-day .rain {
    font-size: 0.75rem;
    color: var(--primary);
}

.irrigation-alerts {
    background: var(--gradient-card);
    border: 1px solid hsla(142, 30%, 90%, 0.5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.alerts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.alerts-header i {
    color: var(--primary);
    font-size: 1.25rem;
}

.alerts-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.alerts-list {
    margin-bottom: 16px;
}

.alert-item {
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 12px;
}

.alert-item.high {
    background: hsla(0, 84%, 60%, 0.1);
    border-left-color: var(--destructive);
}

.alert-item.medium {
    background: hsla(45, 93%, 47%, 0.1);
    border-left-color: var(--warning);
}

.alert-item.low {
    background: hsla(142, 71%, 45%, 0.1);
    border-left-color: var(--success);
}

.alert-item .field {
    font-weight: 500;
    font-size: 0.875rem;
}

.alert-item .message {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 4px;
}

.weather-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.insight-card {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    color: white;
}

.insight-card.rain {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
}

.insight-card.temp {
    background: var(--gradient-earth);
    box-shadow: var(--shadow-earth);
}

.insight-card.wind {
    background: var(--success);
    box-shadow: var(--shadow-card);
}

.insight-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.insight-card h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.insight-card p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* Market Section */
.market {
    padding: var(--section-padding);
    background: hsla(142, 30%, 96%, 0.3);
}

.market-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.price-card {
    background: var(--gradient-card);
    border: 1px solid hsla(142, 30%, 90%, 0.5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

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

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.price-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 4px;
}

.location i {
    font-size: 0.75rem;
}

.quality-badge {
    background: var(--muted);
    color: var(--muted-foreground);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

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

.current-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.current-price i {
    color: var(--primary);
    font-size: 1.25rem;
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
}

.unit {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-left: 4px;
}

.price-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.price-change.positive {
    color: var(--success);
}

.price-change.negative {
    color: var(--destructive);
}

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

.updated {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.view-all-markets {
    text-align: center;
}

.market-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-alerts {
    background: var(--gradient-card);
    border: 1px solid hsla(142, 30%, 90%, 0.5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.price-alerts .alert-item {
    border-left: none;
    border: 1px solid;
    border-radius: 8px;
}

.price-alerts .alert-item.opportunity {
    background: hsla(142, 71%, 45%, 0.1);
    border-color: hsla(142, 71%, 45%, 0.2);
}

.price-alerts .alert-item.warning {
    background: hsla(45, 93%, 47%, 0.1);
    border-color: hsla(45, 93%, 47%, 0.2);
}

.price-alerts .alert-item.success {
    background: hsla(142, 71%, 45%, 0.1);
    border-color: hsla(142, 71%, 45%, 0.2);
}

.price-alerts .crop {
    font-weight: 500;
    font-size: 0.875rem;
}

.price-alerts .message {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 4px;
}



/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
}

.footer-main {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 32px;
}

.footer-brand {
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.footer-logo .logo-icon i {
    color: var(--primary-foreground);
    font-size: 1.5rem;
}

.footer-logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.25rem;
    color: var(--foreground);
}

.footer-logo p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.footer-brand p {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.contact-item i {
    color: var(--primary);
    font-size: 1rem;
}

.contact-item span {
    font-size: 0.875rem;
    color: var(--foreground);
}

.footer-links h4,
.footer-support h4,
.footer-newsletter h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-support ul {
    list-style: none;
}

.footer-links li,
.footer-support li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-support a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-support a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--foreground);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(142, 71%, 45%, 0.2);
}

.language-selector {
    margin-bottom: 24px;
}

.language-selector h5 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 8px;
}

.languages {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    background: var(--secondary);
    border: none;
    border-radius: 6px;
    color: var(--secondary-foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Multi-Language Selector Styles */
.lang-selector {
    background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--secondary)));
    border: 2px solid hsl(var(--border));
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-selector:hover {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    color: hsl(var(--primary-foreground));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary-hue), 50%, 50%, 0.3);
}

.lang-selector.active {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    box-shadow: 0 2px 8px hsla(var(--primary-hue), 50%, 50%, 0.2);
}

@media (max-width: 768px) {
    .lang-selector {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.social-media h5 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-2px);
}

.footer-separator {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.government-badge {
    text-align: center;
    padding-bottom: 24px;
}

.government-badge span {
    display: inline-flex;
    align-items: center;
    background: hsla(142, 71%, 45%, 0.1);
    border: 1px solid hsla(142, 71%, 45%, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    /* Hero Section */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 48px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Grid Layouts */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-grid,
    .market-grid,

    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
    

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .service-card,
    .price-card,

    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SmartFarmer Full-Screen Interface */

/* Additional Form Navigation Styles */
.step-buttons {
    margin-top: 30px;
    text-align: center;
}

.continue-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.continue-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.continue-btn.enabled {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.continue-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

/* Card Selection States */
.lang-card.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.lang-card.selected .lang-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.crop-card.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.crop-card.selected .crop-icon {
    filter: brightness(1.2);
}

.soil-option input[type="radio"]:checked + .soil-card {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

/* Image Upload Improvements */
.uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.uploaded-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.uploaded-image:hover {
    transform: scale(1.05);
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 59, 48, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1);
}


.smartfarmer-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--earth));
    z-index: 10000;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.smartfarmer-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.form-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
}

.form-header p {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin: 0;
}

.close-btn {
    background: none;
    border: 2px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--muted-foreground);
}

.close-btn:hover {
    background: var(--destructive);
    color: white;
    border-color: var(--destructive);
}

.form-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.progress-bar-container {
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    width: 20%;
    transition: width 0.3s ease;
}

.progress-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.form-steps {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-step {
    padding: 60px;
    display: none;
    animation: slideIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.form-step > p {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

/* Language Selection */
.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.lang-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.lang-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lang-card.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.lang-icon {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.lang-card h3 {
    font-size: 1.5rem;
    margin: 10px 0 5px 0;
}

.lang-card p {
    color: var(--muted-foreground);
    margin: 0;
}

.lang-card.selected p {
    color: rgba(255, 255, 255, 0.8);
}

/* Location Section */
.location-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.location-auto-btn {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: white;
    border: none;
    border-radius: 16px;
    padding: 30px 40px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.location-auto-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.location-auto-btn i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.location-auto-btn span {
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.location-auto-btn small {
    opacity: 0.8;
    font-size: 0.875rem;
}

.location-divider {
    margin: 30px 0;
    position: relative;
    color: var(--muted-foreground);
}

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

.location-divider span {
    background: white;
    padding: 0 20px;
    position: relative;
}

.manual-location-form {
    text-align: left;
}

.manual-location-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--foreground);
}

.manual-location-form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.125rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.manual-location-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.continue-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.continue-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Crop Selection */
.crop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.crop-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.crop-card:hover {
    border-color: var(--success);
    background: var(--success-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.crop-card.selected {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.crop-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.crop-card h3 {
    font-size: 1.25rem;
    margin: 10px 0 5px 0;
}

.crop-card p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.875rem;
}

.crop-card.selected p {
    color: rgba(255, 255, 255, 0.8);
}

/* Soil Information */
.soil-type-section {
    margin-bottom: 40px;
}

.soil-type-section h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 20px;
}

.soil-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.soil-option {
    cursor: pointer;
}

.soil-option input[type="radio"] {
    display: none;
}

.soil-card {
    display: block;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.soil-option input[type="radio"]:checked + .soil-card {
    border-color: var(--earth);
    background: var(--earth-light);
}

.soil-card strong {
    display: block;
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 5px;
}

.soil-card small {
    color: var(--muted-foreground);
}

/* Image Upload */
.soil-images-section {
    margin-top: 40px;
}

.soil-images-section h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 10px;
}

.upload-help {
    color: var(--muted-foreground);
    margin-bottom: 20px;
}

.image-upload-area {
    max-width: 600px;
    margin: 0 auto;
}

.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: var(--muted);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--muted-foreground);
    margin-bottom: 15px;
    display: block;
}

.upload-dropzone p {
    font-size: 1.125rem;
    color: var(--foreground);
    margin: 10px 0;
}

.upload-dropzone span {
    color: var(--muted-foreground);
    margin: 15px 0;
    display: block;
}

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

.upload-btn:hover {
    background: var(--primary-dark);
}

.upload-dropzone small {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 10px;
    display: block;
}

.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.uploaded-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--muted);
    aspect-ratio: 1;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--destructive);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* AI Processing */
.processing-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ai-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.ai-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.processing-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--success);
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.processing-steps {
    text-align: left;
    margin-top: 40px;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.process-item.active {
    border-left-color: var(--primary);
    background: var(--primary-light);
}

.process-item.complete {
    border-left-color: var(--success);
    background: var(--success-light);
}

.process-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 24px;
}

.process-item span {
    flex: 1;
    font-weight: 500;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.process-item.active .spinner {
    display: block;
}

.process-item.complete .spinner {
    display: none;
}

.process-item.complete::after {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-header {
        padding: 15px 20px;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .form-step {
        padding: 30px 20px;
    }
    
    .form-step h2 {
        font-size: 2rem;
    }
    
    .language-options {
        grid-template-columns: 1fr;
    }
    
    .crop-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .logo-section {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .crop-grid {
        grid-template-columns: 1fr;
    }
    
    .uploaded-images {
        grid-template-columns: repeat(3, 1fr);
    }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.smartfarmer-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    padding: 32px;
    min-width: 500px;
    width: 90vw;
    max-width: 600px;
}

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

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.confidence-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 12px;
}

/* Language Selection */
.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lang-option:hover {
    border-color: var(--primary);
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.lang-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
}

.lang-sub {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Location Selection */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.location-btn i {
    font-size: 1.25rem;
}

.manual-location {
    display: flex;
    gap: 12px;
    align-items: center;
}

.manual-location input {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.manual-location input:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-glow);
    transform: translateY(-1px);
}

/* Crop Selection */
.crop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.crop-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.crop-option:hover {
    border-color: var(--success);
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.crop-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.crop-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

/* Soil Selection */
.soil-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

.soil-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.soil-option:hover {
    border-color: var(--earth);
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.soil-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.soil-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Loading Modal */
.loading-content {
    text-align: center;
    padding: 48px 32px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 24px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    width: 0%;
    animation: progress 2s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* Advice Modal */
.advice-modal .modal-content {
    max-width: 900px;
    width: 95vw;
    padding: 40px;
}

.summary-card {
    background: linear-gradient(135deg, var(--secondary), var(--muted));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.summary-card h3 {
    color: var(--foreground);
    font-size: 1.25rem;
    font-weight: 600;
}

.advice-steps {
    margin-bottom: 24px;
}

.advice-step {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    background: white;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--foreground);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 8px;
}

.dosage-info {
    background: var(--secondary);
    color: var(--foreground);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.next-action {
    background: var(--secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.next-action h4 {
    color: var(--foreground);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.next-action p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.advice-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.advice-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* KVK Modal */
.kvk-list {
    margin: 24px 0;
}

.kvk-item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    background: white;
}

.kvk-item h4 {
    color: var(--foreground);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.kvk-item p {
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

/* Responsive Design for SmartFarmer */
@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
        min-width: auto;
        width: 95vw;
        max-width: 95vw;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .crop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .manual-location {
        flex-direction: column;
    }
    
    .advice-actions {
        flex-direction: column;
    }
    
    .advice-actions .btn {
        flex: none;
    }
}

@media (max-width: 480px) {
    .smartfarmer-modal {
        margin: 10px;
    }
    
    .modal-content {
        padding: 20px;
        width: 90vw;
    }
    
    .crop-grid {
        grid-template-columns: 1fr;
    }
}

/* NEW UNIFIED FORM INTERFACE STYLES */
.smartfarmer-unified-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.unified-container {
    background: white;
    border-radius: 20px;
    width: 90vw;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.unified-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unified-content {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.radio-card {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white;
    border-color: #4CAF50;
    transform: scale(1.05);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    width: 100%;
}

.crop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
}

.smartfarmer-chat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.chat-container {
    background: white;
    border-radius: 20px;
    width: 90vw;
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    background: white;
    padding: 15px;
    border-radius: 15px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: #4CAF50;
    color: white;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.quick-action {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: #4CAF50;
    color: white;
}

.chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

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

#chatInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.send-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
