File size: 47,360 Bytes
e128bf3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ConstructFlow | Construction Project Management</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>
        /* Custom CSS for the 3D viewer and other elements */
        #bim-viewer {
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 0.5rem;
            position: relative;
            overflow: hidden;
        }
        
        .viewer-controls {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            z-index: 10;
            display: flex;
            gap: 0.5rem;
        }
        
        .phase-indicator {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background-color: rgba(255,255,255,0.9);
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .co2-gauge {
            width: 120px;
            height: 120px;
            position: relative;
        }
        
        .gauge-body {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: conic-gradient(
                #4ade80 0% 25%,
                #facc15 25% 75%,
                #f87171 75% 100%
            );
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .gauge-inner {
            width: 80%;
            height: 80%;
            background: white;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .task-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .file-item:hover {
            background-color: #f8fafc;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 2rem;
        }
        
        .timeline-item:before {
            content: '';
            position: absolute;
            left: 0.5rem;
            top: 0;
            height: 100%;
            width: 2px;
            background-color: #e2e8f0;
        }
        
        .timeline-dot {
            position: absolute;
            left: 0;
            top: 0.25rem;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background-color: #3b82f6;
            border: 2px solid white;
        }
        
        @media (max-width: 768px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
            
            #bim-viewer {
                height: 300px;
            }
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i class="fas fa-building text-blue-600 text-2xl mr-2"></i>
                        <span class="text-xl font-bold text-gray-900">ConstructFlow</span>
                    </div>
                    <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
                        <a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Dashboard</a>
                        <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Projects</a>
                        <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Team</a>
                        <a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Reports</a>
                    </div>
                </div>
                <div class="hidden sm:ml-6 sm:flex sm:items-center">
                    <div class="ml-3 relative">
                        <div class="flex items-center space-x-4">
                            <div class="relative">
                                <button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                                    <i class="fas fa-bell text-xl"></i>
                                    <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
                                </button>
                            </div>
                            <div class="relative">
                                <button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                                    <i class="fas fa-comment-dots text-xl"></i>
                                    <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-blue-500"></span>
                                </button>
                            </div>
                            <div class="flex items-center">
                                <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
                                <span class="ml-2 text-sm font-medium">John Doe</span>
                                <i class="fas fa-chevron-down ml-1 text-gray-400"></i>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="-mr-2 flex items-center sm:hidden">
                    <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" aria-controls="mobile-menu" aria-expanded="false">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
        <!-- Project Header -->
        <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
            <div>
                <h1 class="text-2xl font-bold text-gray-900">Riverfront Tower Project</h1>
                <p class="text-gray-500">123 Main St, Portland, OR • Project ID: RF-2023-001</p>
            </div>
            <div class="mt-4 md:mt-0 flex space-x-3">
                <button class="inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                    <i class="fas fa-share-alt mr-2"></i> Share
                </button>
                <button class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
                    <i class="fas fa-plus mr-2"></i> New Task
                </button>
            </div>
        </div>
        
        <!-- Project Status -->
        <div class="bg-white shadow rounded-lg p-4 mb-6">
            <div class="flex flex-wrap items-center justify-between">
                <div class="flex items-center space-x-4 mb-4 md:mb-0">
                    <div>
                        <span class="text-sm font-medium text-gray-500">Status</span>
                        <div class="flex items-center mt-1">
                            <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Active</span>
                            <span class="ml-2 text-sm text-gray-500">Phase 2 of 5</span>
                        </div>
                    </div>
                    <div>
                        <span class="text-sm font-medium text-gray-500">Timeline</span>
                        <div class="flex items-center mt-1">
                            <span class="text-sm font-medium text-gray-900">45 days remaining</span>
                        </div>
                    </div>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="text-center">
                        <span class="text-sm font-medium text-gray-500">Budget</span>
                        <div class="mt-1">
                            <span class="text-sm font-medium text-gray-900">$2.4M / $3.2M</span>
                            <div class="w-32 h-2 bg-gray-200 rounded-full mt-1">
                                <div class="h-2 bg-blue-600 rounded-full" style="width: 75%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="text-center">
                        <span class="text-sm font-medium text-gray-500">CO₂ Saved</span>
                        <div class="mt-1">
                            <span class="text-sm font-medium text-gray-900">124 tons</span>
                            <div class="w-32 h-2 bg-gray-200 rounded-full mt-1">
                                <div class="h-2 bg-green-500 rounded-full" style="width: 62%"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Main Dashboard Grid -->
        <div class="dashboard-grid grid grid-cols-1 lg:grid-cols-3 gap-6">
            <!-- Left Column (3D Viewer) -->
            <div class="lg:col-span-2 space-y-6">
                <!-- 3D BIM/IFC Viewer -->
                <div class="bg-white shadow rounded-lg overflow-hidden">
                    <div class="px-4 py-3 border-b border-gray-200 flex justify-between items-center">
                        <h2 class="text-lg font-medium text-gray-900">3D Model Viewer</h2>
                        <div class="flex space-x-2">
                            <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                                <i class="fas fa-layer-group"></i>
                            </button>
                            <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                                <i class="fas fa-ruler-combined"></i>
                            </button>
                            <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                                <i class="fas fa-comment"></i>
                            </button>
                            <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                                <i class="fas fa-expand"></i>
                            </button>
                        </div>
                    </div>
                    <div id="bim-viewer">
                        <!-- Placeholder for 3D viewer - would be replaced with actual viewer like xeokit, Forge, etc. -->
                        <div class="absolute inset-0 flex items-center justify-center">
                            <div class="text-center">
                                <i class="fas fa-cube text-6xl text-gray-300 mb-4"></i>
                                <p class="text-gray-500 font-medium">3D Model Viewer</p>
                                <p class="text-gray-400 text-sm mt-1">IFC/BIM model would be displayed here</p>
                            </div>
                        </div>
                        <div class="viewer-controls">
                            <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                <i class="fas fa-arrows-alt text-gray-700"></i>
                            </button>
                            <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                <i class="fas fa-search-plus text-gray-700"></i>
                            </button>
                            <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                <i class="fas fa-search-minus text-gray-700"></i>
                            </button>
                            <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                <i class="fas fa-home text-gray-700"></i>
                            </button>
                        </div>
                        <div class="phase-indicator">
                            <i class="fas fa-hard-hat text-blue-500 mr-1"></i>
                            <span>Structural Framing Phase</span>
                        </div>
                    </div>
                </div>
                
                <!-- Task Manager -->
                <div class="bg-white shadow rounded-lg overflow-hidden">
                    <div class="px-4 py-3 border-b border-gray-200 flex justify-between items-center">
                        <h2 class="text-lg font-medium text-gray-900">Tasks</h2>
                        <div class="flex space-x-2">
                            <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                                <i class="fas fa-filter"></i>
                            </button>
                            <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                                <i class="fas fa-sort"></i>
                            </button>
                        </div>
                    </div>
                    <div class="divide-y divide-gray-200">
                        <!-- Task Item -->
                        <div class="task-item p-4 hover:bg-gray-50 transition-all duration-150 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-0.5">
                                    <div class="h-5 w-5 rounded-full bg-blue-100 flex items-center justify-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300 focus:ring-blue-500">
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <p class="text-sm font-medium text-gray-900">Install steel beams - Level 3</p>
                                        <span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800">High</span>
                                    </div>
                                    <p class="text-sm text-gray-500 mt-1">Structural steel needs to be installed before concrete pouring can begin.</p>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-calendar-alt mr-1"></i>
                                            Due tomorrow
                                        </span>
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-user-hard-hat mr-1"></i>
                                            Steel Crew
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-comments mr-1"></i>
                                            3 comments
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Task Item -->
                        <div class="task-item p-4 hover:bg-gray-50 transition-all duration-150 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-0.5">
                                    <div class="h-5 w-5 rounded-full bg-blue-100 flex items-center justify-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300 focus:ring-blue-500">
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <p class="text-sm font-medium text-gray-900">Inspect concrete pour - Basement</p>
                                        <span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800">Medium</span>
                                    </div>
                                    <p class="text-sm text-gray-500 mt-1">Quality control inspection required before proceeding with next phase.</p>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-calendar-alt mr-1"></i>
                                            Due in 2 days
                                        </span>
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-user-hard-hat mr-1"></i>
                                            QC Team
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-paperclip mr-1"></i>
                                            1 attachment
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Task Item -->
                        <div class="task-item p-4 hover:bg-gray-50 transition-all duration-150 cursor-pointer">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 pt-0.5">
                                    <div class="h-5 w-5 rounded-full bg-blue-100 flex items-center justify-center">
                                        <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300 focus:ring-blue-500" checked>
                                    </div>
                                </div>
                                <div class="ml-3 flex-1">
                                    <div class="flex items-center justify-between">
                                        <p class="text-sm font-medium text-gray-900">Order window frames</p>
                                        <span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">Completed</span>
                                    </div>
                                    <p class="text-sm text-gray-500 mt-1">Order placed with supplier, expected delivery in 3 weeks.</p>
                                    <div class="mt-2 flex items-center text-xs text-gray-500">
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-calendar-check mr-1"></i>
                                            Completed today
                                        </span>
                                        <span class="flex items-center mr-3">
                                            <i class="fas fa-user-hard-hat mr-1"></i>
                                            Procurement
                                        </span>
                                        <span class="flex items-center">
                                            <i class="fas fa-file-invoice-dollar mr-1"></i>
                                            PO #45678
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="px-4 py-3 bg-gray-50 text-right">
                        <button class="text-sm font-medium text-blue-600 hover:text-blue-500">View all tasks (24)</button>
                    </div>
                </div>
            </div>
            
            <!-- Right Column -->
            <div class="space-y-6">
                <!-- CO₂ Tracker -->
                <div class="bg-white shadow rounded-lg overflow-hidden">
                    <div class="px-4 py-3 border-b border-gray-200">
                        <h2 class="text-lg font-medium text-gray-900">CO₂ Emissions Tracker</h2>
                    </div>
                    <div class="p-4">
                        <div class="flex justify-center mb-4">
                            <div class="co2-gauge">
                                <div class="gauge-body">
                                    <div class="gauge-inner">
                                        <span class="text-2xl font-bold text-gray-800">1.2</span>
                                        <span class="text-xs text-gray-500">tons/m²</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="space-y-3">
                            <div>
                                <div class="flex justify-between text-sm font-medium mb-1">
                                    <span class="text-gray-700">Current Phase</span>
                                    <span class="text-blue-600">42 tons</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 45%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between text-sm font-medium mb-1">
                                    <span class="text-gray-700">Project Total</span>
                                    <span class="text-green-600">124/200 tons</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-green-500 h-2 rounded-full" style="width: 62%"></div>
                                </div>
                            </div>
                            <div>
                                <div class="flex justify-between text-sm font-medium mb-1">
                                    <span class="text-gray-700">Industry Benchmark</span>
                                    <span class="text-gray-600">1.8 tons/m²</span>
                                </div>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-gray-400 h-2 rounded-full" style="width: 100%"></div>
                                </div>
                            </div>
                        </div>
                        <div class="mt-4 pt-4 border-t border-gray-200">
                            <h3 class="text-sm font-medium text-gray-900 mb-2">Breakdown by Material</h3>
                            <div class="space-y-2">
                                <div class="flex justify-between text-sm">
                                    <span class="text-gray-600">Concrete</span>
                                    <span class="font-medium">68 tons (55%)</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span class="text-gray-600">Steel</span>
                                    <span class="font-medium">32 tons (26%)</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span class="text-gray-600">Transport</span>
                                    <span class="font-medium">12 tons (10%)</span>
                                </div>
                                <div class="flex justify-between text-sm">
                                    <span class="text-gray-600">Other</span>
                                    <span class="font-medium">12 tons (9%)</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- File Manager -->
                <div class="bg-white shadow rounded-lg overflow-hidden">
                    <div class="px-4 py-3 border-b border-gray-200 flex justify-between items-center">
                        <h2 class="text-lg font-medium text-gray-900">Files & Documents</h2>
                        <button class="p-1 rounded text-gray-500 hover:text-gray-700 hover:bg-gray-100">
                            <i class="fas fa-ellipsis-v"></i>
                        </button>
                    </div>
                    <div class="divide-y divide-gray-200">
                        <!-- File Item -->
                        <div class="file-item p-3 hover:bg-gray-50 transition-colors duration-150 cursor-pointer">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 bg-blue-100 rounded-md p-2">
                                    <i class="fas fa-file-pdf text-blue-600"></i>
                                </div>
                                <div class="ml-3 flex-1 min-w-0">
                                    <p class="text-sm font-medium text-gray-900 truncate">Structural_Design_v3.pdf</p>
                                    <div class="flex items-center text-xs text-gray-500 mt-1">
                                        <span class="truncate">2.4 MB</span>
                                        <span class="mx-1"></span>
                                        <span class="truncate">Updated 2 days ago</span>
                                    </div>
                                </div>
                                <div class="ml-2 flex-shrink-0 flex">
                                    <button class="p-1 rounded text-gray-400 hover:text-gray-500 hover:bg-gray-100">
                                        <i class="fas fa-ellipsis-v"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- File Item -->
                        <div class="file-item p-3 hover:bg-gray-50 transition-colors duration-150 cursor-pointer">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 bg-green-100 rounded-md p-2">
                                    <i class="fas fa-file-excel text-green-600"></i>
                                </div>
                                <div class="ml-3 flex-1 min-w-0">
                                    <p class="text-sm font-medium text-gray-900 truncate">Material_Schedule.xlsx</p>
                                    <div class="flex items-center text-xs text-gray-500 mt-1">
                                        <span class="truncate">1.7 MB</span>
                                        <span class="mx-1"></span>
                                        <span class="truncate">Updated today</span>
                                    </div>
                                </div>
                                <div class="ml-2 flex-shrink-0 flex">
                                    <button class="p-1 rounded text-gray-400 hover:text-gray-500 hover:bg-gray-100">
                                        <i class="fas fa-ellipsis-v"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- File Item -->
                        <div class="file-item p-3 hover:bg-gray-50 transition-colors duration-150 cursor-pointer">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 bg-purple-100 rounded-md p-2">
                                    <i class="fas fa-file-image text-purple-600"></i>
                                </div>
                                <div class="ml-3 flex-1 min-w-0">
                                    <p class="text-sm font-medium text-gray-900 truncate">Site_Progress_Photos.zip</p>
                                    <div class="flex items-center text-xs text-gray-500 mt-1">
                                        <span class="truncate">24.5 MB</span>
                                        <span class="mx-1"></span>
                                        <span class="truncate">Updated 1 week ago</span>
                                    </div>
                                </div>
                                <div class="ml-2 flex-shrink-0 flex">
                                    <button class="p-1 rounded text-gray-400 hover:text-gray-500 hover:bg-gray-100">
                                        <i class="fas fa-ellipsis-v"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- File Item -->
                        <div class="file-item p-3 hover:bg-gray-50 transition-colors duration-150 cursor-pointer">
                            <div class="flex items-center">
                                <div class="flex-shrink-0 bg-yellow-100 rounded-md p-2">
                                    <i class="fas fa-file-word text-yellow-600"></i>
                                </div>
                                <div class="ml-3 flex-1 min-w-0">
                                    <p class="text-sm font-medium text-gray-900 truncate">Contract_Amendment.docx</p>
                                    <div class="flex items-center text-xs text-gray-500 mt-1">
                                        <span class="truncate">0.8 MB</span>
                                        <span class="mx-1"></span>
                                        <span class="truncate">Updated yesterday</span>
                                    </div>
                                </div>
                                <div class="ml-2 flex-shrink-0 flex">
                                    <button class="p-1 rounded text-gray-400 hover:text-gray-500 hover:bg-gray-100">
                                        <i class="fas fa-ellipsis-v"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="px-4 py-3 bg-gray-50 text-center">
                        <button class="inline-flex items-center text-sm font-medium text-blue-600 hover:text-blue-500">
                            <i class="fas fa-cloud-upload-alt mr-2"></i>
                            Upload New File
                        </button>
                    </div>
                </div>
                
                <!-- Timeline -->
                <div class="bg-white shadow rounded-lg overflow-hidden">
                    <div class="px-4 py-3 border-b border-gray-200">
                        <h2 class="text-lg font-medium text-gray-900">Project Timeline</h2>
                    </div>
                    <div class="p-4">
                        <div class="space-y-4">
                            <!-- Timeline Item -->
                            <div class="timeline-item">
                                <div class="timeline-dot"></div>
                                <div class="pl-4">
                                    <div class="flex justify-between">
                                        <span class="text-sm font-medium text-gray-900">Foundation Complete</span>
                                        <span class="text-xs text-gray-500">May 15</span>
                                    </div>
                                    <p class="text-xs text-gray-500 mt-1">All foundation work completed and inspected</p>
                                </div>
                            </div>
                            
                            <!-- Timeline Item -->
                            <div class="timeline-item">
                                <div class="timeline-dot bg-green-500"></div>
                                <div class="pl-4">
                                    <div class="flex justify-between">
                                        <span class="text-sm font-medium text-gray-900">Structural Framing</span>
                                        <span class="text-xs text-gray-500">May 16 - Jun 30</span>
                                    </div>
                                    <p class="text-xs text-gray-500 mt-1">Current phase - 65% complete</p>
                                    <div class="w-full bg-gray-200 rounded-full h-1.5 mt-2">
                                        <div class="bg-green-500 h-1.5 rounded-full" style="width: 65%"></div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Timeline Item -->
                            <div class="timeline-item">
                                <div class="timeline-dot bg-gray-300"></div>
                                <div class="pl-4">
                                    <div class="flex justify-between">
                                        <span class="text-sm font-medium text-gray-900">Enclosure</span>
                                        <span class="text-xs text-gray-500">Jul 1 - Aug 15</span>
                                    </div>
                                    <p class="text-xs text-gray-500 mt-1">Windows, roofing and exterior walls</p>
                                </div>
                            </div>
                            
                            <!-- Timeline Item -->
                            <div class="timeline-item">
                                <div class="timeline-dot bg-gray-300"></div>
                                <div class="pl-4">
                                    <div class="flex justify-between">
                                        <span class="text-sm font-medium text-gray-900">MEP Rough-in</span>
                                        <span class="text-xs text-gray-500">Aug 16 - Sep 30</span>
                                    </div>
                                    <p class="text-xs text-gray-500 mt-1">Mechanical, electrical and plumbing</p>
                                </div>
                            </div>
                            
                            <!-- Timeline Item -->
                            <div class="timeline-item">
                                <div class="timeline-dot bg-gray-300"></div>
                                <div class="pl-4">
                                    <div class="flex justify-between">
                                        <span class="text-sm font-medium text-gray-900">Interior Finishes</span>
                                        <span class="text-xs text-gray-500">Oct 1 - Nov 15</span>
                                    </div>
                                    <p class="text-xs text-gray-500 mt-1">Drywall, flooring, painting, fixtures</p>
                                </div>
                            </div>
                        </div>
                        <div class="mt-4 pt-4 border-t border-gray-200 text-center">
                            <button class="text-sm font-medium text-blue-600 hover:text-blue-500">View Full Timeline</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Team Collaboration Footer -->
    <div class="bg-white border-t border-gray-200 fixed bottom-0 left-0 right-0">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center py-2">
                <div class="flex items-center space-x-4">
                    <div class="flex -space-x-2">
                        <img class="h-8 w-8 rounded-full border-2 border-white" src="https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
                        <img class="h-8 w-8 rounded-full border-2 border-white" src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
                        <img class="h-8 w-8 rounded-full border-2 border-white" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2.25&w=256&h=256&q=80" alt="">
                        <span class="h-8 w-8 rounded-full border-2 border-white bg-gray-100 flex items-center justify-center text-xs font-medium text-gray-500">+5</span>
                    </div>
                    <span class="text-sm text-gray-500">6 team members online</span>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="p-2 rounded-full text-gray-400 hover:text-gray-500 hover:bg-gray-100">
                        <i class="fas fa-video"></i>
                    </button>
                    <button class="p-2 rounded-full text-gray-400 hover:text-gray-500 hover:bg-gray-100">
                        <i class="fas fa-phone"></i>
                    </button>
                    <div class="relative">
                        <input type="text" class="w-64 rounded-full border-gray-300 pl-4 pr-10 py-2 text-sm focus:ring-blue-500 focus:border-blue-500" placeholder="Message the team...">
                        <button class="absolute right-2 top-1/2 transform -translate-y-1/2 p-1 rounded-full text-gray-400 hover:text-gray-500">
                            <i class="fas fa-paper-plane"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // This would be replaced with actual BIM viewer initialization in a real implementation
        document.addEventListener('DOMContentLoaded', function() {
            // Simulate loading the BIM viewer
            setTimeout(() => {
                const viewer = document.getElementById('bim-viewer');
                viewer.innerHTML = `
                    <div class="absolute inset-0 flex items-center justify-center">
                        <div class="text-center">
                            <i class="fas fa-cube text-6xl text-blue-500 mb-4 animate-pulse"></i>
                            <p class="text-gray-700 font-medium">Loading 3D Model</p>
                            <p class="text-gray-500 text-sm mt-1">Riverfront_Tower_L3.ifc</p>
                            <div class="w-32 h-1 bg-gray-200 rounded-full mt-4 mx-auto">
                                <div class="h-1 bg-blue-500 rounded-full animate-progress" style="width: 0%"></div>
                            </div>
                        </div>
                    </div>
                `;
                
                // Simulate progress
                let progress = 0;
                const progressInterval = setInterval(() => {
                    progress += 5;
                    const progressBar = document.querySelector('.animate-progress');
                    if (progressBar) progressBar.style.width = `${progress}%`;
                    
                    if (progress >= 100) {
                        clearInterval(progressInterval);
                        viewer.innerHTML = `
                            <div class="absolute inset-0 flex items-center justify-center">
                                <div class="text-center">
                                    <i class="fas fa-check-circle text-6xl text-green-500 mb-4"></i>
                                    <p class="text-gray-700 font-medium">Model Loaded Successfully</p>
                                    <p class="text-gray-500 text-sm mt-1">3D visualization ready</p>
                                    <button class="mt-4 px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors">
                                        Explore Model
                                    </button>
                                </div>
                            </div>
                            <div class="viewer-controls">
                                <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                    <i class="fas fa-arrows-alt text-gray-700"></i>
                                </button>
                                <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                    <i class="fas fa-search-plus text-gray-700"></i>
                                </button>
                                <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                    <i class="fas fa-search-minus text-gray-700"></i>
                                </button>
                                <button class="bg-white p-2 rounded-full shadow-md hover:bg-gray-100">
                                    <i class="fas fa-home text-gray-700"></i>
                                </button>
                            </div>
                            <div class="phase-indicator">
                                <i class="fas fa-hard-hat text-blue-500 mr-1"></i>
                                <span>Structural Framing Phase</span>
                            </div>
                        `;
                    }
                }, 100);
            }, 1000);
            
            // Task completion toggle
            document.querySelectorAll('.task-item input[type="checkbox"]').forEach(checkbox => {
                checkbox.addEventListener('change', function() {
                    const taskItem = this.closest('.task-item');
                    if (this.checked) {
                        taskItem.classList.add('opacity-70');
                    } else {
                        taskItem.classList.remove('opacity-70');
                    }
                });
            });
            
            // Simulate real-time collaboration
            setInterval(() => {
                const teamMembers = document.querySelectorAll('.flex.-space-x-2 img');
                const randomMember = teamMembers[Math.floor(Math.random() * teamMembers.length)];
                
                // Add pulse animation to show activity
                randomMember.classList.add('animate-pulse');
                setTimeout(() => {
                    randomMember.classList.remove('animate-pulse');
                }, 1000);
                
                // Randomly show a notification
                if (Math.random() > 0.7) {
                    const notifications = [
                        "John updated task 'Install steel beams'",
                        "Sarah uploaded a new document",
                        "Mike commented on the foundation design",
                        "New message from the architect"
                    ];
                    
                    const notification = document.createElement('div');
                    notification.className = 'fixed bottom-20 right-4 bg-white shadow-lg rounded-lg p-3 text-sm max-w-xs animate-fade-in-up';
                    notification.innerHTML = `
                        <div class="flex items-start">
                            <div class="flex-shrink-0">
                                <i class="fas fa-bell text-blue-500"></i>
                            </div>
                            <div class="ml-2">
                                <p class="font-medium text-gray-900">${notifications[Math.floor(Math.random() * notifications.length)]}</p>
                                <p class="text-xs text-gray-500 mt-1">Just now</p>
                            </div>
                            <button class="ml-2 text-gray-400 hover:text-gray-500" onclick="this.parentElement.remove()">
                                <i class="fas fa-times"></i>
                            </button>
                        </div>
                    `;
                    document.body.appendChild(notification);
                    
                    setTimeout(() => {
                        notification.remove();
                    }, 5000);
                }
            }, 5000);
        });
    </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=JarlJarle/constructflow" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>