<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Application Received</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, #3b82f6 0%, #60a5fa 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: #3b82f6;
        }
        .content {
            margin-bottom: 30px;
        }
        .application-details {
            background-color: #eff6ff;
            border: 1px solid #bfdbfe;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        .application-details h3 {
            margin: 0 0 15px 0;
            color: #1d4ed8;
            font-size: 16px;
        }
        .detail-row {
            display: flex;
            margin-bottom: 10px;
            font-size: 14px;
        }
        .detail-label {
            font-weight: 600;
            color: #374151;
            width: 140px;
            flex-shrink: 0;
        }
        .detail-value {
            color: #6b7280;
        }
        .status-badge {
            display: inline-block;
            background-color: #fbbf24;
            color: #78350f;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .tracking-box {
            background-color: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 6px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        .tracking-box h4 {
            margin: 0 0 10px 0;
            color: #166534;
            font-size: 14px;
        }
        .tracking-id {
            font-size: 18px;
            font-weight: 600;
            font-family: 'Courier New', monospace;
            color: #15803d;
            background-color: #dcfce7;
            padding: 8px 16px;
            border-radius: 4px;
            display: inline-block;
        }
        .info-box {
            background-color: #fef3c7;
            border: 1px solid #fde68a;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
            font-size: 14px;
            color: #92400e;
        }
        .cta-button {
            display: inline-block;
            background-color: #3b82f6;
            color: #ffffff;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 10px;
        }
        .cta-button:hover {
            background-color: #2563eb;
        }
        .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: #3b82f6;
            text-decoration: none;
        }
    </style>
</head>
<body style="margin: 0; padding: 20px; background-color: #f4f4f5;">
    <div class="email-wrapper">
        <div class="email-header">
            <h1>📝 Application Received</h1>
            <p>Thank you for applying to our mentorship programme</p>
        </div>

        <div class="email-body">
            <p class="greeting">Dear <strong>{{ $applicantName }}</strong>,</p>

            <div class="content">
                <p>Thank you for submitting your application for the <strong>{{ $programmeName }}</strong> mentorship programme. We have successfully received your application and it is currently being reviewed by our team.</p>
            </div>

            <div class="application-details">
                <h3>📋 Application Summary</h3>
                <div class="detail-row">
                    <span class="detail-label">Programme:</span>
                    <span class="detail-value">{{ $programmeName }}</span>
                </div>
                <div class="detail-row">
                    <span class="detail-label">Application ID:</span>
                    <span class="detail-value">#{{ $applicationId }}</span>
                </div>
                <div class="detail-row">
                    <span class="detail-label">Status:</span>
                    <span class="detail-value"><span class="status-badge">Under Review</span></span>
                </div>
            </div>

            <div class="tracking-box">
                <h4>🔗 Track Your Application Status</h4>
                <p style="margin: 10px 0; color: #6b7280; font-size: 14px;">Use this link to check your application status:</p>
                <a href="{{ $statusUrl }}" class="cta-button">Check Application Status</a>
            </div>

            <div class="info-box">
                <strong>⏳ What Happens Next?</strong><br>
                Our team will review your application and get back to you within 5-7 business days. You will receive an email notification once a decision has been made.
            </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;">
                If you have any questions, please contact our support team.
            </p>
        </div>
    </div>
</body>
</html>
