<!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: #FF9800; color: white; padding: 20px; text-align: center; }
    .content { padding: 20px; background-color: #f9f9f9; }
    .footer { text-align: center; padding: 20px; font-size: 12px; color: #777; }
    .amount { 
      font-size: 24px; 
      font-weight: bold; 
      color: #E65100;
      margin: 15px 0;
    }
    .button {
      display: inline-block; 
      padding: 10px 20px; 
      background-color: #FF9800; 
      color: white; 
      text-decoration: none; 
      border-radius: 4px;
      margin: 15px 0;
    }
    .info-box {
      background-color: #FFF3E0;
      border-left: 4px solid #FF9800;
      padding: 12px;
      margin: 15px 0;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <h1>Withdrawal Request {{#if isAdmin}}Received{{else}}Submitted{{/if}}</h1>
    </div>
    <div class="content">
      {{#if isAdmin}}
        <p>Hello Admin,</p>
        <p>A new withdrawal request has been submitted:</p>
      {{else}}
        <p>Hello {{name}},</p>
        <p>Your withdrawal request has been received and is being processed.</p>
      {{/if}}
      
      <div class="amount">{{currency}} {{amount}}</div>
      
      <div class="info-box">
        <p><strong>Request ID:</strong> {{requestId}}</p>
        <p><strong>Payment Method:</strong> {{paymentMethod}}</p>
        <p><strong>Account Details:</strong> {{accountDetails}}</p>
        <p><strong>Request Date:</strong> {{requestDate}}</p>
        {{#if estimatedCompletion}}
        <p><strong>Estimated Completion:</strong> {{estimatedCompletion}}</p>
        {{/if}}
      </div>
      
      {{#if isAdmin}}
        <p><strong>Author:</strong> {{authorName}} ({{authorEmail}})</p>
        <p><strong>Available Balance:</strong> {{currency}} {{availableBalance}}</p>
        <p style="text-align: center;">
          <a href="{{adminDashboardUrl}}" class="button" style="color: white;">Review Withdrawal</a>
        </p>
      {{else}}
        <p>We'll notify you once your withdrawal has been processed. This usually takes 1-3 business days.</p>
        <p style="text-align: center;">
          <a href="{{dashboardUrl}}" class="button" style="color: white;">View Withdrawal Status</a>
        </p>
      {{/if}}
      
      {{#if notes}}
      <div style="margin-top: 20px; padding: 10px; background-color: #f5f5f5; border-radius: 4px;">
        <p><strong>Notes:</strong> {{notes}}</p>
      </div>
      {{/if}}
      
      <p>Best regards,<br>The Xania Bookstore Team</p>
    </div>
    <div class="footer">
      <p>© {{year}} Xania Bookstore. All rights reserved.</p>
      <p>This is an automated message, please do not reply to this email.</p>
    </div>
  </div>
</body>
</html>
