<!DOCTYPE html>
<html>
<head>
  <style>
    body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
    .container { max-width: 600px; margin: 0 auto; padding: 20px; }
    .header { background-color: #1976D2; color: white; padding: 20px; text-align: center; }
    .content { padding: 20px; background-color: #f5f5f5; }
    .footer { text-align: center; padding: 20px; font-size: 12px; color: #777; }
    .alert { 
      background-color: #E3F2FD; 
      border-left: 4px solid #1976D2;
      padding: 12px;
      margin: 15px 0;
    }
    .amount { 
      font-size: 24px; 
      font-weight: bold; 
      color: #1976D2;
      margin: 10px 0;
    }
    .button {
      display: inline-block; 
      padding: 10px 20px; 
      background-color: #1976D2; 
      color: white; 
      text-decoration: none; 
      border-radius: 4px;
      margin: 15px 0;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <h1>New Payment Received</h1>
    </div>
    <div class="content">
      <div class="alert">
        <strong>New Payment Alert</strong>
        <p>A new payment has been processed on the platform.</p>
      </div>
      
      <h3>Payment Details:</h3>
      <p><strong>Amount:</strong> <span class="amount">{{currency}} {{amount}}</span></p>
      
      {{#if customerName}}
      <p><strong>Customer:</strong> {{customerName}}</p>
      {{/if}}
      
      {{#if customerEmail}}
      <p><strong>Email:</strong> {{customerEmail}}</p>
      {{/if}}
      
      {{#if orderId}}
      <p><strong>Order ID:</strong> #{{orderId}}</p>
      {{/if}}
      
      <p><strong>Transaction ID:</strong> <code>{{transactionId}}</code></p>
      <p><strong>Payment Method:</strong> {{paymentMethod}}</p>
      <p><strong>Date/Time:</strong> {{dateTime}}</p>
      
      {{#if isHighValue}}
      <div style="background-color: #FFF8E1; border-left: 4px solid #FFC107; padding: 10px; margin: 15px 0;">
        <strong>High Value Transaction</strong>
        <p>This payment exceeds the high-value threshold of {{currency}} {{highValueThreshold}}.</p>
      </div>
      {{/if}}
      
      <p style="text-align: center; margin-top: 25px;">
        <a href="{{adminDashboardUrl}}" class="button" style="color: white;">View in Admin Dashboard</a>
      </p>
      
      <p>This is an automated notification. No action is required unless there are issues with this transaction.</p>
    </div>
    <div class="footer">
      <p>© {{year}} Xania Bookstore Admin</p>
      <p>This is an automated message, please do not reply to this email.</p>
    </div>
  </div>
</body>
</html>
