<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 600px;
            margin: 20px auto;
            background: #ffffff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            padding: 30px;
            text-align: center;
        }
        .header h1 {
            color: #000;
            margin: 0;
            font-size: 28px;
        }
        .content {
            padding: 40px 30px;
        }
        .password-box {
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 20px;
            margin: 25px 0;
            border-radius: 5px;
        }
        .password {
            font-size: 24px;
            font-weight: bold;
            color: #000;
            letter-spacing: 2px;
            text-align: center;
        }
        .warning {
            background: #fee2e2;
            border-left: 4px solid #ef4444;
            padding: 15px;
            margin: 20px 0;
            border-radius: 5px;
            color: #991b1b;
        }
        .footer {
            background: #f9fafb;
            padding: 20px 30px;
            text-align: center;
            font-size: 12px;
            color: #6b7280;
            border-top: 1px solid #e5e7eb;
        }
        .button {
            display: inline-block;
            padding: 12px 30px;
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: #000;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🔐 AutoHub Password Reset</h1>
        </div>
        
        <div class="content">
            <p>Hello {{ $employee->first_name ?? 'User' }},</p>
            
            <p>We received a request to reset your password. Your temporary password has been generated:</p>
            
            <div class="password-box">
                <p style="margin: 0 0 10px 0; font-size: 14px; color: #666;">Your Temporary Password:</p>
                <div class="password">{{ $newPassword }}</div>
            </div>
            
            <div class="warning">
                <strong>⚠️ Important Security Notice:</strong>
                <ul style="margin: 10px 0 0 0; padding-left: 20px;">
                    <li>Please change this temporary password immediately after logging in</li>
                    <li>Do not share this password with anyone</li>
                    <li>If you didn't request this reset, please contact support immediately</li>
                </ul>
            </div>
            
            <p style="text-align: center;">
                <a href="{{ env('CONNECT_URL') }}/login" class="button">Login to AutoHub</a>
            </p>
            
            <p style="color: #6b7280; font-size: 14px;">
                This temporary password will remain active until you change it. For security reasons, we recommend changing it as soon as possible.
            </p>
        </div>
        
        <div class="footer">
            <p>© {{ date('Y') }} AutoHub PH. All Rights Reserved.</p>
            <p>Crafted by Application Devt. and Database (ADD) Department - AppDev</p>
            <p style="margin-top: 10px;">
                If you didn't request this password reset, please ignore this email or contact support if you have concerns.
            </p>
        </div>
    </div>
</body>
</html>