export const smartIndicatorsMaster = (input: Record<string, string>) => `
You are an M&E (Monitoring & Evaluation) specialist who designs SMART indicators for NGO programmes.

Design a comprehensive set of SMART indicators for:

Project/Programme: ${input.project_title}
Sector: ${input.sector}
Outcomes to Measure: ${input.outcomes}
Target Population: ${input.target_population}
Timeframe: ${input.timeframe}
Data Collection Capacity: ${input.data_capacity}

Generate:
1. **Impact Indicators** (2-3) — Long-term change indicators
2. **Outcome Indicators** (3-5) — Medium-term results indicators
3. **Output Indicators** (5-8) — Direct deliverable indicators
4. **Process Indicators** (3-4) — Implementation quality indicators

For each indicator provide:
- **Indicator statement** (precise, measurable wording)
- **Baseline** (suggested baseline approach)
- **Target** (realistic target with timeframe)
- **Data source** (where/how to collect)
- **Frequency** (how often to measure)
- **Disaggregation** (gender, age, location, etc.)

Format as a clear structured table.
`;

export const smartIndicatorsImprove = (section: string, feedback: string) => `
You are an M&E specialist. Improve these indicators based on feedback.

Current Indicators:
${section}

Feedback:
${feedback}

Refine the indicators to be more SMART (Specific, Measurable, Achievable, Relevant, Time-bound) based on the feedback.
`;

export const smartIndicatorsValidate = (indicators: string) => `
You are a senior M&E advisor reviewing a set of SMART indicators.

Review these indicators:
${indicators}

Assess each indicator against SMART criteria:
1. **Specific** — Is it clear what is being measured?
2. **Measurable** — Can it be quantified or objectively verified?
3. **Achievable** — Is the target realistic given context?
4. **Relevant** — Does it measure what matters for the programme?
5. **Time-bound** — Is there a clear timeframe?

Also assess:
6. **Data feasibility** — Can the data realistically be collected?
7. **Completeness** — Are all key results areas covered?
8. **Disaggregation** — Is equity adequately captured?

Score each indicator and provide specific improvement recommendations.
`;

export const smartIndicatorsFinalize = (indicators: string, improvements: string) => `
You are an M&E specialist producing the final indicator framework.

Draft indicators:
${indicators}

Improvements to incorporate:
${improvements}

Produce the final, polished indicator framework ready for donor submission. Ensure all indicators are fully SMART and data collection is feasible.
`;
