<!DOCTYPE html>
<html>
<head>
    <title>Download ITAT Reports</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f4f7f9;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 600px;
            margin: 60px auto;
            padding: 30px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            text-align: center;
        }

        h2 {
            color: #333;
            margin-bottom: 30px;
        }

        label {
            font-weight: 600;
            margin-right: 10px;
        }

        select {
            padding: 8px 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-bottom: 20px;
            min-width: 200px;
        }

        button {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>Download ITAT Report</h2>
        <form method="GET" action="{{ url_for('itat_report') }}" target="_blank">

            <label for="year">Select Year:</label>
            <br>
            <select name="year" id="year" required>
                <option value="">-- Select Year --</option>
                {% for y in years %}
                    <option value="{{ y }}">{{ y }}</option>
                {% endfor %}
            </select>
            <br><br>
            <button type="submit">Download Excel</button>
        </form>
    </div>
</body>
</html>
