<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shift Signup Confirmation</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f8f9fa;
        }
        
        .container {
            background: white;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header {
            text-align: center;
            border-bottom: 3px solid #28a745;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        
        .header h1 {
            color: #28a745;
            margin: 0;
            font-size: 28px;
        }
        
        .welcome-message {
            background: #d4edda;
            padding: 20px;
            border-radius: 6px;
            border-left: 4px solid #28a745;
            margin: 20px 0;
        }
        
        .shift-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 6px;
            margin: 20px 0;
        }
        
        .shift-details h2 {
            color: #28a745;
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 22px;
        }
        
        .detail-row {
            display: flex;
            margin: 8px 0;
            align-items: center;
        }
        
        .detail-label {
            font-weight: bold;
            min-width: 100px;
            color: #666;
        }
        
        .actions {
            text-align: center;
            margin: 30px 0;
        }
        
        .button {
            display: inline-block;
            background: #28a745;
            color: white;
            padding: 12px 30px;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            margin: 10px;
        }
        
        .button:hover {
            background: #218838;
        }
        
        .secondary-link {
            color: #28a745;
            text-decoration: none;
        }
        
        .secondary-link:hover {
            text-decoration: underline;
        }
        
        .footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #dee2e6;
            color: #666;
            font-size: 14px;
        }
        
        .important {
            background: #d1ecf1;
            border: 1px solid #bee5eb;
            border-radius: 4px;
            padding: 15px;
            margin: 20px 0;
            color: #0c5460;
        }
        
        .important strong {
            color: #0c5460;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>✅ Shift Signup Confirmed!</h1>
        </div>
        
        <div class="welcome-message">
            <p><strong>Hi {{USER_NAME}},</strong></p>
            <p>Great news! You've been successfully signed up for another volunteer shift with {{APP_NAME}}.</p>
        </div>
        
        <div class="shift-details">
            <h2>📅 {{SHIFT_TITLE}}</h2>
            <div class="detail-row">
                <span class="detail-label">📅 Date:</span>
                <span>{{SHIFT_DATE}}</span>
            </div>
            <div class="detail-row">
                <span class="detail-label">⏰ Time:</span>
                <span>{{SHIFT_TIME}}</span>
            </div>
            <div class="detail-row">
                <span class="detail-label">📍 Location:</span>
                <span>{{SHIFT_LOCATION}}</span>
            </div>
            {{#if SHIFT_DESCRIPTION}}
            <div style="margin-top: 15px;">
                <strong>Details:</strong><br>
                {{SHIFT_DESCRIPTION}}
            </div>
            {{/if}}
        </div>
        
        <div class="important">
            <strong>What's Next?</strong>
            <ul style="margin: 10px 0; padding-left: 20px;">
                <li>Mark your calendar for {{SHIFT_DATE}} at {{SHIFT_TIME}}</li>
                <li>Login to your existing account using your current credentials</li>
                <li>You can view or cancel your signup anytime from your account</li>
                <li>We'll send you reminder details closer to the shift date</li>
            </ul>
        </div>
        
        <div class="actions">
            <a href="{{LOGIN_URL}}" class="button">🔐 Login to Your Account</a>
            <br>
            <p style="margin-top: 15px;">
                Once logged in, visit <a href="{{SHIFTS_URL}}" class="secondary-link">My Shifts</a> to manage all your volunteer signups.
            </p>
        </div>
        
        <div class="footer">
            <p>Thank you for continuing to volunteer with {{APP_NAME}}!</p>
            <p>Questions? Reply to this email and we'll help you out.</p>
            <p><small>Sent on {{TIMESTAMP}}</small></p>
        </div>
    </div>
</body>
</html>
