<!DOCTYPE html>
<html lang="<%= lang %>" <%= lang === 'ar' ? 'dir="rtl"' : '' %>>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><%= lang === 'ar' ? 'تعليمات إعادة تعيين كلمة المرور' : 'Password Reset Instructions' %></title>
    <style>
        /* Style your email content here (ensure it works with RTL for Arabic) */
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f7fc;
            margin: 0;
            padding: 0;
        }
        .email-container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
        }
        .header h1 {
            color: #333;
            font-size: 24px;
        }
        .content {
            text-align: <%= lang === 'ar' ? 'right' : 'left' %>;
            font-size: 16px;
            color: #555;
        }
        .content p {
            line-height: 1.5;
        }
        .button {
            display: inline-block;
            background-color: #3498db;
            color: #fff;
            padding: 12px 20px;
            text-decoration: none;
            font-size: 16px;
            border-radius: 5px;
            margin-top: 20px;
            text-align: center;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            font-size: 12px;
            color: #aaa;
        }
        .footer p {
            margin: 5px 0;
        }
    </style>
</head>
<body>

    <div class="email-container">
        <div class="header">
            <h1><%= lang === 'ar' ? 'تعليمات إعادة تعيين كلمة المرور' : 'Password Reset Instructions' %></h1>
        </div>

        <div class="content">
            <p><%= lang === 'ar' ? 'عزيزي' : 'Dear' %> <%= name %>,</p>
            <p><%= lang === 'ar' ? 'لقد تلقينا طلبًا لإعادة تعيين كلمة المرور الخاصة بك. يمكنك إعادة تعيين كلمة المرور من خلال النقر على الزر أدناه:' : 'We received a request to reset your password. You can reset your password by clicking the button below:' %></p>
            <a href="<%= resetUrl %>" class="button"><%= lang === 'ar' ? 'إعادة تعيين كلمة المرور' : 'Reset Password' %></a>
            <p><%= lang === 'ar' ? 'إذا لم تطلب إعادة تعيين كلمة المرور، يرجى تجاهل هذا البريد.' : 'If you did not request a password reset, please ignore this email.' %></p>
            <p><%= lang === 'ar' ? 'مع خالص التحية' : 'Best regards' %>, <br> The Kanzy Team</p>
        </div>

        <div class="footer">
            <p><%= lang === 'ar' ? 'إذا كان لديك أي أسئلة، لا تتردد في الاتصال بنا على support@kanzy.com' : 'If you have any questions, feel free to contact us at support@kanzy.com' %></p>
            <p>&copy; 2025 Kanzy. <%= lang === 'ar' ? 'جميع الحقوق محفوظة.' : 'All rights reserved.' %></p>
        </div>
    </div>

</body>
</html>
