File size: 29,275 Bytes
36952e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ce576e
36952e0
 
7ce576e
36952e0
 
 
 
7ce576e
36952e0
 
 
 
 
 
 
 
 
 
a7fe11b
36952e0
 
 
 
a7fe11b
36952e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e38db94
 
 
 
 
 
 
 
 
 
 
 
 
36952e0
 
 
 
e38db94
36952e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Earned Value Module | PipeFlow Pro</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
    <style>
        .sidebar {
            transition: all 0.3s ease;
        }
        .kpi-card {
            transition: all 0.3s ease;
        }
        .kpi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .data-table th {
            background-color: #f3f4f6;
            font-weight: 600;
        }
        .data-table tr:nth-child(even) {
            background-color: #f9fafb;
        }
        .data-table tr:hover {
            background-color: #f1f5f9;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <!-- Vanta.js Background -->
    <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
    
    <!-- Main Layout -->
    <div class="relative z-10 flex h-screen overflow-hidden">
        <!-- Sidebar -->
    <div class="sidebar bg-gray-800 text-white w-64 flex-shrink-0 transform -translate-x-full md:translate-x-0 transition duration-300 ease-in-out">
            <div class="p-4 border-b border-gray-700">
                <div class="flex items-center space-x-2">
                    <img src="http://static.photos/green/100x100/133" alt="Greenberry Logo" class="w-8 h-8 rounded-full">
                    <h1 class="text-xl font-bold">PipeFlow Pro</h1>
                </div>
                <p class="text-gray-400 text-sm mt-1">Industrial Piping Command Center</p>
            </div>
<nav class="p-4">
                <div class="mb-6">
                    <h3 class="text-xs uppercase tracking-wider text-gray-400 mb-3">Modules</h3>
                    <ul class="space-y-2">
                        <li>
                            <a href="index.html" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="home" class="w-5 h-5"></i>
                                <span>Dashboard</span>
                            </a>
                        </li>
                        <li>
                            <a href="financial.html" class="flex items-center space-x-2 p-2 rounded-lg bg-gray-700 text-white">
                                <i data-feather="dollar-sign" class="w-5 h-5"></i>
                                <span>Financial</span>
                            </a>
                        </li>
<li>
                            <a href="tracking.html" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="activity" class="w-5 h-5"></i>
                                <span>Tracking</span>
                            </a>
                        </li>
                        <li>
                            <a href="earned-value.html" class="flex items-center space-x-2 p-2 rounded-lg bg-gray-700 text-white">
                                <i data-feather="trending-up" class="w-5 h-5"></i>
                                <span>Earned Value</span>
                            </a>
                        </li>
                        <li>
                            <a href="plan-forecast.html" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="calendar" class="w-5 h-5"></i>
                                <span>Plan & Forecast</span>
                            </a>
                        </li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-xs uppercase tracking-wider text-gray-400 mb-3">Settings</h3>
                    <ul class="space-y-2">
                        <li>
                            <a href="#" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="user" class="w-5 h-5"></i>
                                <span>Profile</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="settings" class="w-5 h-5"></i>
                                <span>Settings</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="tool" class="w-5 h-5"></i>
                                <span>Options</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-700">
                                <i data-feather="folder" class="w-5 h-5"></i>
                                <span>Project Management</span>
                            </a>
                        </li>
                    </ul>
                </div>
</nav>
        </div>

        <!-- Main Content -->
        <div class="flex-1 overflow-auto">
            <!-- Top Navigation -->
            <header class="bg-white shadow-sm">
                <div class="flex items-center justify-between px-6 py-4">
                    <div class="flex items-center space-x-4">
                        <button id="sidebar-toggle" class="md:hidden text-gray-500">
                            <i data-feather="menu"></i>
                        </button>
                        <h2 class="text-xl font-semibold text-gray-800">Earned Value Module</h2>
                    </div>
                    
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <i data-feather="bell" class="text-gray-500"></i>
                            <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
                        </div>
                        <div class="flex items-center space-x-2">
                            <img src="https://static.photos/people/40x40/1" alt="User" class="w-8 h-8 rounded-full">
                            <span class="text-sm font-medium">John Doe</span>
                        </div>
                    </div>
                </div>
            </header>

            <!-- Earned Value Content -->
            <main class="p-6">
                <!-- Header -->
                <div class="mb-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <h3 class="text-lg font-semibold">Earned Value Analysis</h3>
                            <p class="text-gray-600">Monitor project performance using CPI, SPI and other key metrics</p>
                        </div>
                        <div class="flex space-x-3">
                            <button class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 flex items-center">
                                <i data-feather="download" class="w-4 h-4 mr-2"></i>
                                Export Report
                            </button>
                            <button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 flex items-center">
                                <i data-feather="refresh-cw" class="w-4 h-4 mr-2"></i>
                                Refresh Data
                            </button>
                        </div>
                    </div>
                </div>

                <!-- KPI Cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                    <div class="kpi-card bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="p-5">
                            <div class="flex items-center justify-between mb-4">
                                <span class="text-gray-500">Budget at Completion</span>
                                <div class="bg-blue-100 p-2 rounded-full">
                                    <i data-feather="dollar-sign" class="text-blue-500 w-5 h-5"></i>
                                </div>
                            </div>
                            <h4 class="text-2xl font-bold mb-2">$4,200,000</h4>
                            <div class="flex items-center text-sm">
                                <span class="text-gray-500 mr-2">Total Project Budget</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="kpi-card bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="p-5">
                            <div class="flex items-center justify-between mb-4">
                                <span class="text-gray-500">Planned Value</span>
                                <div class="bg-purple-100 p-2 rounded-full">
                                    <i data-feather="calendar" class="text-purple-500 w-5 h-5"></i>
                                </div>
                            </div>
                            <h4 class="text-2xl font-bold mb-2">$2,856,000</h4>
                            <div class="flex items-center text-sm">
                                <span class="text-gray-500 mr-2">68% of budget</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="kpi-card bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="p-5">
                            <div class="flex items-center justify-between mb-4">
                                <span class="text-gray-500">Earned Value</span>
                                <div class="bg-green-100 p-2 rounded-full">
                                    <i data-feather="trending-up" class="text-green-500 w-5 h-5"></i>
                                </div>
                            </div>
                            <h4 class="text-2xl font-bold mb-2">$2,772,000</h4>
                            <div class="flex items-center text-sm">
                                <span class="text-gray-500 mr-2">66% of budget</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="kpi-card bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="p-5">
                            <div class="flex items-center justify-between mb-4">
                                <span class="text-gray-500">Actual Cost</span>
                                <div class="bg-red-100 p-2 rounded-full">
                                    <i data-feather="credit-card" class="text-red-500 w-5 h-5"></i>
                                </div>
                            </div>
                            <h4 class="text-2xl font-bold mb-2">$2,940,000</h4>
                            <div class="flex items-center text-sm">
                                <span class="text-gray-500 mr-2">70% of budget</span>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Performance Metrics -->
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
                    <div class="bg-white rounded-lg shadow p-6">
                        <h4 class="text-md font-semibold mb-4">Cost Performance Index (CPI)</h4>
                        <div class="flex items-end justify-between">
                            <div>
                                <div class="text-3xl font-bold text-red-500">0.94</div>
                                <div class="text-sm text-gray-500 mt-1">Under Budget</div>
                            </div>
                            <div class="text-right">
                                <div class="text-sm text-gray-500">EV / AC</div>
                                <div class="text-sm text-gray-500">$2.77M / $2.94M</div>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-red-500 h-2 rounded-full" style="width: 47%"></div>
                            </div>
                            <div class="flex justify-between text-xs text-gray-500 mt-1">
                                <span>0.0</span>
                                <span>0.5</span>
                                <span>1.0</span>
                                <span>1.5</span>
                                <span>2.0</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow p-6">
                        <h4 class="text-md font-semibold mb-4">Schedule Performance Index (SPI)</h4>
                        <div class="flex items-end justify-between">
                            <div>
                                <div class="text-3xl font-bold text-yellow-500">0.97</div>
                                <div class="text-sm text-gray-500 mt-1">Behind Schedule</div>
                            </div>
                            <div class="text-right">
                                <div class="text-sm text-gray-500">EV / PV</div>
                                <div class="text-sm text-gray-500">$2.77M / $2.86M</div>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="w-full bg-gray-200 rounded-full h-2">
                                <div class="bg-yellow-500 h-2 rounded-full" style="width: 48.5%"></div>
                            </div>
                            <div class="flex justify-between text-xs text-gray-500 mt-1">
                                <span>0.0</span>
                                <span>0.5</span>
                                <span>1.0</span>
                                <span>1.5</span>
                                <span>2.0</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow p-6">
                        <h4 class="text-md font-semibold mb-4">Variance Analysis</h4>
                        <div class="space-y-4">
                            <div>
                                <div class="flex justify-between text-sm mb-1">
                                    <span class="text-gray-600">Cost Variance (CV)</span>
                                    <span class="font-medium text-red-500">-$168,000</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-red-500 h-2 rounded-full" style="width: 30%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between text-sm mb-1">
                                    <span class="text-gray-600">Schedule Variance (SV)</span>
                                    <span class="font-medium text-yellow-500">-$84,000</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-yellow-500 h-2 rounded-full" style="width: 15%"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Charts Section -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                    <!-- Earned Value Curve -->
                    <div class="bg-white p-6 rounded-lg shadow">
                        <div class="flex items-center justify-between mb-4">
                            <h3 class="text-lg font-semibold">Earned Value Curve</h3>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-sm bg-blue-500 text-white rounded-lg">Monthly</button>
                                <button class="px-3 py-1 text-sm border border-gray-300 rounded-lg">Quarterly</button>
                            </div>
                        </div>
                        <canvas id="evCurveChart" height="250"></canvas>
                    </div>
                    
                    <!-- Performance Indices -->
                    <div class="bg-white p-6 rounded-lg shadow">
                        <div class="flex items-center justify-between mb-4">
                            <h3 class="text-lg font-semibold">Performance Indices</h3>
                            <div class="flex items-center space-x-2">
                                <span class="text-sm text-gray-500">Last updated: 15 min ago</span>
                            </div>
                        </div>
                        <canvas id="performanceChart" height="250"></canvas>
                    </div>
                </div>

                <!-- Detailed Data Table -->
                <div class="bg-white rounded-lg shadow overflow-hidden mb-8">
                    <div class="px-6 py-4 border-b border-gray-200">
                        <h3 class="text-lg font-semibold">Detailed Earned Value Data</h3>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="data-table min-w-full divide-y divide-gray-200">
                            <thead>
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Area/Zone</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Budget (BAC)</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Planned Value (PV)</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Earned Value (EV)</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actual Cost (AC)</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">CPI</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">SPI</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Zone 1</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$840,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$588,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$546,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$588,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-red-500 font-medium">0.93</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-yellow-500 font-medium">0.93</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Behind</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Zone 2</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,050,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$735,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$714,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$756,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-red-500 font-medium">0.94</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-yellow-500 font-medium">0.97</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Behind</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Zone 3</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,260,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$882,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$882,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$882,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-medium">1.00</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-medium">1.00</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">On Track</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Zone 4</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,050,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$651,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$630,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$756,000</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-red-500 font-medium">0.83</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-yellow-500 font-medium">0.97</td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Over Budget</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        // Initialize Feather Icons
        feather.replace();
        
        // Initialize Vanta.js background
        VANTA.NET({
            el: "#vanta-bg",
            color: 0x3b82f6,
            backgroundColor: 0xf8fafc,
            points: 12,
            maxDistance: 20,
            spacing: 15
        });
        
        // Toggle sidebar on mobile
        document.getElementById('sidebar-toggle').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('translate-x-0');
        });
        
        // Initialize EV Curve Chart
        const evCtx = document.getElementById('evCurveChart').getContext('2d');
        const evCurveChart = new Chart(evCtx, {
            type: 'line',
            data: {
                labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
                datasets: [
                    {
                        label: 'Planned Value (PV)',
                        data: [420000, 840000, 1260000, 1680000, 2100000, 2520000],
                        borderColor: 'rgba(99, 102, 241, 1)',
                        backgroundColor: 'rgba(99, 102, 241, 0.1)',
                        borderWidth: 2,
                        tension: 0.3,
                        fill: true
                    },
                    {
                        label: 'Earned Value (EV)',
                        data: [378000, 756000, 1176000, 1596000, 2058000, 2520000],
                        borderColor: 'rgba(16, 185, 129, 1)',
                        backgroundColor: 'rgba(16, 185, 129, 0.1)',
                        borderWidth: 2,
                        tension: 0.3,
                        fill: true
                    },
                    {
                        label: 'Actual Cost (AC)',
                        data: [420000, 819000, 1239000, 1659000, 2121000, 2583000],
                        borderColor: 'rgba(239, 68, 68, 1)',
                        backgroundColor: 'rgba(239, 68, 68, 0.1)',
                        borderWidth: 2,
                        tension: 0.3,
                        fill: true
                    }
                ]
            },
            options: {
                responsive: true,
                plugins: {
                    legend: {
                        position: 'top',
                    },
                    tooltip: {
                        callbacks: {
                            label: function(context) {
                                let label = context.dataset.label || '';
                                if (label) {
                                    label += ': ';
                                }
                                if (context.parsed.y !== null) {
                                    label += new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(context.parsed.y);
                                }
                                return label;
                            }
                        }
                    }
                },
                scales: {
                    y: {
                        beginAtZero: true,
                        ticks: {
                            callback: function(value) {
                                return '$' + (value / 1000) + 'K';
                            }
                        }
                    }
                }
            }
        });
        
        // Initialize Performance Chart
        const perfCtx = document.getElementById('performanceChart').getContext('2d');
        const performanceChart = new Chart(perfCtx, {
            type: 'bar',
            data: {
                labels: ['Zone 1', 'Zone 2', 'Zone 3', 'Zone 4'],
                datasets: [
                    {
                        label: 'CPI',
                        data: [0.93, 0.94, 1.00, 0.83],
                        backgroundColor: 'rgba(59, 130, 246, 0.7)',
                        borderColor: 'rgba(59, 130, 246, 1)',
                        borderWidth: 1
                    },
                    {
                        label: 'SPI',
                        data: [0.93, 0.97, 1.00, 0.97],
                        backgroundColor: 'rgba(16, 185, 129, 0.7)',
                        borderColor: 'rgba(16, 185, 129, 1)',
                        borderWidth: 1
                    }
                ]
            },
            options: {
                responsive: true,
                plugins: {
                    legend: {
                        position: 'top',
                    }
                },
                scales: {
                    y: {
                        beginAtZero: true,
                        max: 1.5
                    }
                }
            }
        });
    </script>
</body>
</html>