<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Canvass Session Summary — {{ORGANIZATION_NAME}}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 30px;
            border: 1px solid #e0e0e0;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #2563eb;
            padding-bottom: 20px;
        }
        .logo {
            color: #2563eb;
            font-size: 24px;
            font-weight: bold;
        }
        .content {
            background-color: white;
            padding: 25px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #2563eb;
        }
        .info-section {
            background-color: #eff6ff;
            padding: 15px;
            border-radius: 4px;
            margin: 16px 0;
            border: 1px solid #bfdbfe;
        }
        .info-item {
            margin: 6px 0;
        }
        .info-label {
            font-weight: bold;
            color: #1e40af;
        }
        .stats-grid {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin: 16px 0;
        }
        .stat-box {
            flex: 1;
            min-width: 100px;
            background-color: #f0f9ff;
            border: 1px solid #bae6fd;
            border-radius: 6px;
            padding: 12px;
            text-align: center;
        }
        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: #2563eb;
        }
        .stat-label {
            font-size: 12px;
            color: #64748b;
            margin-top: 4px;
        }
        .outcome-table {
            width: 100%;
            border-collapse: collapse;
            margin: 16px 0;
        }
        .outcome-table th, .outcome-table td {
            padding: 8px 12px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }
        .outcome-table th {
            background-color: #f8fafc;
            font-weight: bold;
            color: #475569;
        }
        .footer {
            text-align: center;
            font-size: 12px;
            color: #6c757d;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">{{ORGANIZATION_NAME}}</div>
            <p style="margin: 10px 0 0 0; color: #6c757d;">Canvass Session Summary</p>
        </div>

        <div class="content">
            <p>Great work, {{VOLUNTEER_NAME}}! Here's a summary of your canvassing session:</p>

            <div class="info-section">
                <div class="info-item">
                    <span class="info-label">Area:</span> {{CUT_NAME}}
                </div>
                <div class="info-item">
                    <span class="info-label">Date:</span> {{SESSION_DATE}}
                </div>
            </div>

            <div class="stats-grid">
                <div class="stat-box">
                    <div class="stat-number">{{VISIT_COUNT}}</div>
                    <div class="stat-label">Doors Visited</div>
                </div>
                <div class="stat-box">
                    <div class="stat-number">{{DURATION_MINUTES}}</div>
                    <div class="stat-label">Minutes</div>
                </div>
                <div class="stat-box">
                    <div class="stat-number">{{DISTANCE_KM}}</div>
                    <div class="stat-label">km Walked</div>
                </div>
            </div>

            {{OUTCOME_BREAKDOWN}}
        </div>

        <div class="footer">
            <p>Thank you for volunteering with <strong>{{ORGANIZATION_NAME}}</strong></p>
        </div>
    </div>
</body>
</html>
