File size: 27,147 Bytes
970044a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AffableBPM | Grant Management System</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>
        :root {
            --primary-color: #2c97a7;
            --primary-dark: #0A829D;
            --primary-light: #afeeee;
        }
        
        body {
            font-family: 'Aptos', 'Calibri', sans-serif;
            background-color: #f8fafc;
        }
        
        .jazz-font {
            font-family: 'Aptos', 'Calibri', sans-serif;
            font-weight: bold;
        }
        
        .sidebar {
            transition: all 0.3s ease;
        }
        
        .workflow-step {
            position: relative;
        }
        
        .workflow-step:not(:last-child):after {
            content: '';
            position: absolute;
            top: 24px;
            left: 50%;
            height: 40px;
            width: 2px;
            background-color: var(--primary-color);
        }
        
        .grant-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(64, 224, 208, 0.2);
        }
        
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.active {
                transform: translateX(0);
            }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Mobile Menu Button -->
    <div class="md:hidden fixed top-4 left-4 z-50">
        <button id="mobileMenuBtn" class="p-2 rounded-lg bg-[#0A829D] text-white">
            <i class="fas fa-bars"></i>
        </button>
    </div>

    <!-- Sidebar -->
    <div class="sidebar fixed h-screen w-64 bg-white shadow-lg z-40">
        <div class="p-4 bg-[#0A829D] flex items-center">
            <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center mr-3">
                <i class="fas fa-gem text-[#0A829D] text-xl"></i>
            </div>
            <h1 class="text-white text-xl font-bold jazz-font">AffableBPM</h1>
        </div>
        
        <div class="p-4">
            <div class="flex items-center mb-6">
                <div class="w-12 h-12 rounded-full bg-[#E0F7FA] flex items-center justify-center mr-3">
                    <i class="fas fa-user text-[#0A829D]"></i>
                </div>
                <div>
                    <p class="font-semibold">Admin User</p>
                    <p class="text-xs text-gray-500">Administrator</p>
                </div>
            </div>
            
            <nav>
                <ul class="space-y-2">
                    <li>
                        <a href="#" class="flex items-center p-3 rounded-lg bg-[#E0F7FA] text-[#0A829D]">
                            <i class="fas fa-tachometer-alt mr-3"></i>
                            <span>Dashboard</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600">
                            <i class="fas fa-project-diagram mr-3"></i>
                            <span>Workflows</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600">
                            <i class="fas fa-hand-holding-usd mr-3"></i>
                            <span>Grants</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600">
                            <i class="fas fa-users mr-3"></i>
                            <span>Applicants</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600">
                            <i class="fas fa-file-invoice-dollar mr-3"></i>
                            <span>Reports</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600">
                            <i class="fas fa-cog mr-3"></i>
                            <span>Settings</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        
        <div class="absolute bottom-0 w-full p-4 border-t">
            <a href="#" class="flex items-center p-3 rounded-lg hover:bg-teal-50 hover:text-teal-600">
                <i class="fas fa-sign-out-alt mr-3"></i>
                <span>Logout</span>
            </a>
        </div>
    </div>

    <!-- Main Content -->
    <div class="ml-0 md:ml-64 transition-all duration-300">
        <!-- Header -->
        <header class="bg-white shadow-sm p-4 flex justify-between items-center">
            <h2 class="text-2xl font-bold text-gray-800 jazz-font">Grant Management Dashboard</h2>
            <div class="flex items-center space-x-4">
                <div class="relative">
                    <button class="p-2 rounded-full hover:bg-teal-50">
                        <i class="fas fa-bell text-gray-600"></i>
                        <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
                    </button>
                </div>
                <div class="relative">
                    <button class="p-2 rounded-full hover:bg-teal-50">
                        <i class="fas fa-envelope text-gray-600"></i>
                        <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
                    </button>
                </div>
                <div class="w-8 h-8 rounded-full bg-[#0A829D] flex items-center justify-center text-white">
                    <i class="fas fa-user"></i>
                </div>
            </div>
        </header>

        <!-- Dashboard Content -->
        <main class="p-6">
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-[#0A829D]">
                    <div class="flex justify-between">
                        <div>
                            <p class="text-gray-500">Total Grants</p>
                            <h3 class="text-3xl font-bold text-gray-800">142</h3>
                        </div>
                        <div class="w-12 h-12 rounded-full bg-[#E0F7FA] flex items-center justify-center">
                            <i class="fas fa-hand-holding-usd text-[#0A829D]"></i>
                        </div>
                    </div>
                    <p class="text-sm text-[#0A829D] mt-2"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-blue-500">
                    <div class="flex justify-between">
                        <div>
                            <p class="text-gray-500">Active Applications</p>
                            <h3 class="text-3xl font-bold text-gray-800">87</h3>
                        </div>
                        <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center">
                            <i class="fas fa-file-alt text-blue-500"></i>
                        </div>
                    </div>
                    <p class="text-sm text-blue-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 8% from last month</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-purple-500">
                    <div class="flex justify-between">
                        <div>
                            <p class="text-gray-500">Approved Grants</p>
                            <h3 class="text-3xl font-bold text-gray-800">64</h3>
                        </div>
                        <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center">
                            <i class="fas fa-check-circle text-purple-500"></i>
                        </div>
                    </div>
                    <p class="text-sm text-purple-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 15% from last month</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 border-l-4 border-amber-500">
                    <div class="flex justify-between">
                        <div>
                            <p class="text-gray-500">Pending Review</p>
                            <h3 class="text-3xl font-bold text-gray-800">23</h3>
                        </div>
                        <div class="w-12 h-12 rounded-full bg-amber-100 flex items-center justify-center">
                            <i class="fas fa-clock text-amber-500"></i>
                        </div>
                    </div>
                    <p class="text-sm text-amber-500 mt-2"><i class="fas fa-arrow-down mr-1"></i> 5% from last month</p>
                </div>
            </div>

            <!-- Recent Grants and Workflow -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
                <!-- Recent Grants -->
                <div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold text-gray-800 jazz-font">Recent Grant Applications</h3>
                        <button class="text-[#0A829D] hover:text-[#2c97a7]">View All</button>
                    </div>
                    
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead>
                                <tr>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Applicant</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr class="hover:bg-teal-50">
                                    <td class="px-4 py-3 whitespace-nowrap">#GR-2023-001</td>
                                    <td class="px-4 py-3 whitespace-nowrap">Green Energy Solutions</td>
                                    <td class="px-4 py-3 whitespace-nowrap">$25,000</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-[#E0F7FA] text-[#0A829D]">Approved</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">2023-06-15</td>
                                </tr>
                                <tr class="hover:bg-teal-50">
                                    <td class="px-4 py-3 whitespace-nowrap">#GR-2023-002</td>
                                    <td class="px-4 py-3 whitespace-nowrap">Community Health Initiative</td>
                                    <td class="px-4 py-3 whitespace-nowrap">$50,000</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">In Review</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">2023-06-18</td>
                                </tr>
                                <tr class="hover:bg-teal-50">
                                    <td class="px-4 py-3 whitespace-nowrap">#GR-2023-003</td>
                                    <td class="px-4 py-3 whitespace-nowrap">Education for All</td>
                                    <td class="px-4 py-3 whitespace-nowrap">$15,000</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800">Pending</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">2023-06-20</td>
                                </tr>
                                <tr class="hover:bg-teal-50">
                                    <td class="px-4 py-3 whitespace-nowrap">#GR-2023-004</td>
                                    <td class="px-4 py-3 whitespace-nowrap">Tech Startups Inc.</td>
                                    <td class="px-4 py-3 whitespace-nowrap">$75,000</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Funded</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">2023-06-22</td>
                                </tr>
                                <tr class="hover:bg-teal-50">
                                    <td class="px-4 py-3 whitespace-nowrap">#GR-2023-005</td>
                                    <td class="px-4 py-3 whitespace-nowrap">Urban Farming Collective</td>
                                    <td class="px-4 py-3 whitespace-nowrap">$30,000</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Rejected</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">2023-06-25</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                
                <!-- Workflow Status -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold text-gray-800 jazz-font">Grant Approval Workflow</h3>
                        <button class="text-teal-500 hover:text-teal-700">Configure</button>
                    </div>
                    
                    <div class="space-y-8">
                        <div class="workflow-step">
                            <div class="flex flex-col items-center">
                                <div class="w-12 h-12 rounded-full bg-[#0A829D] flex items-center justify-center text-white mb-2">
                                    <i class="fas fa-file-alt"></i>
                                </div>
                                <p class="font-semibold">Application</p>
                                <p class="text-sm text-gray-500">Submitted</p>
                            </div>
                        </div>
                        
                        <div class="workflow-step">
                            <div class="flex flex-col items-center">
                                <div class="w-12 h-12 rounded-full bg-blue-500 flex items-center justify-center text-white mb-2">
                                    <i class="fas fa-search"></i>
                                </div>
                                <p class="font-semibold">Review</p>
                                <p class="text-sm text-gray-500">In Progress</p>
                            </div>
                        </div>
                        
                        <div class="workflow-step">
                            <div class="flex flex-col items-center">
                                <div class="w-12 h-12 rounded-full bg-gray-300 flex items-center justify-center text-white mb-2">
                                    <i class="fas fa-check-double"></i>
                                </div>
                                <p class="font-semibold">Approval</p>
                                <p class="text-sm text-gray-500">Pending</p>
                            </div>
                        </div>
                        
                        <div class="workflow-step">
                            <div class="flex flex-col items-center">
                                <div class="w-12 h-12 rounded-full bg-gray-300 flex items-center justify-center text-white mb-2">
                                    <i class="fas fa-money-bill-wave"></i>
                                </div>
                                <p class="font-semibold">Funding</p>
                                <p class="text-sm text-gray-500">Not Started</p>
                            </div>
                        </div>
                        
                        <div class="workflow-step">
                            <div class="flex flex-col items-center">
                                <div class="w-12 h-12 rounded-full bg-gray-300 flex items-center justify-center text-white mb-2">
                                    <i class="fas fa-chart-line"></i>
                                </div>
                                <p class="font-semibold">Monitoring</p>
                                <p class="text-sm text-gray-500">Not Started</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Grant Programs -->
            <div class="mb-8">
                <div class="flex justify-between items-center mb-6">
                    <h3 class="text-xl font-bold text-gray-800 jazz-font">Active Grant Programs</h3>
                    <button class="text-teal-500 hover:text-teal-700">Create New</button>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="grant-card bg-white rounded-xl shadow-md p-6 border-t-4 border-[#0A829D] transition duration-300">
                        <div class="flex justify-between items-start mb-4">
                            <div>
                                <h4 class="font-bold text-lg">Community Development</h4>
                                <p class="text-sm text-gray-500">Deadline: 2023-08-15</p>
                            </div>
                            <span class="px-2 py-1 text-xs rounded-full bg-teal-100 text-teal-800">Open</span>
                        </div>
                        <p class="text-gray-600 mb-4">Funding for projects that enhance community infrastructure and services.</p>
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-sm text-gray-500">Total Funding</p>
                                <p class="font-bold">$500,000</p>
                            </div>
                            <button class="px-4 py-2 bg-[#0A829D] text-white rounded-lg hover:bg-[#2c97a7]">View Details</button>
                        </div>
                    </div>
                    
                    <div class="grant-card bg-white rounded-xl shadow-md p-6 border-t-4 border-blue-500 transition duration-300">
                        <div class="flex justify-between items-start mb-4">
                            <div>
                                <h4 class="font-bold text-lg">STEM Education</h4>
                                <p class="text-sm text-gray-500">Deadline: 2023-09-01</p>
                            </div>
                            <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Open</span>
                        </div>
                        <p class="text-gray-600 mb-4">Grants for schools and organizations promoting STEM education.</p>
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-sm text-gray-500">Total Funding</p>
                                <p class="font-bold">$350,000</p>
                            </div>
                            <button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600">View Details</button>
                        </div>
                    </div>
                    
                    <div class="grant-card bg-white rounded-xl shadow-md p-6 border-t-4 border-purple-500 transition duration-300">
                        <div class="flex justify-between items-start mb-4">
                            <div>
                                <h4 class="font-bold text-lg">Green Innovation</h4>
                                <p class="text-sm text-gray-500">Deadline: 2023-07-30</p>
                            </div>
                            <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Closing Soon</span>
                        </div>
                        <p class="text-gray-600 mb-4">Support for innovative projects addressing environmental challenges.</p>
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-sm text-gray-500">Total Funding</p>
                                <p class="font-bold">$750,000</p>
                            </div>
                            <button class="px-4 py-2 bg-purple-500 text-white rounded-lg hover:bg-purple-600">View Details</button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Charts -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                <!-- Applications by Month -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold text-gray-800 jazz-font">Applications by Month</h3>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-xs bg-[#0A829D] text-white rounded">2023</button>
                            <button class="px-3 py-1 text-xs bg-gray-200 text-gray-700 rounded">2022</button>
                        </div>
                    </div>
                    <div class="h-64">
                        <canvas id="applicationsChart"></canvas>
                    </div>
                </div>
                
                <!-- Grants by Category -->
                <div class="bg-white rounded-xl shadow-md p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold text-gray-800 jazz-font">Grants by Category</h3>
                        <button class="text-teal-500 hover:text-teal-700">View All</button>
                    </div>
                    <div class="h-64">
                        <canvas id="categoriesChart"></canvas>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- Scripts -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        // Mobile menu toggle
        document.getElementById('mobileMenuBtn').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('active');
        });

        // Applications by Month Chart
        const applicationsCtx = document.getElementById('applicationsChart').getContext('2d');
        const applicationsChart = new Chart(applicationsCtx, {
            type: 'bar',
            data: {
                labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
                datasets: [{
                    label: 'Applications',
                    data: [12, 19, 15, 21, 18, 25, 22, 30, 28, 24, 20, 17],
                    backgroundColor: '#2c97a7',
                    borderColor: '#0A829D',
                    borderWidth: 1
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                scales: {
                    y: {
                        beginAtZero: true
                    }
                },
                plugins: {
                    legend: {
                        display: false
                    }
                }
            }
        });

        // Grants by Category Chart
        const categoriesCtx = document.getElementById('categoriesChart').getContext('2d');
        const categoriesChart = new Chart(categoriesCtx, {
            type: 'doughnut',
            data: {
                labels: ['Education', 'Health', 'Environment', 'Community', 'Arts', 'Technology'],
                datasets: [{
                    data: [25, 20, 15, 18, 12, 10],
                    backgroundColor: [
                        '#2c97a7',
                        '#4682b4',
                        '#9370db',
                        '#ff7f50',
                        '#ff69b4',
                        '#0A829D'
                    ],
                    borderWidth: 1
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'right',
                    }
                }
            }
        });
    </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=SamABFlow/compliance-3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>