File size: 32,330 Bytes
0486e40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AffableBPM - Healthcare Compliance Portal</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .sidebar {
            transition: all 0.3s ease;
        }
        .graph-container {
            height: 500px;
            background: #f8fafc;
            border-radius: 0.5rem;
        }
        .process-step {
            position: relative;
        }
        .process-step:not(:last-child):after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            height: 20px;
            width: 2px;
            background: #3b82f6;
            transform: translateX(-50%);
        }
        .compliance-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        #network-graph {
            width: 100%;
            height: 100%;
            min-height: 400px;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <!-- Header -->
    <header class="bg-white shadow-sm">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fas fa-shield-alt text-blue-600 text-2xl"></i>
                <h1 class="text-xl font-bold text-gray-800">Affable<span class="text-blue-600">BPM</span></h1>
            </div>
            <div class="flex items-center space-x-4">
                <div class="relative">
                    <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
                    <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                </div>
                <div class="flex items-center space-x-2">
                    <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-8 h-8 rounded-full">
                    <span class="text-sm font-medium">Dr. Sarah Johnson</span>
                </div>
            </div>
        </div>
    </header>

    <div class="flex">
        <!-- Sidebar -->
        <aside class="sidebar bg-white w-64 min-h-screen shadow-md fixed hidden md:block">
            <div class="p-4">
                <div class="flex items-center space-x-2 mb-8">
                    <i class="fas fa-hospital text-blue-600 text-xl"></i>
                    <h2 class="text-lg font-semibold">General Hospital</h2>
                </div>
                <nav>
                    <ul class="space-y-2">
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-blue-50 text-blue-600">
                                <i class="fas fa-tachometer-alt w-5"></i>
                                <span>Dashboard</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-clipboard-check w-5"></i>
                                <span>Compliance Setup</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-file-contract w-5"></i>
                                <span>Document Preparation</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-gavel w-5"></i>
                                <span>Legal Review</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-paper-plane w-5"></i>
                                <span>Submission Tracking</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-exclamation-triangle w-5"></i>
                                <span>Incident Management</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-chart-network w-5"></i>
                                <span>Process Mapping</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-graduation-cap w-5"></i>
                                <span>Training Management</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
                                <i class="fas fa-cog w-5"></i>
                                <span>Settings</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </aside>

        <!-- Mobile Sidebar Toggle -->
        <button id="sidebarToggle" class="md:hidden fixed bottom-4 right-4 bg-blue-600 text-white p-3 rounded-full shadow-lg z-50">
            <i class="fas fa-bars"></i>
        </button>

        <!-- Main Content -->
        <main class="flex-1 md:ml-64">
            <div class="container mx-auto px-4 py-6">
                <!-- Welcome Banner -->
                <div class="bg-gradient-to-r from-blue-500 to-blue-700 rounded-xl p-6 text-white mb-6">
                    <div class="flex flex-col md:flex-row justify-between items-start md:items-center">
                        <div>
                            <h2 class="text-2xl font-bold mb-2">Welcome back, Dr. Johnson</h2>
                            <p class="opacity-90">Manage your healthcare compliance processes efficiently with AffableBPM</p>
                        </div>
                        <button class="mt-4 md:mt-0 bg-white text-blue-600 px-4 py-2 rounded-lg font-medium hover:bg-blue-50 transition">Quick Setup Guide</button>
                    </div>
                </div>

                <!-- Compliance Status Cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                    <div class="compliance-card bg-white rounded-xl shadow-sm p-6 transition duration-300">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">Active Compliance</p>
                                <h3 class="text-2xl font-bold mt-1">12</h3>
                            </div>
                            <div class="bg-green-100 p-3 rounded-full">
                                <i class="fas fa-check-circle text-green-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4 pt-4 border-t border-gray-100">
                            <a href="#" class="text-blue-600 text-sm font-medium flex items-center">
                                View details <i class="fas fa-chevron-right ml-1 text-xs"></i>
                            </a>
                        </div>
                    </div>
                    <div class="compliance-card bg-white rounded-xl shadow-sm p-6 transition duration-300">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">Pending Review</p>
                                <h3 class="text-2xl font-bold mt-1">3</h3>
                            </div>
                            <div class="bg-yellow-100 p-3 rounded-full">
                                <i class="fas fa-exclamation-circle text-yellow-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4 pt-4 border-t border-gray-100">
                            <a href="#" class="text-blue-600 text-sm font-medium flex items-center">
                                Take action <i class="fas fa-chevron-right ml-1 text-xs"></i>
                            </a>
                        </div>
                    </div>
                    <div class="compliance-card bg-white rounded-xl shadow-sm p-6 transition duration-300">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">Upcoming Renewals</p>
                                <h3 class="text-2xl font-bold mt-1">5</h3>
                            </div>
                            <div class="bg-blue-100 p-3 rounded-full">
                                <i class="fas fa-clock text-blue-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4 pt-4 border-t border-gray-100">
                            <a href="#" class="text-blue-600 text-sm font-medium flex items-center">
                                Renew now <i class="fas fa-chevron-right ml-1 text-xs"></i>
                            </a>
                        </div>
                    </div>
                    <div class="compliance-card bg-white rounded-xl shadow-sm p-6 transition duration-300">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">Risk Incidents</p>
                                <h3 class="text-2xl font-bold mt-1">2</h3>
                            </div>
                            <div class="bg-red-100 p-3 rounded-full">
                                <i class="fas fa-times-circle text-red-600 text-xl"></i>
                            </div>
                        </div>
                        <div class="mt-4 pt-4 border-t border-gray-100">
                            <a href="#" class="text-blue-600 text-sm font-medium flex items-center">
                                Resolve now <i class="fas fa-chevron-right ml-1 text-xs"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <!-- Compliance Process Flow -->
                <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="text-xl font-bold text-gray-800">Compliance Process Flow</h2>
                        <button class="text-blue-600 text-sm font-medium">View full process</button>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-5 gap-4 text-center">
                        <!-- Step 1 -->
                        <div class="process-step">
                            <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                                <i class="fas fa-clipboard-list text-blue-600 text-2xl"></i>
                            </div>
                            <h3 class="font-medium mb-1">Setup</h3>
                            <p class="text-gray-500 text-sm">Define requirements</p>
                        </div>
                        
                        <!-- Step 2 -->
                        <div class="process-step">
                            <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                                <i class="fas fa-file-alt text-blue-600 text-2xl"></i>
                            </div>
                            <h3 class="font-medium mb-1">Document</h3>
                            <p class="text-gray-500 text-sm">Prepare materials</p>
                        </div>
                        
                        <!-- Step 3 -->
                        <div class="process-step">
                            <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                                <i class="fas fa-balance-scale text-blue-600 text-2xl"></i>
                            </div>
                            <h3 class="font-medium mb-1">Legal Review</h3>
                            <p class="text-gray-500 text-sm">Validate compliance</p>
                        </div>
                        
                        <!-- Step 4 -->
                        <div class="process-step">
                            <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                                <i class="fas fa-check-double text-blue-600 text-2xl"></i>
                            </div>
                            <h3 class="font-medium mb-1">Submission</h3>
                            <p class="text-gray-500 text-sm">Send for approval</p>
                        </div>
                        
                        <!-- Step 5 -->
                        <div class="process-step">
                            <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                                <i class="fas fa-chart-line text-blue-600 text-2xl"></i>
                            </div>
                            <h3 class="font-medium mb-1">Monitoring</h3>
                            <p class="text-gray-500 text-sm">Ongoing compliance</p>
                        </div>
                    </div>
                </div>

                <!-- Graph Visualization Section -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                    <!-- Compliance Network Graph -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-xl font-bold text-gray-800">Compliance Relationships</h2>
                            <div class="flex space-x-2">
                                <button class="p-2 rounded-full hover:bg-gray-100">
                                    <i class="fas fa-expand text-gray-500"></i>
                                </button>
                                <button class="p-2 rounded-full hover:bg-gray-100">
                                    <i class="fas fa-download text-gray-500"></i>
                                </button>
                            </div>
                        </div>
                        <div class="graph-container">
                            <div id="network-graph"></div>
                        </div>
                    </div>
                    
                    <!-- Risk Heatmap -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-xl font-bold text-gray-800">Compliance Risk Heatmap</h2>
                            <select class="border border-gray-300 rounded-lg px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
                                <option>This Year</option>
                                <option>Last Year</option>
                                <option>Last 3 Years</option>
                            </select>
                        </div>
                        <div class="graph-container">
                            <div id="heatmap"></div>
                        </div>
                    </div>
                </div>

                <!-- Recent Activities and Training Needs -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                    <!-- Recent Activities -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-xl font-bold text-gray-800">Recent Compliance Activities</h2>
                            <button class="text-blue-600 text-sm font-medium">View all</button>
                        </div>
                        <div class="space-y-4">
                            <div class="flex items-start">
                                <div class="bg-green-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-check-circle text-green-600"></i>
                                </div>
                                <div>
                                    <p class="font-medium">HIPAA Compliance submitted</p>
                                    <p class="text-gray-500 text-sm">2 days ago by Legal Team</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-yellow-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-exclamation-triangle text-yellow-600"></i>
                                </div>
                                <div>
                                    <p class="font-medium">CMS audit findings received</p>
                                    <p class="text-gray-500 text-sm">5 days ago by Compliance Officer</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-blue-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-file-signature text-blue-600"></i>
                                </div>
                                <div>
                                    <p class="font-medium">New state licensing documents prepared</p>
                                    <p class="text-gray-500 text-sm">1 week ago by Admin Team</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="bg-red-100 p-2 rounded-full mr-3">
                                    <i class="fas fa-times-circle text-red-600"></i>
                                </div>
                                <div>
                                    <p class="font-medium">Privacy incident reported</p>
                                    <p class="text-gray-500 text-sm">2 weeks ago by Nursing Staff</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Training Needs -->
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-xl font-bold text-gray-800">Upcoming Training Needs</h2>
                            <button class="text-blue-600 text-sm font-medium">Schedule all</button>
                        </div>
                        <div class="space-y-4">
                            <div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
                                <div>
                                    <p class="font-medium">HIPAA Privacy Training</p>
                                    <p class="text-gray-500 text-sm">Due in 15 days for 12 staff</p>
                                </div>
                                <button class="bg-blue-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-blue-700">Schedule</button>
                            </div>
                            <div class="flex justify-between items-center p-3 bg-purple-50 rounded-lg">
                                <div>
                                    <p class="font-medium">OSHA Safety Training</p>
                                    <p class="text-gray-500 text-sm">Due in 30 days for 8 staff</p>
                                </div>
                                <button class="bg-purple-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-purple-700">Schedule</button>
                            </div>
                            <div class="flex justify-between items-center p-3 bg-green-50 rounded-lg">
                                <div>
                                    <p class="font-medium">Medicare Fraud Prevention</p>
                                    <p class="text-gray-500 text-sm">Due in 45 days for all billing staff</p>
                                </div>
                                <button class="bg-green-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-green-700">Schedule</button>
                            </div>
                            <div class="flex justify-between items-center p-3 bg-yellow-50 rounded-lg">
                                <div>
                                    <p class="font-medium">Emergency Preparedness</p>
                                    <p class="text-gray-500 text-sm">Due in 60 days for all clinical staff</p>
                                </div>
                                <button class="bg-yellow-600 text-white px-3 py-1 rounded-lg text-sm hover:bg-yellow-700">Schedule</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- Mobile Sidebar -->
    <div id="mobileSidebar" class="fixed inset-0 bg-gray-900 bg-opacity-50 z-50 hidden">
        <div class="bg-white w-64 h-full shadow-lg transform transition-transform duration-300 ease-in-out -translate-x-full">
            <div class="p-4 flex justify-between items-center border-b">
                <div class="flex items-center space-x-2">
                    <i class="fas fa-shield-alt text-blue-600"></i>
                    <h2 class="font-bold">AffableBPM</h2>
                </div>
                <button id="closeMobileSidebar" class="text-gray-500">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            <nav class="p-4">
                <ul class="space-y-2">
                    <li><a href="#" class="block p-2 rounded-lg bg-blue-50 text-blue-600"><i class="fas fa-tachometer-alt mr-3"></i> Dashboard</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-clipboard-check mr-3"></i> Compliance Setup</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-file-contract mr-3"></i> Document Prep</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-gavel mr-3"></i> Legal Review</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-paper-plane mr-3"></i> Submission</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-exclamation-triangle mr-3"></i> Incidents</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-chart-network mr-3"></i> Process Map</a></li>
                    <li><a href="#" class="block p-2 rounded-lg hover:bg-gray-100"><i class="fas fa-graduation-cap mr-3"></i> Training</a></li>
                </ul>
            </nav>
        </div>
    </div>

    <script>
        // Mobile sidebar toggle
        const sidebarToggle = document.getElementById('sidebarToggle');
        const mobileSidebar = document.getElementById('mobileSidebar');
        const closeMobileSidebar = document.getElementById('closeMobileSidebar');

        sidebarToggle.addEventListener('click', () => {
            mobileSidebar.classList.remove('hidden');
            setTimeout(() => {
                mobileSidebar.querySelector('div').classList.remove('-translate-x-full');
            }, 10);
        });

        closeMobileSidebar.addEventListener('click', () => {
            mobileSidebar.querySelector('div').classList.add('-translate-x-full');
            setTimeout(() => {
                mobileSidebar.classList.add('hidden');
            }, 300);
        });

        // Initialize network graph
        document.addEventListener('DOMContentLoaded', function() {
            // Sample network graph data
            const nodes = [
                { id: 1, label: "HIPAA", group: "regulation", value: 25 },
                { id: 2, label: "CMS", group: "regulation", value: 20 },
                { id: 3, label: "OSHA", group: "regulation", value: 15 },
                { id: 4, label: "Billing", group: "process", value: 10 },
                { id: 5, label: "Patient Records", group: "process", value: 10 },
                { id: 6, label: "Staff Training", group: "process", value: 10 },
                { id: 7, label: "Incident Reports", group: "process", value: 10 }
            ];

            const edges = [
                { from: 1, to: 4, value: 5 },
                { from: 1, to: 5, value: 8 },
                { from: 1, to: 6, value: 7 },
                { from: 2, to: 4, value: 6 },
                { from: 2, to: 7, value: 4 },
                { from: 3, to: 5, value: 3 },
                { from: 3, to: 6, value: 9 },
                { from: 4, to: 5, value: 2 },
                { from: 6, to: 7, value: 3 }
            ];

            // Create network graph
            const networkContainer = document.getElementById('network-graph');
            const data = {
                nodes: nodes,
                edges: edges
            };
            const options = {
                nodes: {
                    shape: 'dot',
                    size: 20,
                    font: {
                        size: 12,
                        color: '#333'
                    },
                    borderWidth: 2
                },
                edges: {
                    width: 2,
                    color: {
                        color: '#a0aec0',
                        highlight: '#3b82f6'
                    },
                    smooth: {
                        type: 'continuous'
                    }
                },
                groups: {
                    regulation: {
                        color: { background: '#3b82f6', border: '#2563eb' },
                        font: { color: 'white' }
                    },
                    process: {
                        color: { background: '#10b981', border: '#059669' },
                        font: { color: 'white' }
                    }
                },
                physics: {
                    barnesHut: {
                        gravitationalConstant: -2000,
                        centralGravity: 0.3,
                        springLength: 200,
                        springConstant: 0.04,
                        damping: 0.09
                    }
                },
                interaction: {
                    hover: true,
                    tooltipDelay: 200
                }
            };

            // In a real implementation, you would use a library like vis.js
            // For this example, we'll simulate it with a placeholder
            networkContainer.innerHTML = `
                <div class="flex items-center justify-center h-full">
                    <div class="text-center">
                        <i class="fas fa-project-diagram text-5xl text-gray-300 mb-4"></i>
                        <p class="text-gray-500">Interactive compliance relationship visualization</p>
                        <p class="text-sm text-gray-400 mt-2">(In production: Shows connections between regulations, processes, and risks)</p>
                    </div>
                </div>
            `;

            // Heatmap chart
            const heatmapOptions = {
                series: [{
                    name: 'HIPAA',
                    data: generateHeatmapData(12, 5, 0, 10)
                }, {
                    name: 'CMS',
                    data: generateHeatmapData(12, 5, 0, 8)
                }, {
                    name: 'OSHA',
                    data: generateHeatmapData(12, 5, 0, 6)
                }, {
                    name: 'State',
                    data: generateHeatmapData(12, 5, 0, 4)
                }, {
                    name: 'Joint',
                    data: generateHeatmapData(12, 5, 0, 2)
                }],
                chart: {
                    height: '100%',
                    type: 'heatmap',
                    toolbar: {
                        show: false
                    }
                },
                dataLabels: {
                    enabled: false
                },
                colors: ["#008FFB"],
                xaxis: {
                    type: 'category',
                    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
                },
                yaxis: {
                    categories: ['Billing', 'Records', 'Training', 'Safety', 'Privacy'],
                    title: {
                        text: 'Process Area'
                    }
                },
                title: {
                    text: 'Compliance Risk Heatmap',
                    align: 'center',
                    style: {
                        fontSize: '14px'
                    }
                },
                tooltip: {
                    enabled: true,
                    custom: function({ series, seriesIndex, dataPointIndex, w }) {
                        return `<div class="p-2 bg-white shadow-lg rounded-lg">
                            <p class="font-bold">${w.globals.labels[seriesIndex]}</p>
                            <p>${w.globals.categoryLabels[dataPointIndex]}: Risk Level ${series[seriesIndex][dataPointIndex]}</p>
                        </div>`;
                    }
                }
            };

            const heatmap = new ApexCharts(document.querySelector("#heatmap"), heatmapOptions);
            heatmap.render();

            function generateHeatmapData(count, y, min, max) {
                let series = [];
                for (let i = 0; i < count; i++) {
                    series.push({
                        x: 'w' + (i + 1),
                        y: Math.floor(Math.random() * (max - min + 1)) + min
                    });
                }
                return series;
            }
        });
    </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/affablebpm-compliance-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>