<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Application Approved</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: #333333;
            background-color: #f4f4f5;
            margin: 0;
            padding: 0;
        }
        .email-wrapper {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        .email-header {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            padding: 30px 40px;
            text-align: center;
        }
        .email-header h1 {
            color: #ffffff;
            margin: 0;
            font-size: 24px;
            font-weight: 600;
        }
        .email-header p {
            color: rgba(255, 255, 255, 0.9);
            margin: 8px 0 0 0;
            font-size: 14px;
        }
        .email-body {
            padding: 40px;
        }
        .greeting {
            font-size: 18px;
            margin-bottom: 20px;
        }
        .greeting strong {
            color: #059669;
        }
        .content {
            margin-bottom: 30px;
        }
        .celebration-icon {
            font-size: 56px;
            text-align: center;
            margin-bottom: 20px;
        }
        .approval-details {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border: 2px solid #10b981;
            border-radius: 8px;
            padding: 25px;
            margin: 20px 0;
            text-align: center;
        }
        .approval-details h3 {
            margin: 0 0 15px 0;
            color: #047857;
            font-size: 18px;
        }
        .status-badge {
            display: inline-block;
            background-color: #059669;
            color: #ffffff;
            padding: 6px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }
        .role-badge {
            display: inline-block;
            background-color: #ffffff;
            color: #047857;
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            border: 2px solid #10b981;
            margin-top: 10px;
        }
        .next-steps {
            background-color: #eff6ff;
            border: 1px solid #bfdbfe;
            border-radius: 6px;
            padding: 20px;
            margin: 20px 0;
        }
        .next-steps h4 {
            margin: 0 0 15px 0;
            color: #1d4ed8;
            font-size: 16px;
        }
        .next-steps ol {
            margin: 0;
            padding-left: 20px;
            color: #374151;
        }
        .next-steps li {
            margin-bottom: 8px;
            font-size: 14px;
        }
        .action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 25px;
        }
        .btn-primary {
            display: inline-block;
            background-color: #059669;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
        }
        .btn-primary:hover {
            background-color: #047857;
        }
        .btn-secondary {
            display: inline-block;
            background-color: #ffffff;
            color: #059669;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
            border: 2px solid #059669;
        }
        .btn-secondary:hover {
            background-color: #f0fdf4;
        }
        .email-footer {
            background-color: #f9fafb;
            padding: 25px 40px;
            text-align: center;
            border-top: 1px solid #e5e7eb;
        }
        .footer-text {
            color: #6b7280;
            font-size: 13px;
            margin: 0;
        }
        .footer-link {
            color: #059669;
            text-decoration: none;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>🎉 Congratulations!</h1>
            <p>Your application has been approved</p>
        </div>

        <div class="email-body">
            <div class="celebration-icon">🎊</div>

            <p class="greeting">Dear <strong>{{ $applicantName }}</strong>,</p>

            <div class="content">
                <p>We are delighted to inform you that your application for the <strong>{{ $programmeName }}</strong> mentorship programme has been <strong>approved</strong>! Welcome to our mentorship community!</p>
            </div>

            <div class="approval-details">
                <span class="status-badge">✓ Approved</span>
                <h3>{{ $programmeName }}</h3>
                <p style="margin: 5px 0; color: #6b7280; font-size: 14px;">You have been accepted as a:</p>
                <span class="role-badge">{{ ucfirst($role) }}</span>
            </div>

            <div class="next-steps">
                <h4>🚀 Next Steps</h4>
                <ol>
                    <li>Log in to your account using the button below</li>
                    <li>Complete your profile with any additional information</li>
                    <li>Review the programme details and schedule</li>
                    @if($role === 'mentee')
                    <li>Wait to be matched with your mentor</li>
                    @else
                    <li>Review your mentee assignments</li>
                    @endif
                    <li>Start your mentorship journey!</li>
                </ol>
            </div>

            <div class="action-buttons">
                <a href="{{ $loginUrl }}" class="btn-primary">🔐 Login to Account</a>
                <a href="{{ $dashboardUrl }}" class="btn-secondary">📊 View Dashboard</a>
            </div>
        </div>

        <div class="email-footer">
            <p class="footer-text">
                This email was sent from <strong>{{ config('app.name') }}</strong><br>
                <a href="{{ config('app.url') }}" class="footer-link">{{ config('app.url') }}</a>
            </p>
            <p class="footer-text" style="margin-top: 10px;">
                Welcome aboard! We're excited to have you.
            </p>
        </div>
    </div>
</body>
</html>
