<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Support Ticket Confirmation</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, #0f172a 0%, #1e293b 100%);
            color: #ffffff;
            padding: 30px;
            text-align: center;
        }
        .email-header h1 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
        }
        .email-body {
            padding: 40px 30px;
        }
        .ticket-number-box {
            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;
        }
        .ticket-number {
            font-size: 24px;
            font-weight: 700;
            color: #daa520;
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
        }
        .info-section {
            margin: 25px 0;
        }
        .info-row {
            padding: 12px 0;
            border-bottom: 1px solid #e5e5e5;
        }
        .info-row:last-child {
            border-bottom: none;
        }
        .info-label {
            font-weight: 600;
            color: #555555;
            display: inline-block;
            width: 120px;
        }
        .info-value {
            color: #333333;
        }
        .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;
            text-align: center;
        }
        .footer {
            background-color: #f8f8f8;
            padding: 25px 30px;
            text-align: center;
            font-size: 14px;
            color: #666666;
        }
        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            background-color: #3b82f6;
            color: white;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <!-- Header -->
        <div class="email-header">
            <h1>✓ Support Ticket Created</h1>
        </div>

        <!-- Body -->
        <div class="email-body">
            <p>Dear {{ user_name }},</p>
            
            <p>Thank you for contacting our support team. We've received your support request and our team will respond as soon as possible.</p>

            <!-- Ticket Number Box -->
            <div class="ticket-number-box">
                <div style="font-size: 14px; color: #666; margin-bottom: 8px;">Your Ticket Number</div>
                <div class="ticket-number">{{ ticket_number }}</div>
                <div style="font-size: 13px; color: #666; margin-top: 8px;">Please save this number for future reference</div>
            </div>

            <!-- Ticket Details -->
            <div class="info-section">
                <h3 style="color: #0f172a; margin-bottom: 15px;">Ticket Details</h3>
                
                <div class="info-row">
                    <span class="info-label">Subject:</span>
                    <span class="info-value">{{ title }}</span>
                </div>
                
                <div class="info-row">
                    <span class="info-label">Type:</span>
                    <span class="info-value">{{ ticket_type }}</span>
                </div>
                
                <div class="info-row">
                    <span class="info-label">Category:</span>
                    <span class="info-value">{{ category }}</span>
                </div>
                
                <div class="info-row">
                    <span class="info-label">Priority:</span>
                    <span class="info-value">{{ priority }}</span>
                </div>
                
                <div class="info-row">
                    <span class="info-label">Status:</span>
                    <span class="status-badge">{{ status }}</span>
                </div>
                
                <div class="info-row">
                    <span class="info-label">Created:</span>
                    <span class="info-value">{{ created_at }}</span>
                </div>
            </div>

            <!-- Description -->
            <div class="info-section">
                <h3 style="color: #0f172a; margin-bottom: 15px;">Description</h3>
                <div style="background-color: #f8f8f8; padding: 15px; border-radius: 4px; white-space: pre-wrap;">{{ description }}</div>
            </div>

            <!-- CTA Button -->
            <div style="text-align: center; margin: 30px 0;">
                <a href="{{ support_url }}" class="cta-button">Check Ticket Status</a>
            </div>

            <p style="margin-top: 30px; color: #666;">
                <strong>What happens next?</strong><br>
                Our support team will review your ticket and respond within our standard SLA timeframe. You'll receive an email notification when there's an update.
            </p>
        </div>

        <!-- Footer -->
        <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 message. Please do not reply directly to this email.<br>
                For assistance, please visit our <a href="{{ support_url }}" style="color: #daa520;">Support Center</a>
            </p>
        </div>
    </div>
</body>
</html>

