<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Driver Invitation - TrueTrucker</title>
</head>
<body style="font-family: Arial, sans-serif; color: #111827; line-height: 1.6; max-width: 600px; margin: 0 auto; padding: 20px;">
    <div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; text-align: center; color: white; border-radius: 8px 8px 0 0;">
        <h1 style="margin: 0; font-size: 28px;">Welcome to TrueTrucker</h1>
    </div>

    <div style="background-color: #f9fafb; padding: 30px; border: 1px solid #e5e7eb; border-radius: 0 0 8px 8px;">
        <p style="margin-top: 0; font-size: 16px;">
            Hi <strong>{{ $driver_name }}</strong>,
        </p>

        <p style="margin: 16px 0; font-size: 14px;">
            You have been added as a driver to <strong>{{ $company_name }}</strong> on TrueTrucker.
        </p>

        <div style="background-color: #f3f4f6; padding: 16px; border-left: 4px solid #667eea; margin: 20px 0; border-radius: 4px;">
            <p style="margin: 0 0 12px 0; font-size: 14px;">
                <strong>Your Login Credentials</strong>
            </p>
            <table style="width: 100%; font-size: 14px;">
                <tr>
                    <td style="padding: 4px 0;"><strong>Email:</strong></td>
                    <td style="padding: 4px 0; color: #667eea;">{{ $email }}</td>
                </tr>
                <tr>
                    <td style="padding: 4px 0;"><strong>Temporary Password:</strong></td>
                    <td style="padding: 4px 0; font-family: monospace; background: #e5e7eb; padding: 6px 8px; border-radius: 4px;">{{ $temporary_password }}</td>
                </tr>
            </table>
        </div>

        <div style="text-align: center; margin: 24px 0;">
            <a href="{{ route('login') }}" style="display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 32px; text-decoration: none; border-radius: 6px; font-weight: bold; font-size: 14px;">
                Log In to TrueTrucker
            </a>
        </div>

        <p style="margin: 16px 0; font-size: 14px;">
            <strong>Important:</strong> After logging in, you will be prompted to change your temporary password to a permanent one for security.
        </p>

        <p style="margin: 16px 0; font-size: 14px;">
            You can now view your assigned loads, track earnings, and manage your driver profile on the TrueTrucker dashboard.
        </p>

        <hr style="border: none; border-top: 1px solid #e5e7eb; margin: 24px 0;">

        <p style="margin: 12px 0; font-size: 12px; color: #6b7280;">
            Best regards,<br>
            <strong>The TrueTrucker Team</strong>
        </p>

        <p style="margin: 24px 0 0 0; font-size: 11px; color: #9ca3af; text-align: center;">
            If you have questions, contact your company owner or TrueTrucker support.
        </p>
    </div>
</body>
</html>
