<!DOCTYPE html>
<html lang="en" style="font-family: Arial, sans-serif;">
<head>
  <meta charset="UTF-8">
  <title>Password Reset Notification</title>
</head>
<body style="background-color: #f4f4f7; margin: 0; padding: 0;">
  <table width="100%" style="background-color: #f4f4f7;">
    <tr>
      <td align="center" style="padding: 40px 0;">
        <table width="600" style="background: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);">
          <tr>
            <td align="center" style="background-color: #4CAF50; padding: 20px;">
              <h1 style="color: #ffffff; font-size: 24px;">Password Reset Successful</h1>
            </td>
          </tr>
          <tr>
            <td style="padding: 30px; color: #333; font-size: 16px;">
              <p>Hello <strong><%= user.fullName %></strong>,</p>
              <p>Your password has been successfully reset. Here are your new login details:</p>
              <table width="100%" style="margin-top: 20px; background: #f9f9f9; border-radius: 5px;" cellpadding="8">
                <tr>
                  <td align="right" width="30%" style="font-weight: bold;">Email:</td>
                  <td><%= user.email %></td>
                </tr>
                <tr>
                  <td align="right" width="30%" style="font-weight: bold;">New Password:</td>
                  <td style="color: #4CAF50;"><strong><%= newPassword %></strong></td>
                </tr>
              </table>
              <p style="margin-top: 30px;">For your security, please change your password after logging in.</p>
              <p style="margin-top: 30px; font-size: 14px; color: #999;">If you did not request this reset, please contact support immediately.</p>
            </td>
          </tr>
          <tr>
            <td align="center" style="background-color: #f0f0f0; padding: 20px; font-size: 12px; color: #888;">
              &copy; Copyright Ville de Niamey <%= new Date().getFullYear() %>. All rights reserved.
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</body>
</html>
