{{-- 
    Machine Approved 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 Approved</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, #16a34a, #15803d); padding: 30px; text-align: center; border-radius: 8px 8px 0 0;">
        <h1 style="color: white; margin: 0; font-size: 28px;">
            ✓ Machine Approved
        </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;">
            Great news! Your machine listing has been approved and is now live on the Health Directory platform.
        </p>
        
        <div style="background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 20px; margin: 20px 0; text-align: center;">
            <h3 style="margin: 0; color: #166534;">{{ $machineName }}</h3>
            <p style="margin: 10px 0 0; color: #15803d;">
                <strong>Now visible to potential buyers!</strong>
            </p>
        </div>
        
        <p style="color: #4b5563;">
            Your machine is now visible to healthcare facilities and potential buyers across South Sudan. Make sure your contact information is up to date so interested parties can reach you.
        </p>
        
        <div style="text-align: center; margin: 30px 0;">
            <a href="{{ route('machines.show', $machine->slug ?? '#') }}" 
               style="display: inline-block; padding: 12px 30px; background: linear-gradient(to right, #2563eb, #1d4ed8); color: white; text-decoration: none; border-radius: 6px; font-weight: bold; margin-right: 10px;">
                View Listing
            </a>
            <a href="{{ route('dashboard.machines.index') }}" 
               style="display: inline-block; padding: 12px 30px; background: #f3f4f6; color: #374151; text-decoration: none; border-radius: 6px; font-weight: bold;">
                Manage Machines
            </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>
