<!DOCTYPE html>
<html lang="{{ lang }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ content.title }}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .header {
            border-bottom: 2px solid #28a745;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }
        .header h1 {
            color: #28a745;
            margin: 0;
            font-size: 24px;
        }
        .event-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin: 15px 0;
        }
        .event-details {
            background-color: #d4edda;
            border-left: 4px solid #28a745;
            padding: 15px;
            margin: 20px 0;
        }
        .event-details table {
            width: 100%;
            border-collapse: collapse;
        }
        .event-details td {
            padding: 8px 0;
            vertical-align: top;
        }
        .event-details td:first-child {
            font-weight: bold;
            color: #666;
            width: 120px;
        }
        .instructions {
            background-color: #d4edda;
            border-radius: 4px;
            padding: 15px;
            margin: 20px 0;
        }
        .instructions p {
            margin: 0;
            color: #155724;
        }
        .footer {
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-top: 20px;
            font-size: 12px;
            color: #999;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>{{ content.heading }}</h1>
        </div>

        <p>{{ content.body }}</p>

        <div class="event-title">{{ summary }}</div>

        <div class="event-details">
            <table>
                <tr>
                    <td>{{ labels.when }}</td>
                    <td>
                        {{ start_date }}<br>
                        <strong>{{ time_str }}</strong>
                        {% if start_date != end_date %}<br>{{ labels.until }} {{ end_date }}{% endif %}
                    </td>
                </tr>
                {% if event.location %}
                <tr>
                    <td>{{ labels.location }}</td>
                    <td>{{ event.location }}</td>
                </tr>
                {% endif %}
                {% if event.url %}
                <tr>
                    <td>{{ labels.videoConference }}</td>
                    <td><a href="{{ event.url }}" style="color: #28a745;">{{ event.url }}</a></td>
                </tr>
                {% endif %}
                <tr>
                    <td>{{ labels.attendee }}</td>
                    <td>{{ attendee_display }} &lt;{{ event.attendee_email }}&gt;</td>
                </tr>
            </table>
        </div>

        <div class="instructions">
            <p>{{ instructions }}</p>
        </div>

        <div class="footer">
            <p>{{ footer }}</p>
        </div>
    </div>
</body>
</html>
