{{-- 
    Machine Rejected Email
    HTML Email Template
--}}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Machine Listing Needs Revision</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
    
    {{-- Header --}}
    <div style="background: linear-gradient(to right, #dc2626, #b91c1c); padding: 30px; text-align: center; border-radius: 8px 8px 0 0;">
        <h1 style="color: white; margin: 0; font-size: 28px;">
            ⚠️ Action Required
        </h1>
    </div>
    
    {{-- Body --}}
    <div style="background: #ffffff; padding: 30px; border: 1px solid #e5e7eb; border-top: none;">
        
        <p style="font-size: 18px; color: #374151;">
            Hello {{ $userName }},
        </p>
        
        <p style="color: #4b5563;">
            Your machine listing for <strong>{{ $machineName }}</strong> has been reviewed and requires some revisions before it can be published.
        </p>
        
        <div style="background: #fef2f2; border-left: 4px solid #dc2626; padding: 15px; margin: 20px 0;">
            <h4 style="margin-top: 0; color: #991b1b;">Reason for rejection:</h4>
            <p style="margin: 0; color: #7f1d1d;">
                {{ $reason }}
            </p>
        </div>
        
        <h3 style="color: #111827;">How to proceed:</h3>
        <ol style="color: #4b5563;">
            <li>Log into your dashboard</li>
            <li>Go to "My Machines"</li>
            <li>Edit the machine listing</li>
            <li>Address the issues mentioned above</li>
            <li>Resubmit for approval</li>
        </ol>
        
        <p style="color: #4b5563;">
            Once you've made the necessary changes, your listing will be reviewed again. If you believe this rejection was made in error, please contact our support team.
        </p>
        
        <div style="text-align: center; margin: 30px 0;">
            <a href="{{ route('dashboard.machines.index') }}" 
               style="display: inline-block; padding: 12px 30px; background: linear-gradient(to right, #dc2626, #b91c1c); color: white; text-decoration: none; border-radius: 6px; font-weight: bold;">
                Edit Machine
            </a>
        </div>
        
        <hr style="border: none; border-top: 1px solid #e5e7eb; margin: 30px 0;">
        
        <p style="color: #6b7280; font-size: 14px;">
            Best regards,<br>
            <strong>The Health Directory Team</strong>
        </p>
    </div>
    
    {{-- Footer --}}
    <div style="background: #f9fafb; padding: 20px; text-align: center; border-radius: 0 0 8px 8px; border: 1px solid #e5e7eb; border-top: none;">
        <p style="margin: 0; color: #6b7280; font-size: 12px;">
            © {{ date('Y') }} Health Directory Marketing Platform. All rights reserved.
        </p>
    </div>
    
</body>
</html>
