<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Quote Sent</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .header {
            border-bottom: 2px solid #667eea;
            padding-bottom: 20px;
            margin-bottom: 20px;
        }
        .header h1 {
            color: #667eea;
            margin: 0;
            font-size: 24px;
        }
        .content {
            margin-bottom: 20px;
        }
        .quote-details {
            background-color: #f8f9fa;
            border-left: 4px solid #667eea;
            padding: 15px;
            margin: 20px 0;
            border-radius: 4px;
        }
        .quote-details p {
            margin: 5px 0;
        }
        .button {
            display: inline-block;
            padding: 12px 24px;
            background-color: #667eea;
            color: #ffffff;
            text-decoration: none;
            border-radius: 4px;
            margin: 20px 0;
        }
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
            font-size: 12px;
            color: #666;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>{{ _('Quote Sent') }}</h1>
        </div>
        <div class="content">
            <p>Hello {{ user.display_name or user.username }},</p>
            <p>Quote <strong>{{ quote.quote_number }}</strong> has been sent to the client.</p>
            
            <div class="quote-details">
                <p><strong>Quote Number:</strong> {{ quote.quote_number }}</p>
                <p><strong>Title:</strong> {{ quote.title }}</p>
                <p><strong>Client:</strong> {{ quote.client.name if quote.client else 'N/A' }}</p>
                <p><strong>Total Amount:</strong> {{ quote.currency_code }} {{ "%.2f"|format(quote.total_amount) }}</p>
                <p><strong>Sent At:</strong> {{ quote.sent_at|user_datetime if quote.sent_at else 'N/A' }}</p>
            </div>
            
            <a href="{{ url_for('quotes.view_quote', quote_id=quote.id, _external=True) }}" class="button">{{ _('View Quote') }}</a>
        </div>
        <div class="footer">
            <p>TimeTracker - Time Tracking & Project Management</p>
        </div>
    </div>
</body>
</html>

