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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dashboard - LeadGenius</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <style>
        .gradient-text {
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .sidebar {
            transition: all 0.3s ease;
        }
        .sidebar.collapsed {
            width: 80px;
        }
        .sidebar.collapsed .nav-text {
            display: none;
        }
    </style>
</head>
<body class="bg-gray-50">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="sidebar bg-white border-r border-gray-200 flex flex-col w-64">
            <div class="flex items-center justify-between p-4 border-b border-gray-200">
                <div class="flex items-center">
                    <i data-feather="zap" class="text-indigo-600 h-6 w-6"></i>
                    <span class="ml-2 text-xl font-bold gradient-text nav-text">LeadGenius</span>
                </div>
                <button id="toggleSidebar" class="text-gray-500 hover:text-gray-700">
                    <i data-feather="chevron-left" class="h-5 w-5"></i>
                </button>
            </div>
            <nav class="flex-1 p-4 space-y-2">
                <a href="/dashboard.html" class="flex items-center p-3 rounded-lg bg-indigo-50 text-indigo-700">
                    <i data-feather="home" class="h-5 w-5"></i>
                    <span class="ml-3 font-medium nav-text">Dashboard</span>
                </a>
                <a href="/find-leads.html" class="flex items-center p-3 rounded-lg text-gray-700 hover:bg-gray-100">
                    <i data-feather="search" class="h-5 w-5"></i>
                    <span class="ml-3 font-medium nav-text">Find Leads</span>
                </a>
                <a href="/email-campaigns.html" class="flex items-center p-3 rounded-lg text-gray-700 hover:bg-gray-100">
                    <i data-feather="mail" class="h-5 w-5"></i>
                    <span class="ml-3 font-medium nav-text">Email Campaigns</span>
                </a>
                <a href="/lead-database.html" class="flex items-center p-3 rounded-lg text-gray-700 hover:bg-gray-100">
                    <i data-feather="users" class="h-5 w-5"></i>
                    <span class="ml-3 font-medium nav-text">Lead Database</span>
                </a>
                <a href="/analytics.html" class="flex items-center p-3 rounded-lg text-gray-700 hover:bg-gray-100">
                    <i data-feather="bar-chart-2" class="h-5 w-5"></i>
                    <span class="ml-3 font-medium nav-text">Analytics</span>
                </a>
                <a href="/settings.html" class="flex items-center p-3 rounded-lg text-gray-700 hover:bg-gray-100">
                    <i data-feather="settings" class="h-5 w-5"></i>
                    <span class="ml-3 font-medium nav-text">Settings</span>
                </a>
</nav>
            <div class="p-4 border-t border-gray-200">
                <div class="flex items-center">
                    <img src="http://static.photos/people/200x200/42" alt="User" class="h-8 w-8 rounded-full">
                    <div class="ml-3 nav-text">
                        <p class="text-sm font-medium text-gray-900">Jane Cooper</p>
                        <p class="text-xs text-gray-500">jane@example.com</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- Top Navigation -->
            <header class="bg-white border-b border-gray-200">
                <div class="flex items-center justify-between px-6 py-4">
                    <h1 class="text-2xl font-bold text-gray-900">Dashboard</h1>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                            <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400 h-5 w-5"></i>
                        </div>
                        <button class="text-gray-500 hover:text-gray-700">
                            <i data-feather="bell" class="h-6 w-6"></i>
                        </button>
                    </div>
                </div>
            </header>

            <!-- Dashboard Content -->
            <main class="flex-1 overflow-y-auto p-6 bg-gray-50">
                <!-- Stats Cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500">Total Leads</p>
                                <p class="text-3xl font-bold text-gray-900 mt-2">1,248</p>
                                <p class="text-sm text-green-500 mt-1">+12% from last month</p>
                            </div>
                            <div class="bg-indigo-100 p-3 rounded-lg">
                                <i data-feather="users" class="text-indigo-600 h-6 w-6"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500">Email Open Rate</p>
                                <p class="text-3xl font-bold text-gray-900 mt-2">68%</p>
                                <p class="text-sm text-green-500 mt-1">+5% from last week</p>
                            </div>
                            <div class="bg-indigo-100 p-3 rounded-lg">
                                <i data-feather="mail" class="text-indigo-600 h-6 w-6"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500">Response Rate</p>
                                <p class="text-3xl font-bold text-gray-900 mt-2">24%</p>
                                <p class="text-sm text-green-500 mt-1">+3% from last week</p>
                            </div>
                            <div class="bg-indigo-100 p-3 rounded-lg">
                                <i data-feather="message-square" class="text-indigo-600 h-6 w-6"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm font-medium text-gray-500">Conversion Rate</p>
                                <p class="text-3xl font-bold text-gray-900 mt-2">8%</p>
                                <p class="text-sm text-green-500 mt-1">+1% from last week</p>
                            </div>
                            <div class="bg-indigo-100 p-3 rounded-lg">
                                <i data-feather="dollar-sign" class="text-indigo-600 h-6 w-6"></i>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Charts and Recent Leads -->
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 lg:col-span-2">
                        <div class="flex items-center justify-between mb-6">
                            <h2 class="text-lg font-semibold text-gray-900">Campaign Performance</h2>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-sm font-medium rounded-lg bg-indigo-600 text-white">Weekly</button>
                                <button class="px-3 py-1 text-sm font-medium rounded-lg bg-gray-100 text-gray-700 hover:bg-gray-200">Monthly</button>
                                <button class="px-3 py-1 text-sm font-medium rounded-lg bg-gray-100 text-gray-700 hover:bg-gray-200">Yearly</button>
                            </div>
                        </div>
                        <div class="h-64 bg-gray-50 rounded-lg border border-gray-200 flex items-center justify-center">
                            <p class="text-gray-500">Performance chart will appear here</p>
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                        <h2 class="text-lg font-semibold text-gray-900 mb-6">Recent Leads</h2>
                        <div class="space-y-4">
                            <div class="flex items-center">
                                <img src="http://static.photos/people/200x200/1" alt="Lead" class="h-10 w-10 rounded-full">
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Sarah Johnson</p>
                                    <p class="text-xs text-gray-500">CEO at TechStart</p>
                                </div>
                                <div class="ml-auto text-xs text-indigo-600 font-medium">New</div>
                            </div>
                            <div class="flex items-center">
                                <img src="http://static.photos/people/200x200/2" alt="Lead" class="h-10 w-10 rounded-full">
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Michael Chen</p>
                                    <p class="text-xs text-gray-500">Marketing Director at GrowthLabs</p>
                                </div>
                                <div class="ml-auto text-xs text-green-600 font-medium">Contacted</div>
                            </div>
                            <div class="flex items-center">
                                <img src="http://static.photos/people/200x200/3" alt="Lead" class="h-10 w-10 rounded-full">
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">Emma Wilson</p>
                                    <p class="text-xs text-gray-500">Founder at DigitalAce</p>
                                </div>
                                <div class="ml-auto text-xs text-blue-600 font-medium">In Progress</div>
                            </div>
                            <div class="flex items-center">
                                <img src="http://static.photos/people/200x200/4" alt="Lead" class="h-10 w-10 rounded-full">
                                <div class="ml-3">
                                    <p class="text-sm font-medium text-gray-900">David Rodriguez</p>
                                    <p class="text-xs text-gray-500">CTO at InnovateCo</p>
                                </div>
                                <div class="ml-auto text-xs text-purple-600 font-medium">Qualified</div>
                            </div>
                        </div>
                <a href="/lead-database.html" class="mt-4 w-full py-2 text-sm font-medium text-indigo-600 hover:text-indigo-700 text-center block">
                    View all leads
                </a>
</div>
                </div>

                <!-- Email Campaigns -->
                <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 mb-6">
                    <div class="flex items-center justify-between mb-6">
                        <h2 class="text-lg font-semibold text-gray-900">Recent Email Campaigns</h2>
                        <a href="/email-campaigns.html" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg text-sm font-medium flex items-center">
                            <i data-feather="plus" class="h-4 w-4 mr-2"></i>
                            New Campaign
                        </a>
</div>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Campaign</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Sent</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Opens</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Responses</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                    <th scope="col" class="relative px-6 py-3"></th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm font-medium text-gray-900">Tech Startup Outreach</div>
                                        <div class="text-sm text-gray-500">Sent to 245 leads</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 days ago</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">167 (68%)</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">59 (24%)</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-indigo-600 hover:text-indigo-900">View</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm font-medium text-gray-900">SaaS Product Demo</div>
                                        <div class="text-sm text-gray-500">Sent to 180 leads</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 week ago</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">122 (68%)</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">43 (24%)</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-indigo-600 hover:text-indigo-900">View</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm font-medium text-gray-900">Enterprise Solutions</div>
                                        <div class="text-sm text-gray-500">Sent to 85 leads</div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 weeks ago</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">51 (60%)</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">20 (24%)</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <a href="#" class="text-indigo-600 hover:text-indigo-900">View</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- AI Email Generator -->
                <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
                    <h2 class="text-lg font-semibold text-gray-900 mb-4">AI Email Generator</h2>
                    <p class="text-gray-600 mb-6">Let our AI craft the perfect personalized email for your leads based on their profile and your goals.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label for="lead-type" class="block text-sm font-medium text-gray-700 mb-1">Lead Type</label>
                            <select id="lead-type" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                <option>Tech Startup Founder</option>
                                <option>Marketing Director</option>
                                <option>HR Manager</option>
                                <option>CTO</option>
                                <option>CEO</option>
                            </select>
                        </div>
                        <div>
                            <label for="goal" class="block text-sm font-medium text-gray-700 mb-1">Email Goal</label>
                            <select id="goal" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                <option>Schedule a demo</option>
                                <option>Offer free trial</option>
                                <option>Request meeting</option>
                                <option>Follow-up</option>
                                <option>Cold outreach</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="mt-6">
                        <label for="context" class="block text-sm font-medium text-gray-700 mb-1">Additional Context</label>
                        <textarea id="context" rows="3" class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="Add any specific details about your product/service or the lead..."></textarea>
                    </div>
                    
                    <div class="mt-6 flex justify-end">
                        <button id="generateEmailBtn" class="bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-2 rounded-lg text-sm font-medium flex items-center">
                            <i data-feather="sparkles" class="h-4 w-4 mr-2"></i>
                            Generate Email
                        </button>
</div>
                </div>
            </main>
        </div>
    </div>
    <script>
        document.getElementById('toggleSidebar').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('collapsed');
        });

        // Email generation functionality
        document.getElementById('generateEmailBtn').addEventListener('click', function() {
            const leadType = document.getElementById('lead-type').value;
            const goal = document.getElementById('goal').value;
            const context = document.getElementById('context').value;
            
            // Simulate AI email generation
            const emailTemplate = generateEmailTemplate(leadType, goal, context);
            
            // Show the generated email
            alert('AI Generated Email:\n\n' + emailTemplate);
            
            // Option to save to campaigns
            if(confirm('Would you like to save this email to your campaigns?')) {
                // Redirect to email campaigns page
                window.location.href = '/email-campaigns.html?template=' + encodeURIComponent(emailTemplate);
            }
        });

        function generateEmailTemplate(leadType, goal, context) {
            const templates = {
                'Tech Startup Founder': {
                    'Schedule a demo': `Hi [Name],

I came across [Company Name] and was impressed by your work in the tech space. As a fellow innovator, I thought you might be interested in seeing how our platform can help streamline your operations.

Would you be open to a quick 15-minute demo next week to see if it could be valuable for your team?

Best regards,
[Your Name]`
                },
                'Marketing Director': {
                    'Offer free trial': `Hello [Name],

I've been following [Company Name]'s marketing efforts and they're truly impressive! I believe our tool could help take your campaigns to the next level.

We're offering a 14-day free trial - no credit card required. Would you like to give it a try?

Warm regards,
[Your Name]`
                }
            };

            // Default template if specific combination not found
            const defaultTemplate = `Hi [Name],

I was impressed by [Company Name] and believe our solution could help you achieve your goals. ${context ? 'Specifically regarding: ' + context : ''}

${goal === 'Schedule a demo' ? 'Would you be available for a quick demo next week?' : 
goal === 'Offer free trial' ? 'We offer a risk-free trial to get started.' : 
goal === 'Request meeting' ? 'Would you be open to a brief meeting to discuss further?' : 
goal === 'Follow-up' ? 'Following up on our previous conversation...' : 
'I wanted to reach out and introduce our services.'}

Best regards,
[Your Name]`;

            return templates[leadType]?.[goal] || defaultTemplate;
        }

        // Check for search query from homepage
        document.addEventListener('DOMContentLoaded', function() {
            const searchQuery = sessionStorage.getItem('leadSearchQuery');
            if (searchQuery) {
                // Simulate AI lead search results
                simulateLeadSearch(searchQuery);
                sessionStorage.removeItem('leadSearchQuery');
            }
        });

        function simulateLeadSearch(query) {
            // This would be replaced with actual API call
            console.log('Searching for leads with query:', query);
            // Show notification or update UI accordingly
        }
    </script>
<script>
        feather.replace();
    </script>
</body>
</html>