* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .header {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 25px;
            text-align: center;
        }

        .header h1 {
            color: #2c5530;
            font-size: clamp(24px, 5vw, 32px);
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .header p {
            color: #666;
            font-size: clamp(12px, 3vw, 16px);
            line-height: 1.4;
            margin-bottom: 15px;
        }

        .crop-title {
            color: #4a7c59;
            font-size: clamp(20px, 4vw, 28px);
            font-weight: 700;
            margin: 0;
        }

        .stats-content {
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            padding: 25px 20px;
        }

        .year-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            gap: 10px;
            padding: 0 5px;
        }

        .nav-btn {
            background: #4a7c59;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: clamp(12px, 3vw, 14px);
            white-space: nowrap;
            flex-shrink: 0;
            min-width: 80px;
        }

        .nav-btn:hover {
            background: #3d6b4a;
            transform: translateY(-1px);
        }

        .nav-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .year-display {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .current-year {
            background: #4a7c59;
            color: white;
            padding: 12px 20px;
            border-radius: 20px;
            font-weight: 700;
            font-size: clamp(16px, 4vw, 20px);
            box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
            transition: all 0.3s ease;
        }

        .year-range {
            color: #666;
            font-size: clamp(11px, 2.5vw, 12px);
            font-weight: 500;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .metric-card {
            background: #f8fdf9;
            border: 2px solid #e0f0e0;
            border-radius: 12px;
            padding: 18px 12px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .metric-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #4a7c59, #6b9b73);
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
            border-color: #4a7c59;
        }

        .metric-title {
            color: #2c5530;
            font-size: clamp(12px, 2.5vw, 14px);
            margin-bottom: 10px;
            font-weight: 600;
            line-height: 1.3;
        }

        .metric-value {
            font-size: clamp(24px, 6vw, 36px);
            font-weight: 700;
            color: #4a7c59;
            margin-bottom: 5px;
            line-height: 1.1;
        }

        .metric-unit {
            color: #666;
            font-size: clamp(11px, 2.5vw, 12px);
        }

        .chart-container {
            background: #f8fdf9;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid #e0f0e0;
        }

        .chart-title {
            color: #2c5530;
            font-size: clamp(16px, 3.5vw, 20px);
            margin-bottom: 20px;
            text-align: center;
            font-weight: 600;
        }

        .chart {
            height: 250px;
            display: flex;
            align-items: end;
            justify-content: center;
            gap: clamp(10px, 3vw, 25px);
            padding: 15px 5px;
            overflow-x: auto;
        }

        .bar {
            background: linear-gradient(to top, #4a7c59, #6b9b73);
            border-radius: 6px 6px 0 0;
            min-width: clamp(40px, 8vw, 70px);
            width: clamp(40px, 8vw, 70px);
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
        }

        .bar.current {
            background: linear-gradient(to top, #2c5530, #4a7c59);
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(44, 85, 48, 0.4);
        }

        .bar:hover {
            transform: scale(1.05);
            background: linear-gradient(to top, #3d6b4a, #5a8a62);
        }

        .bar.current:hover {
            transform: scale(1.15);
        }

        .bar-value {
            color: white;
            font-weight: 600;
            font-size: clamp(10px, 2.5vw, 12px);
            position: absolute;
            top: -25px;
            background: #2c5530;
            padding: 4px 8px;
            border-radius: 4px;
            opacity: 0;
            transition: opacity 0.3s;
            white-space: nowrap;
            z-index: 10;
        }

        .bar:hover .bar-value,
        .bar.current .bar-value {
            opacity: 1;
        }

        .bar-label {
            color: #2c5530;
            font-size: clamp(11px, 2.5vw, 12px);
            font-weight: 600;
            margin-top: 10px;
            text-align: center;
        }

        .bar.current .bar-label {
            color: #2c5530;
            font-weight: 700;
        }

        .ai-analysis {
            background: linear-gradient(135deg, #ffffff 0%, #f0f7f0 100%);
            border: 2px solid #4a7c59;
            border-radius: 16px;
            padding: 25px 20px;
            position: relative;
        }

        .ai-analysis::before {
            content: '🤖';
            position: absolute;
            top: -15px;
            left: 25px;
            background: white;
            padding: 5px;
            border-radius: 50%;
            font-size: 18px;
        }

        .ai-title {
            color: #2c5530;
            font-size: clamp(18px, 4vw, 20px);
            font-weight: 600;
            margin-bottom: 15px;
            margin-left: 40px;
        }

        .ai-content {
            color: #444;
            line-height: 1.6;
            font-size: clamp(14px, 3.5vw, 15px);
        }

        .recommendation {
            background: #e8f5e8;
            border-left: 4px solid #4a7c59;
            padding: 15px;
            margin-top: 15px;
            border-radius: 0 8px 8px 0;
        }

        .recommendation-title {
            color: #2c5530;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: clamp(14px, 3.5vw, 16px);
        }

        .recommendation p {
            font-size: clamp(13px, 3vw, 14px);
            line-height: 1.5;
        }

        .loading {
            text-align: center;
            padding: 30px;
            color: #666;
            font-size: clamp(12px, 3vw, 14px);
        }

        .loading::after {
            content: '';
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 2px solid #4a7c59;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 8px;
                padding-top: 20px;
            }

            .header {
                padding: 15px;
                margin-bottom: 20px;
            }

            .stats-content {
                padding: 20px 15px;
            }

            .metrics-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .metric-card {
                padding: 15px 10px;
            }

            .year-navigation {
                gap: 8px;
                margin-bottom: 20px;
            }

            .nav-btn {
                padding: 8px 12px;
                min-width: 70px;
            }

            .current-year {
                padding: 10px 16px;
            }

            .chart {
                height: 200px;
                gap: 8px;
                padding: 10px 3px;
            }

            .bar {
                min-width: 32px;
                width: 32px;
            }

            .ai-analysis {
                padding: 20px 15px;
            }

            .ai-title {
                margin-left: 35px;
            }
        }

        @media (max-width: 320px) {
            .metrics-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .year-navigation {
                flex-direction: column;
                gap: 12px;
            }

            .year-display {
                order: 1;
            }

            .nav-btn {
                order: 2;
                min-width: 90px;
            }

            .nav-btn:first-of-type {
                order: 0;
            }

            .chart {
                height: 180px;
                gap: 5px;
            }
        }

.analysis-btn {
    background: linear-gradient(135deg, #4a7c59, #6b9b73);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;  
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

.sectionbody {
  background-color: #4a7c59;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  margin: auto; /* ortalamak için */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  width: 100%;
}

.grid-item {
  display: flex;
  flex-direction: column;
}


label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}

input, select {
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  font-size: 15px;
  outline: none;
}

input:focus, select:focus {
  border-color: #4a7c59;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.3);
}

@media (max-width: 500px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.sectionbody > div:first-child {
    background: linear-gradient(135deg, #fffcfc, #2E7D32);
    color: #000000;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.sectionbody > div:first-child p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}


a {
    text-decoration: none;
}

.header {
            background: #fff;
            border-bottom: 1px solid #e8e8e8;
            padding: 12px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #2c5530;
            font-weight: 700;
            font-size: 24px;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: #4a7c59;
            border-radius: 6px;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .nav {
            display: flex;
            gap: 35px;
            align-items: center;
            margin-left: 50rem;
        }

        .nav a {
            color: #555;
            font-weight: 500;
            font-size: 15px;
            transition: color 0.3s;
        }

        .nav a:hover {
            color: #4a7c59;
        }