<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 600px;
            margin: 20px auto;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .header {
            background-color: #ffffff;
            padding: 20px;
            text-align: center;
            border-bottom: 3px solid #0d6efd; /* Bootstrap primary blue */
        }
        .header img {
            max-height: 80px;
            width: auto;
        }
        .content {
            padding: 30px;
            color: #333333;
            line-height: 1.6;
        }
        .footer {
            background-color: #f8f9fa;
            padding: 20px;
            text-align: center;
            font-size: 12px;
            color: #888888;
        }
        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #0d6efd;
            color: #ffffff !important;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 20px;
        }
        h1, h2, h3 {
            color: #2c3e50;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            {% if platform.logo %}
                <img src="{{ site_url }}{{ platform.logo.url }}" alt="{{ platform.name }}">
            {% else %}
                <h1>{{ platform.name }}</h1>
            {% endif %}
        </div>
        <div class="content">
            {% if title %}
                <h2>{{ title }}</h2>
            {% endif %}
            
            {{ message|safe|linebreaks }}
            
            {% if action_url %}
                <div style="text-align: center;">
                    <a href="{{ action_url }}" class="button">{{ action_text|default:"Click here" }}</a>
                </div>
            {% endif %}
        </div>
        <div class="footer">
            <p>&copy; {% now "Y" %} {{ platform.name }}. All rights reserved.</p>
            {% if platform.address %}
                <p>{{ platform.address }}</p>
            {% endif %}
        </div>
    </div>
</body>
</html>