<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Stata-MCP Web UI</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="container">
        <header>
            <h1>Stata-MCP Configuration Manager</h1>
            <p class="subtitle">Version 1.6.0 - Configuration Management Interface</p>
        </header>

        <div class="welcome-card">
            <h2>Welcome to Stata-MCP</h2>
            <p>
                This web interface allows you to configure your Stata-MCP integration settings.
                You can set up your Stata installation path and specify where output files should be stored.
            </p>
            
            <div class="feature-list">
                <h3>What you can do here:</h3>
                <ul>
                    <li>Configure Stata executable path</li>
                    <li>Set output directory for Stata results</li>
                    <li>Choose between Ollama (local) or OpenAI (cloud) LLM</li>
                    <li>Configure Ollama model settings</li>
                    <li>Set up OpenAI API configuration</li>
                    <li>Validate all configuration settings</li>
                    <li>Import/export configurations</li>
                    <li>Create configuration backups</li>
                </ul>
            </div>

            <div class="actions">
                <a href="{{ url_for('config') }}" class="btn btn-primary">
                    <span class="icon">⚙️</span>
                    Open Configuration
                </a>
                <a href="https://github.com/sepinetam/stata-mcp" class="btn btn-secondary" target="_blank">
                    <span class="icon">📖</span>
                    View Documentation
                </a>
            </div>
        </div>

        <footer>
            <p class="info">
                <strong>Note:</strong> This is the configuration-only interface for Stata-MCP v1.6.0.
                Advanced features like Stata integration will be available in future versions.
            </p>
        </footer>
    </div>
</body>
</html>
