<!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>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.7;
            color: #2c3e50;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin: 0;
            padding: 40px 20px;
        }
        
        .email-wrapper {
            max-width: 650px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
        }
        
        .email-header {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
            padding: 50px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .email-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
        }
        
        .email-header h1 {
            color: #ffffff;
            font-size: 32px;
            font-weight: 700;
            margin: 0;
            position: relative;
            z-index: 2;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .email-body {
            padding: 50px 40px;
            background: #ffffff;
        }
        
        .greeting {
            font-size: 18px;
            color: #1e293b;
            margin-bottom: 30px;
            font-weight: 500;
        }
        
        .intro-text {
            font-size: 16px;
            color: #475569;
            line-height: 1.8;
            margin-bottom: 35px;
        }
        
        .ticket-info {
            background: linear-gradient(135deg, rgba(218, 165, 32, 0.08) 0%, rgba(218, 165, 32, 0.03) 100%);
            border: 2px solid rgba(218, 165, 32, 0.2);
            border-left: 5px solid #daa520;
            padding: 25px;
            margin: 35px 0;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(218, 165, 32, 0.1);
        }
        
        .ticket-info strong {
            color: #475569;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: block;
            margin-bottom: 8px;
        }
        
        .ticket-info span {
            color: #1e293b;
            font-size: 16px;
            font-weight: 600;
        }
        
        .status-change-box {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border: 2px solid rgba(59, 130, 246, 0.2);
            border-radius: 12px;
            padding: 40px 30px;
            margin: 35px 0;
            text-align: center;
            box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
        }
        
        .status-change-box h3 {
            margin: 0 0 30px 0;
            color: #1e293b;
            font-size: 18px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .status-display {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .status-badge {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }
        
        .status-old {
            background: linear-gradient(135deg, #94a3b8, #64748b);
            color: white;
        }
        
        .status-new {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
        }
        
        .arrow {
            font-size: 32px;
            color: #64748b;
            font-weight: 300;
        }
        
        .update-time {
            color: #64748b;
            font-size: 13px;
            margin-top: 25px;
            font-style: italic;
        }
        
        .cta-container {
            text-align: center;
            margin: 45px 0;
        }
        
        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #daa520 0%, #d4af37 100%);
            color: #ffffff !important;
            text-decoration: none;
            padding: 18px 40px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 16px;
            letter-spacing: 0.5px;
            box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
            transition: all 0.3s ease;
            text-transform: uppercase;
        }
        
        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(218, 165, 32, 0.5);
        }
        
        .info-note {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-left: 4px solid #3b82f6;
            padding: 20px 25px;
            border-radius: 8px;
            margin-top: 35px;
            color: #475569;
            font-size: 14px;
            line-height: 1.7;
        }
        
        .email-footer {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            padding: 40px;
            text-align: center;
            color: rgba(255, 255, 255, 0.9);
        }
        
        .footer-company {
            font-size: 18px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 8px;
        }
        
        .footer-tagline {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 25px;
        }
        
        .footer-links {
            margin: 25px 0;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .footer-links a {
            color: #daa520;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
        }
        
        .footer-links a:hover {
            text-decoration: underline;
        }
        
        .footer-note {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 25px;
            line-height: 1.6;
        }
        
        @media (max-width: 600px) {
            body {
                padding: 20px 10px;
            }
            
            .email-header {
                padding: 40px 25px;
            }
            
            .email-header h1 {
                font-size: 26px;
            }
            
            .email-body {
                padding: 35px 25px;
            }
            
            .status-display {
                flex-direction: column;
            }
            
            .arrow {
                transform: rotate(90deg);
            }
            
            .cta-button {
                padding: 16px 30px;
                font-size: 14px;
            }
        }
    </style>
</head>
<body>
    <div class="email-wrapper">
        <div class="email-header">
            <h1>🔔 Ticket Status Updated</h1>
        </div>

        <div class="email-body">
            <div class="greeting">Dear {{ user_name }},</div>
            
            <div class="intro-text">
                Your support ticket status has been updated. You can view the full details below.
            </div>

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

            <div class="status-change-box">
                <h3>Status Change</h3>
                <div class="status-display">
                    <span class="status-badge status-old">{{ old_status }}</span>
                    <span class="arrow">→</span>
                    <span class="status-badge status-new">{{ new_status }}</span>
                </div>
                <div class="update-time">Updated: {{ updated_at }}</div>
            </div>

            <div class="cta-container">
                <a href="{{ support_url }}" class="cta-button">View Ticket Details</a>
            </div>

            <div class="info-note">
                You can check the full details of your ticket and any new messages in the Support Center.
            </div>
        </div>

        <div class="email-footer">
            <div class="footer-company">GNX Software Solutions</div>
            <div class="footer-tagline">Enterprise Support Center</div>
            
            <div class="footer-links">
                <a href="{{ support_url }}">Visit Support Center</a>
            </div>
            
            <div class="footer-note">
                This is an automated notification. For assistance, visit our <a href="{{ support_url }}" style="color: #daa520;">Support Center</a>
            </div>
        </div>
    </div>
</body>
</html>
