<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ticket Status Updated</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333333;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .email-container {
            max-width: 600px;
            margin: 20px 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%, #2563eb 100%);
            color: #ffffff;
            padding: 30px;
            text-align: center;
        }
        .email-header h1 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
        }
        .email-body {
            padding: 40px 30px;
        }
        .status-change-box {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 25px;
            margin: 25px 0;
            text-align: center;
        }
        .status-badge {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 700;
            margin: 0 10px;
            text-transform: uppercase;
        }
        .arrow {
            font-size: 24px;
            color: #666;
            margin: 0 10px;
        }
        .ticket-info {
            background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(218, 165, 32, 0.05) 100%);
            border-left: 4px solid #daa520;
            padding: 20px;
            margin: 25px 0;
            border-radius: 4px;
        }
        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #daa520, #d4af37);
            color: #ffffff !important;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 6px;
            font-weight: 600;
            margin: 20px 0;
        }
        .footer {
            background-color: #f8f8f8;
            padding: 25px 30px;
            text-align: center;
            font-size: 14px;
            color: #666666;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <div class="email-header">
            <h1>🔔 Ticket Status Updated</h1>
        </div>

        <div class="email-body">
            <p>Dear {{ user_name }},</p>
            
            <p>Your support ticket status has been updated.</p>

            <div class="ticket-info">
                <strong>Ticket:</strong> {{ ticket_number }}<br>
                <strong>Subject:</strong> {{ title }}
            </div>

            <div class="status-change-box">
                <h3 style="margin-top: 0;">Status Change</h3>
                <div style="display: flex; align-items: center; justify-content: center; flex-wrap: wrap;">
                    <span class="status-badge" style="background-color: #94a3b8;">{{ old_status }}</span>
                    <span class="arrow">→</span>
                    <span class="status-badge" style="background-color: {{ status_color }};">{{ new_status }}</span>
                </div>
                <p style="margin-top: 15px; color: #666; font-size: 14px;">Updated: {{ updated_at }}</p>
            </div>

            <div style="text-align: center; margin: 30px 0;">
                <a href="{{ support_url }}" class="cta-button">View Ticket Details</a>
            </div>

            <p style="color: #666;">
                You can check the full details of your ticket and any new messages in the Support Center.
            </p>
        </div>

        <div class="footer">
            <p style="margin: 0 0 10px 0;">
                <strong>GNX Software Solutions</strong><br>
                Enterprise Support Center
            </p>
            <p style="margin: 0; font-size: 12px;">
                This is an automated notification. For assistance, visit our <a href="{{ support_url }}" style="color: #daa520;">Support Center</a>
            </p>
        </div>
    </div>
</body>
</html>

