<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{{.Subject}}</title>
    <!--[if mso]>
    <noscript>
        <xml>
            <o:OfficeDocumentSettings>
                <o:PixelsPerInch>96</o:PixelsPerInch>
            </o:OfficeDocumentSettings>
        </xml>
    </noscript>
    <![endif]-->
    <style>
        /* Reset */
        body, table, td, p, a, li, blockquote {
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }
        table, td {
            mso-table-lspace: 0pt;
            mso-table-rspace: 0pt;
        }
        img {
            -ms-interpolation-mode: bicubic;
            border: 0;
            height: auto;
            line-height: 100%;
            outline: none;
            text-decoration: none;
        }
        body {
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
        }

        /* Dark theme base */
        .email-wrapper {
            background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
            padding: 40px 20px;
        }

        .email-container {
            max-width: 600px;
            margin: 0 auto;
            background: #1E293B;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
        }

        /* Header with gradient */
        .email-header {
            background: linear-gradient(135deg, #0079FF 0%, #5AC7F9 50%, #14B8A6 100%);
            padding: 40px 30px;
            text-align: center;
        }

        .logo-text {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: #FFFFFF;
            margin: 0;
            letter-spacing: -0.5px;
        }

        .header-title {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #FFFFFF;
            margin: 16px 0 0 0;
        }

        /* Body content */
        .email-body {
            padding: 40px 30px;
            background: #FFFFFF;
        }

        .greeting {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0 0 20px 0;
        }

        .body-text {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 16px;
            line-height: 1.6;
            color: #4B5563;
            margin: 0 0 20px 0;
        }

        /* Code box for verification codes */
        .code-box {
            background: linear-gradient(135deg, rgba(0, 121, 255, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
            border: 2px solid rgba(0, 121, 255, 0.2);
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            margin: 30px 0;
        }

        .verification-code {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 36px;
            font-weight: 800;
            letter-spacing: 8px;
            color: #0079FF;
            margin: 0;
        }

        .code-expiry {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 13px;
            color: #9CA3AF;
            margin: 12px 0 0 0;
        }

        /* Feature box */
        .feature-box {
            background: #F8FAFC;
            border-radius: 12px;
            padding: 24px;
            margin: 24px 0;
        }

        .feature-title {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 16px;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 16px 0;
        }

        .feature-item {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 14px;
            color: #4B5563;
            margin: 12px 0;
            padding-left: 8px;
        }

        .feature-icon {
            margin-right: 8px;
        }

        /* Warning box */
        .warning-box {
            background: linear-gradient(135deg, rgba(255, 148, 0, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
            border-left: 4px solid #FF9400;
            border-radius: 8px;
            padding: 16px 20px;
            margin: 24px 0;
        }

        .warning-title {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: #E68600;
            margin: 0 0 8px 0;
        }

        .warning-text {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 14px;
            color: #4B5563;
            margin: 0;
        }

        /* Success box */
        .success-box {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
            border-left: 4px solid #22C55E;
            border-radius: 8px;
            padding: 20px;
            margin: 24px 0;
        }

        .success-title {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 16px;
            font-weight: 700;
            color: #15803d;
            margin: 0 0 8px 0;
        }

        .success-meta {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 13px;
            color: #6B7280;
            margin: 8px 0 0 0;
        }

        /* Stats grid */
        .stats-grid {
            margin: 24px 0;
        }

        .stat-item {
            display: inline-block;
            text-align: center;
            padding: 16px 24px;
            background: #F8FAFC;
            border-radius: 8px;
            margin: 4px;
        }

        .stat-number {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: #1a1a1a;
            display: block;
        }

        .stat-number.completed { color: #22C55E; }
        .stat-number.pending { color: #FF9400; }
        .stat-number.overdue { color: #EF4444; }

        .stat-label {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 11px;
            font-weight: 600;
            color: #9CA3AF;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-top: 4px;
        }

        /* Button */
        .button-container {
            text-align: center;
            margin: 30px 0;
        }

        .btn-primary {
            display: inline-block;
            background: linear-gradient(135deg, #0079FF 0%, #5AC7F9 50%, #14B8A6 100%);
            color: #FFFFFF !important;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 121, 255, 0.4);
        }

        /* Signature */
        .signature {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 14px;
            color: #6B7280;
            margin: 30px 0 0 0;
        }

        .signature strong {
            color: #1a1a1a;
        }

        /* Footer */
        .email-footer {
            background: #0F172A;
            padding: 30px;
            text-align: center;
        }

        .footer-text {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
        }

        .footer-links {
            margin: 16px 0 0 0;
        }

        .footer-link {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            margin: 0 12px;
        }

        .footer-link:hover {
            color: #5AC7F9;
        }

        /* Mobile responsiveness */
        @media only screen and (max-width: 600px) {
            .email-wrapper {
                padding: 20px 10px;
            }
            .email-header {
                padding: 30px 20px;
            }
            .email-body {
                padding: 30px 20px;
            }
            .verification-code {
                font-size: 28px;
                letter-spacing: 6px;
            }
            .stat-item {
                padding: 12px 16px;
            }
            .stat-number {
                font-size: 24px;
            }
        }
    </style>
</head>
<body style="margin: 0; padding: 0;">
    {{.Content}}
</body>
</html>
