<!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, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; }
        .header { background: #2563eb; color: white; padding: 20px; border-radius: 8px 8px 0 0; }
        .content { background: #f9fafb; padding: 20px; border: 1px solid #e5e7eb; }
        .footer { padding: 15px 20px; font-size: 12px; color: #6b7280; border-top: 1px solid #e5e7eb; }
        .status-change { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 16px; background: white; border-radius: 6px; border: 1px solid #e5e7eb; }
        .status-badge { display: inline-block; padding: 6px 16px; border-radius: 16px; font-size: 13px; font-weight: 600; background: #e5e7eb; }
        .arrow { font-size: 20px; color: #6b7280; }
        .reference { font-family: monospace; font-weight: bold; color: #4f46e5; }
    </style>
</head>
<body>
    <div class="header">
        <h2 style="margin: 0;">Ticket Status Updated</h2>
    </div>
    <div class="content">
        <p>The status of your ticket <span class="reference">{{ ticket.reference }}</span> has been updated.</p>
        <p><strong>{{ ticket.subject }}</strong></p>

        <div class="status-change">
            <span class="status-badge">{{ old_status }}</span>
            <span class="arrow">&rarr;</span>
            <span class="status-badge" style="background: #dbeafe; color: #1e40af;">{{ new_status }}</span>
        </div>

        <p>Log in to your account to view the full details of your ticket.</p>
    </div>
    <div class="footer">
        <p>This is an automated message from the support system. Please do not reply directly to this email.</p>
    </div>
</body>
</html>
