File size: 42,330 Bytes
6edfe4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FinTrack Pro - Accounting Solution</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .sidebar-item:hover .sidebar-icon {
            transform: translateX(5px);
        }
        .chart-container {
            height: 300px;
        }
        .animated-fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .transaction-list li:nth-child(even) {
            background-color: rgba(243, 244, 246, 0.5);
        }
        .dashboard-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="hidden md:flex md:flex-shrink-0">
            <div class="flex flex-col w-64 gradient-bg text-white">
                <div class="flex items-center justify-center h-16 px-4">
                    <h1 class="text-2xl font-bold"><i class="fas fa-calculator mr-2"></i> FinTrack Pro</h1>
                </div>
                <div class="flex-1 overflow-y-auto">
                    <nav class="px-4 py-6">
                        <div class="space-y-2">
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg bg-white bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-tachometer-alt mr-3 transition-transform"></i>
                                <span>Dashboard</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-file-invoice-dollar mr-3 transition-transform"></i>
                                <span>Invoices</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-receipt mr-3 transition-transform"></i>
                                <span>Expenses</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-university mr-3 transition-transform"></i>
                                <span>Bank Reconciliation</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-chart-line mr-3 transition-transform"></i>
                                <span>Reports</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-percent mr-3 transition-transform"></i>
                                <span>Tax Management</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-users mr-3 transition-transform"></i>
                                <span>Payroll</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-globe mr-3 transition-transform"></i>
                                <span>Multi-Currency</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-boxes mr-3 transition-transform"></i>
                                <span>Inventory</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-plug mr-3 transition-transform"></i>
                                <span>Integrations</span>
                            </div>
                        </div>

                        <div class="mt-6">
                            <h3 class="px-4 text-gray-300 uppercase text-xs font-semibold">Advanced Tools</h3>
                            <div class="mt-2">
                                <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                    <i class="sidebar-icon fas fa-chart-bar mr-3 transition-transform"></i>
                                    <span>Cash Flow Forecasting</span>
                                </div>
                                <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                    <i class="sidebar-icon fas fa-bell mr-3 transition-transform"></i>
                                    <span>Proactive Alerts</span>
                                </div>
                                <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                    <i class="sidebar-icon fas fa-lightbulb mr-3 transition-transform"></i>
                                    <span>Optimization Tips</span>
                                </div>
                                <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                    <i class="sidebar-icon fas fa-robot mr-3 transition-transform"></i>
                                    <span>AI Assistant</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mt-10">
                            <h3 class="px-4 text-gray-300 uppercase text-xs font-semibold">Settings</h3>
                            <div class="mt-2">
                                <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                    <i class="sidebar-icon fas fa-user-shield mr-3 transition-transform"></i>
                                    <span>User Access</span>
                                </div>
                                <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                    <i class="sidebar-icon fas fa-cog mr-3 transition-transform"></i>
                                    <span>Preferences</span>
                                </div>
                            </div>
                        </div>
                    </nav>
                </div>
                <div class="p-4 border-t border-gray-700">
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="rounded-full h-10 w-10 object-cover">
                        <div class="ml-3">
                            <p class="text-sm font-medium">Sarah Johnson</p>
                            <p class="text-xs text-gray-300">Admin</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Mobile sidebar -->
        <div class="md:hidden fixed inset-0 z-40" id="mobileSidebar" style="display: none;">
            <div class="fixed inset-0 bg-gray-600 bg-opacity-75" id="mobileSidebarBackdrop"></div>
            <div class="relative flex flex-col w-72 max-w-xs h-full gradient-bg">
                <div class="flex items-center justify-between h-16 px-4">
                    <h1 class="text-xl font-bold text-white"><i class="fas fa-calculator mr-2"></i> FinTrack Pro</h1>
                    <button class="text-white" id="closeMobileSidebar">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="flex-1 overflow-y-auto py-4">
                    <!-- Same sidebar content as desktop -->
                    <nav class="px-4">
                        <div class="space-y-2">
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg bg-white bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-tachometer-alt mr-3 transition-transform"></i>
                                <span class="text-white">Dashboard</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-file-invoice-dollar mr-3 transition-transform"></i>
                                <span class="text-white">Invoices</span>
                            </div>
                            <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer">
                                <i class="sidebar-icon fas fa-receipt mr-3 transition-transform"></i>
                                <span class="text-white">Expenses</span>
                            </div>
                            <!-- Add other menu items as needed -->
                        </div>
                    </nav>
                </div>
            </div>
        </div>

        <!-- Main content -->
        <div class="flex-1 overflow-auto">
            <!-- Top navigation -->
            <div class="bg-white border-b border-gray-200">
                <div class="flex items-center justify-between px-4 py-3">
                    <div class="flex items-center">
                        <button class="md:hidden text-gray-600 mr-4" id="openMobileSidebar">
                            <i class="fas fa-bars"></i>
                        </button>
                        <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
                    </div>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <button class="text-gray-600 focus:outline-none">
                                <i class="fas fa-bell"></i>
                                <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
                            </button>
                        </div>
                        <div class="relative">
                            <button class="text-gray-600 focus:outline-none">
                                <i class="fas fa-envelope"></i>
                                <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-blue-500"></span>
                            </button>
                        </div>
                        <div class="relative">
                            <button class="flex items-center focus:outline-none" id="userMenuButton">
                                <span class="hidden md:inline-block mr-2 text-gray-700">Sarah Johnson</span>
                                <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="rounded-full h-8 w-8 object-cover">
                            </button>
                            <div class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50" id="userMenu">
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
                                <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Main content area -->
            <div class="p-6">
                <!-- Quick Stats -->
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
                    <div class="dashboard-card bg-white rounded-lg shadow p-6 transition-all duration-300">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-gray-500 text-sm font-medium">Total Revenue</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">$24,780<sup class="text-green-500 text-sm ml-1">+12%</sup></h3>
                            </div>
                            <div class="bg-blue-100 p-3 rounded-full">
                                <i class="fas fa-dollar-sign text-blue-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden">
                                <div class="h-full bg-blue-500 rounded-full" style="width: 70%"></div>
                            </div>
                        </div>
                    </div>

                    <div class="dashboard-card bg-white rounded-lg shadow p-6 transition-all duration-300">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-gray-500 text-sm font-medium">Outstanding Invoices</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">$8,450<sup class="text-red-500 text-sm ml-1">-5%</sup></h3>
                            </div>
                            <div class="bg-purple-100 p-3 rounded-full">
                                <i class="fas fa-file-invoice text-purple-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden">
                                <div class="h-full bg-purple-500 rounded-full" style="width: 45%"></div>
                            </div>
                        </div>
                    </div>

                    <div class="dashboard-card bg-white rounded-lg shadow p-6 transition-all duration-300">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-gray-500 text-sm font-medium">Expenses This Month</p>
                                <h3 class="text-2xl font-bold text-gray-800 mt-1">$5,230<sup class="text-green-500 text-sm ml-1">-3%</sup></h3>
                            </div>
                            <div class="bg-green-100 p-3 rounded-full">
                                <i class="fas fa-receipt text-green-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden">
                                <div class="h-full bg-green-500 rounded-full" style="width: 35%"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Main Content Grid -->
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                    <!-- Left Column -->
                    <div class="lg:col-span-2 space-y-6">
                        <!-- Cash Flow Forecast -->
                        <div class="bg-white rounded-lg shadow p-6 mb-6 animated-fade-in">
                            <div class="flex items-center justify-between mb-6">
                                <h2 class="text-lg font-semibold text-gray-800 flex items-center">
                                    <i class="fas fa-chart-bar text-blue-500 mr-2"></i>
                                    Cash Flow Forecast
                                </h2>
                                <div class="flex space-x-2">
                                    <div class="flex items-center">
                                        <div class="w-2 h-2 bg-red-500 rounded-full mr-1"></div>
                                        <span class="text-xs">Predicted Shortfall</span>
                                    </div>
                                    <div class="flex items-center">
                                        <div class="w-2 h-2 bg-green-500 rounded-full mr-1"></div>
                                        <span class="text-xs">Healthy Cash Flow</span>
                                    </div>
                                </div>
                            </div>
                            <div class="chart-container">
                                <div class="flex items-end h-64 border-b border-l border-gray-200">
                                    <div class="flex-1 flex items-end justify-around">
                                        <div class="bg-green-500 w-6 rounded-t" style="height: 40%">
                                            <div class="text-xs text-center -mb-6">$12k</div>
                                        </div>
                                        <div class="bg-green-500 w-6 rounded-t" style="height: 35%">
                                            <div class="text-xs text-center -mb-6">$10k</div>
                                        </div>
                                        <div class="bg-green-500 w-6 rounded-t" style="height: 55%">
                                            <div class="text-xs text-center -mb-6">$16k</div>
                                        </div>
                                        <div class="bg-red-500 w-6 rounded-t" style="height: 20%">
                                            <div class="text-xs text-center -mb-6">$5k</div>
                                        </div>
                                        <div class="bg-green-500 w-6 rounded-t" style="height: 45%">
                                            <div class="text-xs text-center -mb-6">$14k</div>
                                        </div>
                                    </div>
                                </div>
                                <div class="flex justify-around text-xs text-gray-500 mt-2">
                                    <span>Sep</span>
                                    <span>Oct</span>
                                    <span>Nov</span>
                                    <span>Dec</span>
                                    <span>Jan</span>
                                </div>
                            </div>
                            <div class="mt-4 p-3 bg-yellow-50 rounded-lg flex items-start">
                                <i class="fas fa-exclamation-triangle text-yellow-500 mt-1 mr-2"></i>
                                <div>
                                    <p class="text-sm font-medium">Alert: Potential cash shortfall detected in December</p>
                                    <p class="text-xs mt-1">Solution: Consider delaying non-essential purchases or accelerating invoice payments</p>
                                </div>
                            </div>
                        </div>

                        <!-- Financial Overview Chart -->
                        <div class="bg-white rounded-lg shadow p-6 animated-fade-in">
                            <div class="flex items-center justify-between mb-6">
                                <h2 class="text-lg font-semibold text-gray-800">Financial Overview</h2>
                                <select class="border border-gray-300 rounded-lg px-3 py-1 text-sm focus:outline-none">
                                    <option>Last 7 Days</option>
                                    <option>This Month</option>
                                    <option selected>Last 3 Months</option>
                                    <option>This Year</option>
                                </select>
                            </div>
                            <div class="chart-container">
                                <!-- This would be replaced with a real chart in production -->
                                <div class="flex items-end h-64 border-b border-l border-gray-200">
                                    <div class="flex-1 flex items-end justify-around">
                                        <div class="bg-blue-500 w-8 rounded-t" style="height: 60%"></div>
                                        <div class="bg-blue-500 w-8 rounded-t" style="height: 80%"></div>
                                        <div class="bg-blue-500 w-8 rounded-t" style="height: 75%"></div>
                                        <div class="bg-purple-500 w-8 rounded-t" style="height: 45%"></div>
                                        <div class="bg-purple-500 w-8 rounded-t" style="height: 55%"></div>
                                        <div class="bg-purple-500 w-8 rounded-t" style="height: 65%"></div>
                                        <div class="bg-green-500 w-8 rounded-t" style="height: 40%"></div>
                                        <div class="bg-green-500 w-8 rounded-t" style="height: 35%"></div>
                                    </div>
                                </div>
                                <div class="flex justify-around text-xs text-gray-500 mt-2">
                                    <span>Jan</span>
                                    <span>Feb</span>
                                    <span>Mar</span>
                                    <span>Apr</span>
                                    <span>May</span>
                                    <span>Jun</span>
                                    <span>Jul</span>
                                    <span>Aug</span>
                                </div>
                                <div class="flex justify-center mt-4 space-x-4">
                                    <div class="flex items-center">
                                        <div class="w-3 h-3 bg-blue-500 rounded-full mr-2"></div>
                                        <span class="text-xs">Income</span>
                                    </div>
                                    <div class="flex items-center">
                                        <div class="w-3 h-3 bg-purple-500 rounded-full mr-2"></div>
                                        <span class="text-xs">Invoices</span>
                                    </div>
                                    <div class="flex items-center">
                                        <div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div>
                                        <span class="text-xs">Expenses</span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Recent Transactions -->
                        <div class="bg-white rounded-lg shadow overflow-hidden animated-fade-in">
                            <div class="px-6 py-4 border-b border-gray-200">
                                <div class="flex items-center justify-between">
                                    <h2 class="text-lg font-semibold text-gray-800">Recent Transactions</h2>
                                    <button class="text-blue-600 text-sm font-medium">View All</button>
                                </div>
                            </div>
                            <div class="divide-y divide-gray-200">
                                <ul class="divide-y divide-gray-200" id="transactionsList">
                                    <!-- Transactions will be added here by JavaScript -->
                                </ul>
                            </div>
                        </div>
                    </div>

                    <!-- Right Column -->
                    <div class="space-y-6">
                        <!-- Quick Actions -->
                        <div class="bg-white rounded-lg shadow p-6 animated-fade-in">
                            <h2 class="text-lg font-semibold text-gray-800 mb-4">Quick Actions</h2>
                            <div class="grid grid-cols-2 gap-4">
                                <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-blue-50 hover:border-blue-200 transition-colors">
                                    <div class="bg-blue-100 p-3 rounded-full mb-2">
                                        <i class="fas fa-file-invoice text-blue-600"></i>
                                    </div>
                                    <span class="text-sm font-medium">New Invoice</span>
                                </button>
                                <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-purple-50 hover:border-purple-200 transition-colors">
                                    <div class="bg-purple-100 p-3 rounded-full mb-2">
                                        <i class="fas fa-receipt text-purple-600"></i>
                                    </div>
                                    <span class="text-sm font-medium">Record Expense</span>
                                </button>
                                <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-green-50 hover:border-green-200 transition-colors">
                                    <div class="bg-green-100 p-3 rounded-full mb-2">
                                        <i class="fas fa-users text-green-600"></i>
                                    </div>
                                    <span class="text-sm font-medium">Run Payroll</span>
                                </button>
                                <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-orange-50 hover:border-orange-200 transition-colors">
                                    <div class="bg-orange-100 p-3 rounded-full mb-2">
                                        <i class="fas fa-chart-pie text-orange-600"></i>
                                    </div>
                                    <span class="text-sm font-medium">View Reports</span>
                                </button>
                            </div>
                        </div>

                        <!-- AI Assistant -->
                        <div class="bg-white rounded-lg shadow overflow-hidden animated-fade-in">
                            <div class="px-6 py-4 border-b border-gray-200">
                                <h2 class="text-lg font-semibold text-gray-800 flex items-center">
                                    <i class="fas fa-robot text-blue-500 mr-2"></i>
                                    AI Assistant
                                </h2>
                            </div>
                            <div class="p-4">
                                <div class="bg-gray-50 rounded-lg p-4 mb-4" style="min-height: 120px;">
                                    <p class="text-sm text-gray-600 mb-2">Ask me anything, like:</p>
                                    <ul class="text-xs text-blue-600 space-y-1">
                                        <li>"Why did my expenses spike last month?"</li>
                                        <li>"How can I increase profit next quarter?"</li>
                                        <li>"Show upcoming cash flow issues"</li>
                                    </ul>
                                    <p class="text-sm mt-3 text-gray-400 italic" id="aiResponse">Waiting for your question...</p>
                                </div>
                                <div class="flex">
                                    <input type="text" placeholder="Ask a question..." class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm">
                                    <button class="bg-blue-500 text-white px-4 rounded-r-lg hover:bg-blue-600">
                                        <i class="fas fa-paper-plane"></i>
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Upcoming Tasks -->
                        <div class="bg-white rounded-lg shadow overflow-hidden animated-fade-in">
                            <div class="px-6 py-4 border-b border-gray-200">
                                <div class="flex items-center justify-between">
                                    <h2 class="text-lg font-semibold text-gray-800">Upcoming Tasks</h2>
                                    <button class="text-blue-600 text-sm font-medium">Add New</button>
                                </div>
                            </div>
                            <div class="divide-y divide-gray-200">
                                <div class="p-4 hover:bg-gray-50">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="rounded text-blue-600 mr-3">
                                        <div class="flex-1">
                                            <p class="text-sm font-medium">Follow up on unpaid invoices</p>
                                            <p class="text-xs text-gray-500 mt-1">Due tomorrow</p>
                                        </div>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </div>
                                </div>
                                <div class="p-4 hover:bg-gray-50">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="rounded text-blue-600 mr-3">
                                        <div class="flex-1">
                                            <p class="text-sm font-medium">Submit quarterly tax report</p>
                                            <p class="text-xs text-gray-500 mt-1">Due in 3 days</p>
                                        </div>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </div>
                                </div>
                                <div class="p-4 hover:bg-gray-50">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="rounded text-blue-600 mr-3">
                                        <div class="flex-1">
                                            <p class="text-sm font-medium">Reconcile bank account</p>
                                            <p class="text-xs text-gray-500 mt-1">Due in 5 days</p>
                                        </div>
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i class="fas fa-ellipsis-v"></i>
                                        </button>
                                    </div>
                                </div>
                                <div class="p-4 hover:bg-gray-50 text-sm text-blue-600 font-medium">
                                    <button class="flex items-center justify-center w-full">
                                        <i class="fas fa-plus mr-2"></i>
                                        <span>Add Task</span>
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- Invoice Status -->
                        <div class="bg-white rounded-lg shadow p-6 animated-fade-in">
                            <h2 class="text-lg font-semibold text-gray-800 mb-4">Invoice Status</h2>
                            <div class="space-y-4">
                                <div>
                                    <div class="flex justify-between text-sm mb-1">
                                        <span class="font-medium">Paid</span>
                                        <span>18 ($14.2K)</span>
                                    </div>
                                    <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden">
                                        <div class="h-full bg-green-500 rounded-full" style="width: 75%"></div>
                                    </div>
                                </div>
                                <div>
                                    <div class="flex justify-between text-sm mb-1">
                                        <span class="font-medium">Pending</span>
                                        <span>5 ($3.5K)</span>
                                    </div>
                                    <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden">
                                        <div class="h-full bg-yellow-500 rounded-full" style="width: 20%"></div>
                                    </div>
                                </div>
                                <div>
                                    <div class="flex justify-between text-sm mb-1">
                                        <span class="font-medium">Overdue</span>
                                        <span>3 ($1.2K)</span>
                                    </div>
                                    <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden">
                                        <div class="h-full bg-red-500 rounded-full" style="width: 12%"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Mobile sidebar toggle
        document.getElementById('openMobileSidebar').addEventListener('click', function() {
            document.getElementById('mobileSidebar').style.display = 'block';
        });

        document.getElementById('closeMobileSidebar').addEventListener('click', function() {
            document.getElementById('mobileSidebar').style.display = 'none';
        });

        document.getElementById('mobileSidebarBackdrop').addEventListener('click', function() {
            document.getElementById('mobileSidebar').style.display = 'none';
        });

        // User menu toggle
        document.getElementById('userMenuButton').addEventListener('click', function() {
            const menu = document.getElementById('userMenu');
            menu.classList.toggle('hidden');
        });

        // Close user menu when clicking outside
        document.addEventListener('click', function(event) {
            const userMenuButton = document.getElementById('userMenuButton');
            const userMenu = document.getElementById('userMenu');
            if (!userMenuButton.contains(event.target) && !userMenu.contains(event.target)) {
                userMenu.classList.add('hidden');
            }
        });

        // Sample transactions data
        const transactions = [
            {
                id: 1,
                name: "Web Design Project",
                date: "2023-08-15",
                amount: 1200,
                type: "income",
                status: "completed"
            },
            {
                id: 2,
                name: "Office Supplies",
                date: "2023-08-14",
                amount: 256.50,
                type: "expense",
                status: "completed"
            },
            {
                id: 3,
                name: "Monthly Retainer (Client X)",
                date: "2023-08-10",
                amount: 3000,
                type: "income",
                status: "completed"
            },
            {
                id: 4,
                name: "Cloud Hosting",
                date: "2023-08-05",
                amount: 89.99,
                type: "expense",
                status: "pending"
            },
            {
                id: 5,
                name: "Consulting Session",
                date: "2023-08-01",
                amount: 450,
                type: "income",
                status: "completed"
            }
        ];

        // Render transactions
        const transactionsList = document.getElementById('transactionsList');
        
        transactions.forEach(transaction => {
            const listItem = document.createElement('li');
            listItem.className = 'p-4 hover:bg-gray-50 transition-colors';
            
            const isIncome = transaction.type === 'income';
            const statusClass = transaction.status === 'completed' ? 'bg-green-100 text-green-800' : 'bg-yellow-100 text-yellow-800';
            
            listItem.innerHTML = `
                <div class="flex items-center justify-between">
                    <div class="flex items-center">
                        <div class="p-2 rounded-full mr-3 ${isIncome ? 'bg-blue-100 text-blue-600' : 'bg-purple-100 text-purple-600'}">
                            <i class="fas ${isIncome ? 'fa-arrow-down' : 'fa-arrow-up'}"></i>
                        </div>
                        <div>
                            <p class="text-sm font-medium text-gray-800">${transaction.name}</p>
                            <p class="text-xs text-gray-500 mt-1">${new Date(transaction.date).toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}</p>
                        </div>
                    </div>
                    <div class="text-right">
                        <p class="text-sm font-medium ${isIncome ? 'text-blue-600' : 'text-purple-600'}">${isIncome ? '+' : '-'}$${transaction.amount.toFixed(2)}</p>
                        <span class="inline-block px-2 py-1 text-xs rounded-full ${statusClass} mt-1">${transaction.status}</span>
                    </div>
                </div>
            `;
            
            transactionsList.appendChild(listItem);
        });

        // AI Assistant
        document.querySelector('#aiAssistant button').addEventListener('click', function() {
            const question = document.querySelector('#aiAssistant input').value;
            const responseEl = document.getElementById('aiResponse');
            
            responseEl.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Analyzing...';
            
            // Simulate AI response after delay
            setTimeout(() => {
                if (question.toLowerCase().includes('expens') && question.toLowerCase().includes('spike')) {
                    responseEl.innerHTML = 'Your office supplies expense was 40% higher than usual last month due to a bulk order of equipment. I suggest spacing out these purchases next time to smooth cash flow.';
                } else if (question.toLowerCase().includes('profit') || question.toLowerCase().includes('increase')) {
                    responseEl.innerHTML = 'To increase profits next quarter: 1) Renegotiate web hosting contract (could save $120/mo) 2) Follow up on 3 late invoices totaling $2,400 3) Reduce color printing by 30% (could save ~$75/mo)';
                } else {
                    responseEl.innerHTML = 'Based on your current cash flow trends and upcoming invoices, your account is projected to maintain a healthy balance. No immediate actions needed.';
                }
            }, 1500);
        });

        // Animation on page load
        document.addEventListener('DOMContentLoaded', function() {
            const animatedElements = document.querySelectorAll('.animated-fade-in');
            animatedElements.forEach((el, index) => {
                setTimeout(() => {
                    el.style.opacity = 1;
                }, index * 100);
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=toppshutter/testxone" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>