{
  "environmental_characteristics": {
    "atmosphere": [
      {
        "parameter": "air_temperature",
        "name": "Air Temperature",
        "unit": "Celsius",
        "description": "The ambient temperature surrounding the plant. Slider from -50 to 50 degrees Celsius"
      },
      {
        "parameter": "relative_humidity",
        "name": "Relative Humidity",
        "unit": "Percentage",
        "description": "The amount of water vapor in the air, expressed as a percentage of the maximum amount the air could hold. Slider from 0 to 100"
      },
      {
        "parameter": "co2_concentration",
        "name": "Carbon Dioxide Concentration",
        "unit": "ppm",
        "description": "Concentration of CO2 in the atmosphere, essential for photosynthesis. Slider from 0 to 5000 ppm"
      },
      {
        "parameter": "air_pressure",
        "name": "Atmospheric Pressure",
        "unit": "kPa",
        "description": "Atmospheric pressure, which can influence transpiration rates. Slider from 50 to 150 kPa"
      },
      {
        "parameter": "wind_speed",
        "name": "Wind Speed",
        "unit": "m/s",
        "description": "Speed of air movement, which affects transpiration and physical stress. Slider from 0 to 20 m/s"
      }
    ],
    "soil": [
      {
        "parameter": "soil_temperature",
        "name": "Soil Temperature",
        "unit": "Celsius",
        "description": "The temperature of the soil, affecting root health and nutrient uptake. Slider from -50 to 50 degrees Celsius"
      },
      {
        "parameter": "soil_acidity",
        "name": "Soil Acidity (pH)",
        "unit": "pH",
        "description": "The acidity or alkalinity of the soil, critically affecting nutrient availability. Slider from 0 to 14"
      },
      {
        "parameter": "soil_moisture",
        "name": "Soil Moisture",
        "unit": "Percentage",
        "description": "The amount of water held in the soil, available to the plant roots. Slider from 0 to 100"
      },
      {
        "parameter": "nutrients",
        "name": "Nutrients",
        "description": "Essential minerals for plant growth, categorized into macro and micro. Multiselector with checkboxes",
        "types": {
          "macronutrients": ["Nitrogen (N)", "Phosphorus (P)", "Potassium (K)", "Calcium (Ca)", "Magnesium (Mg)", "Sulfur (S)"],
        }
      }
    ],
    "light": [
      {
        "parameter": "light_intensity",
        "name": "Light Intensity",
        "unit": "PPFD (μmol/m²/s)",
        "description": "The amount of light available for photosynthesis. Slider from 0 to 2000 μmol/m²/s",
      },
      {
        "parameter": "photoperiod",
        "name": "Photoperiod",
        "unit": "Hours per day",
        "description": "The duration of light the plant receives in a 24-hour period. Slider from 0 to 24 hours"
      }
    ],
    "water": [
      {
        "parameter": "watering_frequency",
        "name": "Watering Frequency",
        "unit": "Times per week",
        "description": "How often the plant is watered. Slider from 0 to 14 times per week"
      }
    ]
  },
  "plant_characteristics": {
    "morphological": [
      {
        "name": "Plant type",
        "description": "Basil, rosemary etc.",
        "parameter": "plant_type",
        "unit": "N/A"
      },
      {
        "name": "Height",
        "description": "Height of the plant in cm",
        "parameter": "height",
        "unit": "cm"
      },
      {
        "name": "Leaf Color",
        "description": "Color of the leaves, e.g., green, yellow, purple, brown.",
        "parameter": "leaf_color",
        "unit": "N/A"
      },
      {
        "name": "Presence of Flowers",
        "description": "boolean",
        "parameter": "presence_of_flowers",
        "unit": "N/A"
      },
      {
        "name": "Fruit Development",
        "description": "boolean",
        "parameter": "fruit_development",
        "unit": "N/A"
      },
      {
        "name": "Root Health",
        "description": "Color and structure of roots, e.g., white and firm, brown and mushy.",
        "parameter": "root_health",
        "unit": "N/A"
      }
      ],
      "physiological": [
      {
        "name": "Health Status",
        "description": "['Thriving', 'Healthy', 'Stressed', 'Wilting', 'Diseased', 'Dying', 'Dead']",
        "parameter": "health_status",
        "unit": "N/A"
      },
      {
        "name": "Growth Rate",
        "description": "cm per week",
        "parameter": "growth_rate",
        "unit": "cm/week"
      },
      {
        "name": "Photosynthesis Rate",
        "description": "Efficiency of converting light to energy in percentage.",
        "parameter": "photosynthesis_rate",
        "unit": "Percentage"
      },
      {
        "name": "Transpiration Rate",
        "description": "Rate of water movement and evaporation from leaves in percentage.",
        "parameter": "transpiration_rate",
        "unit": "Percentage"
      }
    ]
  },
  "effects_on_plant": [
    {
      "effect_name": "Heat Stress",
      "cause": {
        "parameter": "air_temperature",
        "condition": "high",
        "description": "Temperature is significantly above the plant's optimal range."
      },
      "impacts": [
        {
          "characteristic_affected": "Leaf Shape",
          "symptom": "Leaves curl upwards and may develop brown, burnt spots on the edges."
        },
        {
          "characteristic_affected": "Health Status",
          "symptom": "Plant appears wilted even if the soil is moist due to high transpiration."
        }
      ]
    },
    {
      "effect_name": "Nitrogen Deficiency",
      "cause": {
        "parameter": "nutrients",
        "condition": "low",
        "description": "Insufficient Nitrogen (N) in the soil."
      },
      "impacts": [
        {
          "characteristic_affected": "Leaf Color",
          "symptom": "General chlorosis (yellowing) of older, lower leaves first, as nitrogen is mobile within the plant."
        },
        {
          "characteristic_affected": "Height",
          "symptom": "Stunted growth and reduced overall plant size."
        }
      ]
    },
    {
      "effect_name": "Low Soil pH",
      "cause": {
        "parameter": "soil_acidity",
        "condition": "low",
        "description": "Soil is too acidic (pH < 5.5), locking up nutrients like phosphorus and magnesium."
      },
      "impacts": [
        {
          "characteristic_affected": "Leaf Color",
          "symptom": "Can cause various nutrient deficiency symptoms, such as yellowing (magnesium) or purplish leaves (phosphorus)."
        },
        {
          "characteristic_affected": "Root Health",
          "symptom": "Can lead to aluminum toxicity, causing stunted, brown roots."
        }
      ]
    },
    {
      "effect_name": "Drought Stress",
      "cause": {
        "parameter": "soil_moisture",
        "condition": "low",
        "description": "Insufficient water available to the plant roots."
      },
      "impacts": [
        {
          "characteristic_affected": "Health Status",
          "symptom": "Progressive wilting of the entire plant, starting from the leaves."
        },
        {
          "characteristic_affected": "Leaf Shape",
          "symptom": "Leaves become dry, brittle, and may fall off."
        }
      ]
    },
    {
        "effect_name": "Poor Light",
        "cause": {
          "parameter": "light_intensity",
          "condition": "low",
          "description": "Insufficient light for photosynthesis."
        },
        "impacts": [
          {
            "characteristic_affected": "Stem Thickness",
            "symptom": "Plant becomes 'leggy' with thin, elongated stems as it stretches towards a light source."
          },
          {
            "characteristic_affected": "Leaf Color",
            "symptom": "Leaves may become pale green or yellow."
          }
        ]
      },
      {
        "effect_name": "CO2 Enrichment",
        "cause": {
          "parameter": "co2_concentration",
          "condition": "high",
          "description": "CO2 levels are elevated above ambient (e.g., > 1000 ppm)."
        },
        "impacts": [
          {
            "characteristic_affected": "Growth Rate",
            "symptom": "Increased growth rate and biomass production, assuming other factors are not limiting."
          }
        ]
      },
      {
        "effect_name": "Osmotic Stress / Chemical Contamination",
        "cause": {
          "parameter": "water_quality",
          "condition": "contaminated",
          "description": "Watering with a harmful, non-standard liquid (e.g., sugary, acidic, or salty solution like Coca-Cola)."
        },
        "impacts": [
          {
            "characteristic_affected": "Root Health",
            "symptom": "Roots are damaged by extreme pH and osmotic pressure, preventing water uptake and leading to decay."
          },
          {
            "characteristic_affected": "Health Status",
            "symptom": "Rapid and severe wilting, discoloration, and likely plant death within a short period."
          },
          {
            "characteristic_affected": "Leaf Color",
            "symptom": "Leaves may turn brown or black as cells die."
          }
        ]
      }
  ]
}
