File size: 78,614 Bytes
ac807e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FreelanceFlow - 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 elements Tailwind can't handle easily */
        .file-upload {
            position: relative;
            overflow: hidden;
            display: inline-block;
        }
        .file-upload input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
        }
        .rich-text-editor {
            min-height: 150px;
            border: 1px solid #e2e8f0;
            border-radius: 0.375rem;
            padding: 0.75rem;
        }
        .rich-text-editor:focus {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.5);
        }
        .message-bubble {
            max-width: 80%;
            word-wrap: break-word;
        }
        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .progress-step {
            position: relative;
        }
        .progress-step:not(:last-child):after {
            content: '';
            position: absolute;
            top: 24px;
            left: 50%;
            height: 100%;
            width: 2px;
            background-color: #e2e8f0;
            transform: translateX(-50%);
        }
        .progress-step.active:not(:last-child):after {
            background-color: #3b82f6;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <!-- Navigation Sidebar (hidden on mobile, shown on larger screens) -->
    <div class="hidden md:flex md:flex-shrink-0">
        <div class="flex flex-col w-64 bg-white border-r border-gray-200">
            <div class="flex items-center justify-center h-16 px-4 bg-blue-600 text-white">
                <span class="text-xl font-bold">FreelanceFlow</span>
            </div>
            <div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
                <nav class="flex-1 space-y-2">
                    <a href="#" class="flex items-center px-4 py-2 text-sm font-medium text-white bg-blue-100 rounded-md text-blue-700">
                        <i class="fas fa-home mr-3"></i>
                        Dashboard
                    </a>
                    <a href="#" class="flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-blue-50 hover:text-blue-700">
                        <i class="fas fa-project-diagram mr-3"></i>
                        My Projects
                    </a>
                    <a href="#" class="flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-blue-50 hover:text-blue-700">
                        <i class="fas fa-file-alt mr-3"></i>
                        Proposals
                    </a>
                    <a href="#" class="flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-blue-50 hover:text-blue-700">
                        <i class="fas fa-envelope mr-3"></i>
                        Messages
                    </a>
                    <a href="#" class="flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-blue-50 hover:text-blue-700">
                        <i class="fas fa-clock mr-3"></i>
                        Time Tracking
                    </a>
                    <a href="#" class="flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-md hover:bg-blue-50 hover:text-blue-700">
                        <i class="fas fa-cog mr-3"></i>
                        Settings
                    </a>
                </nav>
            </div>
            <div class="p-4 border-t border-gray-200">
                <div class="flex items-center">
                    <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile">
                    <div class="ml-3">
                        <p class="text-sm font-medium text-gray-700">Sarah Johnson</p>
                        <p class="text-xs font-medium text-gray-500">Freelance Designer</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Mobile Bottom Navigation -->
    <div class="md:hidden fixed inset-x-0 bottom-0 bg-white shadow-lg z-10">
        <div class="flex justify-around">
            <a href="#" class="flex flex-col items-center justify-center p-3 text-blue-600">
                <i class="fas fa-home"></i>
                <span class="text-xs mt-1">Home</span>
            </a>
            <a href="#" class="flex flex-col items-center justify-center p-3 text-gray-500">
                <i class="fas fa-project-diagram"></i>
                <span class="text-xs mt-1">Projects</span>
            </a>
            <a href="#" class="flex flex-col items-center justify-center p-3 text-gray-500">
                <i class="fas fa-file-alt"></i>
                <span class="text-xs mt-1">Proposals</span>
            </a>
            <a href="#" class="flex flex-col items-center justify-center p-3 text-gray-500">
                <i class="fas fa-envelope"></i>
                <span class="text-xs mt-1">Messages</span>
            </a>
        </div>
    </div>

    <!-- Main Content Area -->
    <div class="md:ml-64 flex flex-col flex-1 overflow-hidden">
        <!-- Mobile Top Header -->
        <div class="md:hidden flex items-center justify-between px-4 py-3 bg-white border-b border-gray-200">
            <div class="text-lg font-semibold text-gray-800">FreelanceFlow</div>
            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-50">
                <i class="fas fa-bars"></i>
            </button>
        </div>

        <!-- Dashboard View -->
        <div id="dashboard-view" class="flex-1 overflow-y-auto p-4">
            <div class="max-w-4xl mx-auto">
                <!-- Welcome Header -->
                <div class="flex items-center justify-between mb-6">
                    <div>
                        <h1 class="text-2xl font-bold text-gray-800">Welcome back, Sarah!</h1>
                        <p class="text-gray-600">Here's what's happening with your projects</p>
                    </div>
                    <button class="hidden md:flex items-center px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
                        <i class="fas fa-plus mr-2"></i>
                        New Project
                    </button>
                </div>

                <!-- Stats Cards -->
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
                    <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-3">
                                <i class="fas fa-project-diagram"></i>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Active Projects</p>
                                <p class="text-xl font-semibold">5</p>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-green-100 text-green-600 mr-3">
                                <i class="fas fa-check-circle"></i>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Completed</p>
                                <p class="text-xl font-semibold">12</p>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
                        <div class="flex items-center">
                            <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-3">
                                <i class="fas fa-clock"></i>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Pending</p>
                                <p class="text-xl font-semibold">3</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Active Projects -->
                <div class="mb-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Active Projects</h2>
                        <a href="#" class="text-sm text-blue-600 hover:underline">View All</a>
                    </div>
                    
                    <div class="space-y-4">
                        <!-- Project Card 1 -->
                        <div class="bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden">
                            <div class="p-4">
                                <div class="flex items-start justify-between">
                                    <div>
                                        <h3 class="font-medium text-gray-800">E-commerce Website Redesign</h3>
                                        <p class="text-sm text-gray-500">Client: FashionHub Inc.</p>
                                    </div>
                                    <span class="px-2 py-1 text-xs font-medium rounded-full bg-green-100 text-green-800">In Progress</span>
                                </div>
                                
                                <div class="mt-4">
                                    <div class="flex items-center justify-between text-sm mb-2">
                                        <span class="text-gray-600">Progress</span>
                                        <span class="font-medium">65%</span>
                                    </div>
                                    <div class="w-full bg-gray-200 rounded-full h-2">
                                        <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div>
                                    </div>
                                </div>
                                
                                <div class="mt-4 flex items-center justify-between">
                                    <div class="flex space-x-2">
                                        <button class="px-3 py-1 text-sm bg-blue-50 text-blue-600 rounded-md hover:bg-blue-100">
                                            <i class="fas fa-eye mr-1"></i> View
                                        </button>
                                        <button class="px-3 py-1 text-sm bg-gray-50 text-gray-600 rounded-md hover:bg-gray-100">
                                            <i class="fas fa-envelope mr-1"></i> Message
                                        </button>
                                    </div>
                                    <div class="text-sm font-medium text-gray-700">$2,500</div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Project Card 2 -->
                        <div class="bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden">
                            <div class="p-4">
                                <div class="flex items-start justify-between">
                                    <div>
                                        <h3 class="font-medium text-gray-800">Mobile App UI/UX</h3>
                                        <p class="text-sm text-gray-500">Client: TechStart LLC</p>
                                    </div>
                                    <span class="px-2 py-1 text-xs font-medium rounded-full bg-yellow-100 text-yellow-800">Awaiting Feedback</span>
                                </div>
                                
                                <div class="mt-4">
                                    <div class="flex items-center justify-between text-sm mb-2">
                                        <span class="text-gray-600">Progress</span>
                                        <span class="font-medium">30%</span>
                                    </div>
                                    <div class="w-full bg-gray-200 rounded-full h-2">
                                        <div class="bg-blue-600 h-2 rounded-full" style="width: 30%"></div>
                                    </div>
                                </div>
                                
                                <div class="mt-4 flex items-center justify-between">
                                    <div class="flex space-x-2">
                                        <button class="px-3 py-1 text-sm bg-blue-50 text-blue-600 rounded-md hover:bg-blue-100">
                                            <i class="fas fa-eye mr-1"></i> View
                                        </button>
                                        <button class="px-3 py-1 text-sm bg-gray-50 text-gray-600 rounded-md hover:bg-gray-100">
                                            <i class="fas fa-envelope mr-1"></i> Message
                                        </button>
                                    </div>
                                    <div class="text-sm font-medium text-gray-700">$1,800</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Recent Messages -->
                <div class="mb-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold text-gray-800">Recent Messages</h2>
                        <a href="#" class="text-sm text-blue-600 hover:underline">View All</a>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden">
                        <div class="divide-y divide-gray-100">
                            <!-- Message 1 -->
                            <div class="p-4 hover:bg-gray-50 cursor-pointer">
                                <div class="flex items-start">
                                    <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Client">
                                    <div class="flex-1">
                                        <div class="flex items-center justify-between">
                                            <h4 class="font-medium text-gray-800">Michael Brown</h4>
                                            <span class="text-xs text-gray-500">2 hours ago</span>
                                        </div>
                                        <p class="text-sm text-gray-600 mt-1">Hi Sarah, I've reviewed the latest mockups and they look great! Just a few minor tweaks needed...</p>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Message 2 -->
                            <div class="p-4 hover:bg-gray-50 cursor-pointer">
                                <div class="flex items-start">
                                    <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/women/68.jpg" alt="Client">
                                    <div class="flex-1">
                                        <div class="flex items-center justify-between">
                                            <h4 class="font-medium text-gray-800">Jessica Wilson</h4>
                                            <span class="text-xs text-gray-500">1 day ago</span>
                                        </div>
                                        <p class="text-sm text-gray-600 mt-1">When can we schedule a call to discuss the project timeline?</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Floating Action Button (Mobile) -->
                <div class="md:hidden fixed bottom-20 right-4">
                    <button class="w-14 h-14 flex items-center justify-center rounded-full bg-blue-600 text-white shadow-lg hover:bg-blue-700 transition">
                        <i class="fas fa-plus text-xl"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Project Details View (Hidden by default) -->
        <div id="project-details-view" class="hidden flex-1 overflow-y-auto p-4">
            <div class="max-w-4xl mx-auto">
                <!-- Back Button -->
                <button onclick="showView('dashboard-view')" class="flex items-center text-blue-600 mb-4">
                    <i class="fas fa-arrow-left mr-2"></i>
                    Back to Projects
                </button>
                
                <!-- Project Header -->
                <div class="flex items-start justify-between mb-6">
                    <div>
                        <h1 class="text-2xl font-bold text-gray-800">E-commerce Website Redesign</h1>
                        <p class="text-gray-600">Client: FashionHub Inc.</p>
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
                            <i class="fas fa-paper-plane mr-2"></i>
                            Submit Proposal
                        </button>
                        <button class="p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-md">
                            <i class="fas fa-ellipsis-v"></i>
                        </button>
                    </div>
                </div>
                
                <!-- Project Status -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <div class="flex flex-wrap items-center justify-between">
                        <div class="mb-4 md:mb-0">
                            <h3 class="font-medium text-gray-800 mb-1">Project Status</h3>
                            <div class="flex items-center">
                                <span class="px-3 py-1 text-sm font-medium rounded-full bg-green-100 text-green-800">In Progress</span>
                                <span class="ml-2 text-sm text-gray-600">Iteration 2/4</span>
                            </div>
                        </div>
                        <div class="mb-4 md:mb-0">
                            <h3 class="font-medium text-gray-800 mb-1">Budget</h3>
                            <p class="text-gray-700">$2,500 ($1,000 paid)</p>
                        </div>
                        <div>
                            <h3 class="font-medium text-gray-800 mb-1">Timeline</h3>
                            <p class="text-gray-700">May 15 - Jun 30, 2023</p>
                        </div>
                    </div>
                </div>
                
                <!-- Project Progress -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Project Progress</h3>
                    <div class="mb-3">
                        <div class="flex items-center justify-between text-sm mb-1">
                            <span class="text-gray-600">Overall Completion</span>
                            <span class="font-medium">45%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2.5">
                            <div class="bg-blue-600 h-2.5 rounded-full" style="width: 45%"></div>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-5 gap-2 text-center text-xs mt-4">
                        <div class="progress-step active">
                            <div class="w-10 h-10 mx-auto bg-blue-600 rounded-full flex items-center justify-center text-white">
                                <i class="fas fa-check"></i>
                            </div>
                            <p class="mt-2 font-medium">Proposal</p>
                        </div>
                        <div class="progress-step active">
                            <div class="w-10 h-10 mx-auto bg-blue-600 rounded-full flex items-center justify-center text-white">
                                <i class="fas fa-check"></i>
                            </div>
                            <p class="mt-2 font-medium">Design</p>
                        </div>
                        <div class="progress-step">
                            <div class="w-10 h-10 mx-auto bg-gray-200 rounded-full flex items-center justify-center text-gray-600">
                                3
                            </div>
                            <p class="mt-2 font-medium">Development</p>
                        </div>
                        <div class="progress-step">
                            <div class="w-10 h-10 mx-auto bg-gray-200 rounded-full flex items-center justify-center text-gray-600">
                                4
                            </div>
                            <p class="mt-2 font-medium">Testing</p>
                        </div>
                        <div class="progress-step">
                            <div class="w-10 h-10 mx-auto bg-gray-200 rounded-full flex items-center justify-center text-gray-600">
                                5
                            </div>
                            <p class="mt-2 font-medium">Delivery</p>
                        </div>
                    </div>
                </div>
                
                <!-- Project Scope -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="font-medium text-gray-800">Project Scope</h3>
                        <button class="text-sm text-blue-600 hover:underline">Edit Scope</button>
                    </div>
                    
                    <div class="space-y-3">
                        <!-- Scope Item 1 -->
                        <div class="flex items-center justify-between p-3 bg-gray-50 rounded-md">
                            <div class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                <span class="ml-3 text-gray-700">Homepage Design</span>
                            </div>
                            <span class="text-sm font-medium text-gray-700">$500</span>
                        </div>
                        
                        <!-- Scope Item 2 -->
                        <div class="flex items-center justify-between p-3 bg-gray-50 rounded-md">
                            <div class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                <span class="ml-3 text-gray-700">Product Listing Page</span>
                            </div>
                            <span class="text-sm font-medium text-gray-700">$600</span>
                        </div>
                        
                        <!-- Scope Item 3 -->
                        <div class="flex items-center justify-between p-3 bg-gray-50 rounded-md">
                            <div class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded">
                                <span class="ml-3 text-gray-700">Checkout Flow</span>
                            </div>
                            <span class="text-sm font-medium text-gray-700">$800</span>
                        </div>
                        
                        <!-- Scope Item 4 -->
                        <div class="flex items-center justify-between p-3 bg-gray-50 rounded-md">
                            <div class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded">
                                <span class="ml-3 text-gray-700">Mobile Responsive</span>
                            </div>
                            <span class="text-sm font-medium text-gray-700">$600</span>
                        </div>
                    </div>
                    
                    <div class="mt-4 pt-4 border-t border-gray-200">
                        <div class="flex items-center justify-between">
                            <span class="font-medium text-gray-800">Total</span>
                            <span class="font-medium text-gray-800">$2,500</span>
                        </div>
                    </div>
                </div>
                
                <!-- Recent Iterations -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="font-medium text-gray-800">Recent Iterations</h3>
                        <button class="text-sm text-blue-600 hover:underline">View All</button>
                    </div>
                    
                    <div class="space-y-4">
                        <!-- Iteration 1 -->
                        <div class="p-3 border border-gray-200 rounded-md hover:border-blue-200 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start justify-between">
                                <div>
                                    <h4 class="font-medium text-gray-800">Design Mockups v2</h4>
                                    <p class="text-sm text-gray-600">Submitted: May 28, 2023</p>
                                </div>
                                <span class="px-2 py-1 text-xs font-medium rounded-full bg-green-100 text-green-800">Approved</span>
                            </div>
                            <div class="mt-2 flex items-center text-sm text-gray-600">
                                <i class="fas fa-file-image mr-2"></i>
                                <span>3 files attached</span>
                            </div>
                        </div>
                        
                        <!-- Iteration 2 -->
                        <div class="p-3 border border-gray-200 rounded-md hover:border-blue-200 hover:bg-blue-50 cursor-pointer">
                            <div class="flex items-start justify-between">
                                <div>
                                    <h4 class="font-medium text-gray-800">Design Mockups v1</h4>
                                    <p class="text-sm text-gray-600">Submitted: May 20, 2023</p>
                                </div>
                                <span class="px-2 py-1 text-xs font-medium rounded-full bg-yellow-100 text-yellow-800">Feedback</span>
                            </div>
                            <div class="mt-2 flex items-center text-sm text-gray-600">
                                <i class="fas fa-file-image mr-2"></i>
                                <span>2 files attached</span>
                            </div>
                        </div>
                    </div>
                    
                    <button class="w-full mt-4 px-4 py-2 border-2 border-dashed border-gray-300 rounded-md text-gray-500 hover:text-gray-700 hover:border-gray-400 transition">
                        <i class="fas fa-plus mr-2"></i>
                        Submit New Iteration
                    </button>
                </div>
                
                <!-- Project Messages -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4">
                    <h3 class="font-medium text-gray-800 mb-4">Project Messages</h3>
                    
                    <div class="space-y-4 mb-4 max-h-96 overflow-y-auto scrollbar-hide">
                        <!-- Message from Client -->
                        <div class="flex items-start">
                            <img class="w-8 h-8 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Client">
                            <div class="message-bubble bg-gray-100 rounded-lg p-3">
                                <div class="flex items-center justify-between mb-1">
                                    <span class="text-sm font-medium text-gray-800">Michael Brown</span>
                                    <span class="text-xs text-gray-500">2 hours ago</span>
                                </div>
                                <p class="text-sm text-gray-700">Hi Sarah, I've reviewed the latest mockups and they look great! Just a few minor tweaks needed on the product page layout.</p>
                            </div>
                        </div>
                        
                        <!-- Message from You -->
                        <div class="flex items-start justify-end">
                            <div class="message-bubble bg-blue-100 rounded-lg p-3">
                                <div class="flex items-center justify-between mb-1">
                                    <span class="text-sm font-medium text-gray-800">You</span>
                                    <span class="text-xs text-gray-500">1 hour ago</span>
                                </div>
                                <p class="text-sm text-gray-700">Thanks Michael! I'll make those changes and send over the updated files by tomorrow.</p>
                            </div>
                            <img class="w-8 h-8 rounded-full ml-3" src="https://randomuser.me/api/portraits/women/44.jpg" alt="You">
                        </div>
                    </div>
                    
                    <div class="border-t border-gray-200 pt-4">
                        <div class="flex">
                            <input type="text" placeholder="Type your message..." class="flex-1 px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                            <button class="px-4 py-2 bg-blue-600 text-white rounded-r-md hover:bg-blue-700">
                                <i class="fas fa-paper-plane"></i>
                            </button>
                        </div>
                        <div class="mt-2 flex items-center">
                            <button class="p-2 text-gray-500 hover:text-gray-700">
                                <i class="fas fa-paperclip"></i>
                            </button>
                            <button class="p-2 text-gray-500 hover:text-gray-700">
                                <i class="fas fa-image"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Proposal Creation View (Hidden by default) -->
        <div id="proposal-creation-view" class="hidden flex-1 overflow-y-auto p-4">
            <div class="max-w-4xl mx-auto">
                <!-- Back Button -->
                <button onclick="showView('dashboard-view')" class="flex items-center text-blue-600 mb-4">
                    <i class="fas fa-arrow-left mr-2"></i>
                    Back to Projects
                </button>
                
                <!-- Proposal Header -->
                <div class="mb-6">
                    <h1 class="text-2xl font-bold text-gray-800">Create New Proposal</h1>
                    <p class="text-gray-600">For project: E-commerce Website Redesign</p>
                </div>
                
                <!-- Client Info -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Client Information</h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Client Name</label>
                            <input type="text" value="FashionHub Inc." class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" readonly>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Contact Email</label>
                            <input type="email" value="contact@fashionhub.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" readonly>
                        </div>
                    </div>
                </div>
                
                <!-- Proposal Scope -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <div class="flex items-center justify-between mb-3">
                        <h3 class="font-medium text-gray-800">Project Scope</h3>
                        <button class="text-sm text-blue-600 hover:underline">Add Custom Item</button>
                    </div>
                    
                    <div class="space-y-3 mb-4">
                        <!-- Scope Item 1 -->
                        <div class="flex items-start p-3 bg-gray-50 rounded-md">
                            <input type="checkbox" class="mt-1 h-4 w-4 text-blue-600 rounded" checked>
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <span class="font-medium text-gray-800">Homepage Design</span>
                                    <span class="text-sm font-medium text-gray-700">$500</span>
                                </div>
                                <p class="text-sm text-gray-600 mt-1">Complete redesign of the homepage including hero banner, featured products section, and navigation menu.</p>
                                <div class="mt-2 flex items-center">
                                    <span class="text-xs text-gray-500 mr-3">Adjust price:</span>
                                    <button class="w-6 h-6 flex items-center justify-center border border-gray-300 rounded-md bg-white text-gray-600 hover:bg-gray-50">-</button>
                                    <input type="text" value="500" class="w-16 mx-2 px-2 py-1 border border-gray-300 rounded-md text-center">
                                    <button class="w-6 h-6 flex items-center justify-center border border-gray-300 rounded-md bg-white text-gray-600 hover:bg-gray-50">+</button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Scope Item 2 -->
                        <div class="flex items-start p-3 bg-gray-50 rounded-md">
                            <input type="checkbox" class="mt-1 h-4 w-4 text-blue-600 rounded" checked>
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <span class="font-medium text-gray-800">Product Listing Page</span>
                                    <span class="text-sm font-medium text-gray-700">$600</span>
                                </div>
                                <p class="text-sm text-gray-600 mt-1">Design of category pages with product filtering, sorting options, and grid/list view toggles.</p>
                                <div class="mt-2 flex items-center">
                                    <span class="text-xs text-gray-500 mr-3">Adjust price:</span>
                                    <button class="w-6 h-6 flex items-center justify-center border border-gray-300 rounded-md bg-white text-gray-600 hover:bg-gray-50">-</button>
                                    <input type="text" value="600" class="w-16 mx-2 px-2 py-1 border border-gray-300 rounded-md text-center">
                                    <button class="w-6 h-6 flex items-center justify-center border border-gray-300 rounded-md bg-white text-gray-600 hover:bg-gray-50">+</button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Scope Item 3 -->
                        <div class="flex items-start p-3 bg-gray-50 rounded-md">
                            <input type="checkbox" class="mt-1 h-4 w-4 text-blue-600 rounded">
                            <div class="ml-3 flex-1">
                                <div class="flex items-center justify-between">
                                    <span class="font-medium text-gray-800">Checkout Flow</span>
                                    <span class="text-sm font-medium text-gray-700">$800</span>
                                </div>
                                <p class="text-sm text-gray-600 mt-1">Multi-step checkout process with cart review, shipping options, payment methods, and order confirmation.</p>
                                <div class="mt-2 flex items-center">
                                    <span class="text-xs text-gray-500 mr-3">Adjust price:</span>
                                    <button class="w-6 h-6 flex items-center justify-center border border-gray-300 rounded-md bg-white text-gray-600 hover:bg-gray-50">-</button>
                                    <input type="text" value="800" class="w-16 mx-2 px-2 py-1 border border-gray-300 rounded-md text-center">
                                    <button class="w-6 h-6 flex items-center justify-center border border-gray-300 rounded-md bg-white text-gray-600 hover:bg-gray-50">+</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-4 pt-4 border-t border-gray-200">
                        <div class="flex items-center justify-between mb-2">
                            <span class="text-gray-600">Subtotal</span>
                            <span class="font-medium text-gray-800">$1,900</span>
                        </div>
                        <div class="flex items-center justify-between mb-2">
                            <span class="text-gray-600">Tax (10%)</span>
                            <span class="font-medium text-gray-800">$190</span>
                        </div>
                        <div class="flex items-center justify-between text-lg font-bold">
                            <span class="text-gray-800">Total</span>
                            <span class="text-blue-600">$2,090</span>
                        </div>
                    </div>
                </div>
                
                <!-- Payment Terms -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Payment Terms</h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Payment Schedule</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                <option>50% upfront, 50% on delivery</option>
                                <option>30% upfront, 70% on delivery</option>
                                <option>100% on delivery</option>
                                <option>Custom</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Payment Method</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                <option>Bank Transfer</option>
                                <option>PayPal</option>
                                <option>Credit Card</option>
                                <option>Other</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="mt-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Project Timeline</label>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                            <div>
                                <label class="block text-xs text-gray-500 mb-1">Start Date</label>
                                <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                            <div>
                                <label class="block text-xs text-gray-500 mb-1">Delivery Date</label>
                                <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Proposal Message -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Proposal Message</h3>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Subject</label>
                        <input type="text" value="Proposal for E-commerce Website Redesign" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Message</label>
                        <div class="rich-text-editor" contenteditable="true">
                            <p>Dear Michael,</p>
                            <p class="mt-2">Thank you for the opportunity to work on your e-commerce website redesign. I've carefully reviewed your requirements and prepared this proposal outlining the scope of work, timeline, and budget.</p>
                            <p class="mt-2">Please review the details below and let me know if you have any questions or would like to discuss any adjustments.</p>
                            <p class="mt-2">Looking forward to your feedback!</p>
                            <p class="mt-2">Best regards,<br>Sarah Johnson</p>
                        </div>
                    </div>
                    
                    <div class="mt-4">
                        <label class="block text-sm font-medium text-gray-700 mb-2">Attachments</label>
                        <div class="file-upload">
                            <button class="px-4 py-2 bg-gray-100 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-200">
                                <i class="fas fa-paperclip mr-2"></i>
                                Add Files
                            </button>
                            <input type="file" multiple>
                        </div>
                        <div class="mt-2 text-sm text-gray-500">You can attach design mockups, contracts, or other relevant files</div>
                    </div>
                </div>
                
                <!-- Submit Proposal -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4">
                    <h3 class="font-medium text-gray-800 mb-3">Ready to Send</h3>
                    
                    <div class="flex flex-col md:flex-row md:items-center md:justify-between">
                        <div class="mb-4 md:mb-0">
                            <div class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                <span class="ml-2 text-sm text-gray-700">Send a copy to my email</span>
                            </div>
                            <div class="flex items-center mt-2">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded" checked>
                                <span class="ml-2 text-sm text-gray-700">Request digital signature</span>
                            </div>
                        </div>
                        <div>
                            <button class="w-full md:w-auto px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
                                <i class="fas fa-paper-plane mr-2"></i>
                                Send Proposal
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Iteration Submission View (Hidden by default) -->
        <div id="iteration-submission-view" class="hidden flex-1 overflow-y-auto p-4">
            <div class="max-w-4xl mx-auto">
                <!-- Back Button -->
                <button onclick="showView('project-details-view')" class="flex items-center text-blue-600 mb-4">
                    <i class="fas fa-arrow-left mr-2"></i>
                    Back to Project
                </button>
                
                <!-- Iteration Header -->
                <div class="mb-6">
                    <h1 class="text-2xl font-bold text-gray-800">Submit New Iteration</h1>
                    <p class="text-gray-600">For project: E-commerce Website Redesign</p>
                </div>
                
                <!-- Iteration Details -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Iteration Details</h3>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Title</label>
                        <input type="text" placeholder="e.g., Design Mockups v3" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
                        <textarea rows="4" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Describe what's included in this iteration and any important notes for the client..."></textarea>
                    </div>
                </div>
                
                <!-- Files Upload -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Files</h3>
                    
                    <div class="border-2 border-dashed border-gray-300 rounded-md p-6 text-center">
                        <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-3"></i>
                        <p class="text-gray-600 mb-2">Drag and drop files here or</p>
                        <div class="file-upload">
                            <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
                                <i class="fas fa-folder-open mr-2"></i>
                                Browse Files
                            </button>
                            <input type="file" multiple>
                        </div>
                        <p class="mt-3 text-sm text-gray-500">Supported formats: JPG, PNG, PDF, ZIP (Max 50MB each)</p>
                    </div>
                    
                    <div class="mt-4">
                        <h4 class="text-sm font-medium text-gray-700 mb-2">Uploaded Files</h4>
                        <div class="space-y-2">
                            <div class="flex items-center justify-between p-2 bg-gray-50 rounded-md">
                                <div class="flex items-center">
                                    <i class="fas fa-file-image text-blue-500 mr-3"></i>
                                    <span class="text-sm text-gray-700">mockup-homepage-v3.jpg</span>
                                </div>
                                <div class="flex items-center">
                                    <span class="text-xs text-gray-500 mr-3">2.4 MB</span>
                                    <button class="p-1 text-gray-400 hover:text-red-500">
                                        <i class="fas fa-times"></i>
                                    </button>
                                </div>
                            </div>
                            <div class="flex items-center justify-between p-2 bg-gray-50 rounded-md">
                                <div class="flex items-center">
                                    <i class="fas fa-file-image text-blue-500 mr-3"></i>
                                    <span class="text-sm text-gray-700">mockup-product-v3.jpg</span>
                                </div>
                                <div class="flex items-center">
                                    <span class="text-xs text-gray-500 mr-3">1.8 MB</span>
                                    <button class="p-1 text-gray-400 hover:text-red-500">
                                        <i class="fas fa-times"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Status Update -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Status Update</h3>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Current Status</label>
                        <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                            <option>Submitted for Review</option>
                            <option>In Progress</option>
                            <option>Pending Feedback</option>
                            <option>Completed</option>
                        </select>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Percent Complete</label>
                        <div class="flex items-center">
                            <input type="range" min="0" max="100" value="75" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
                            <span class="ml-3 text-sm font-medium text-gray-700">75%</span>
                        </div>
                    </div>
                </div>
                
                <!-- Submit Button -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4">
                    <button class="w-full px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
                        <i class="fas fa-check-circle mr-2"></i>
                        Submit Iteration
                    </button>
                </div>
            </div>
        </div>

        <!-- Messages View (Hidden by default) -->
        <div id="messages-view" class="hidden flex-1 overflow-y-auto">
            <div class="flex flex-col h-full">
                <!-- Messages Header -->
                <div class="flex items-center justify-between p-4 border-b border-gray-200 bg-white">
                    <div class="flex items-center">
                        <button onclick="showView('dashboard-view')" class="md:hidden mr-3 text-gray-500">
                            <i class="fas fa-arrow-left"></i>
                        </button>
                        <h2 class="text-lg font-semibold text-gray-800">Messages</h2>
                    </div>
                    <button class="p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-md">
                        <i class="fas fa-search"></i>
                    </button>
                </div>
                
                <!-- Messages List -->
                <div class="flex-1 overflow-y-auto bg-gray-50">
                    <!-- Message Thread 1 -->
                    <div class="p-4 border-b border-gray-200 bg-white hover:bg-gray-50 cursor-pointer">
                        <div class="flex items-start">
                            <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Client">
                            <div class="flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="font-medium text-gray-800">Michael Brown</h4>
                                    <span class="text-xs text-gray-500">2 hours ago</span>
                                </div>
                                <p class="text-sm text-gray-600 mt-1">Hi Sarah, I've reviewed the latest mockups and they look great! Just a few minor tweaks needed...</p>
                                <div class="mt-2 flex items-center text-xs text-gray-500">
                                    <span class="inline-block w-2 h-2 rounded-full bg-blue-500 mr-1"></span>
                                    <span>E-commerce Website Redesign</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Message Thread 2 -->
                    <div class="p-4 border-b border-gray-200 bg-white hover:bg-gray-50 cursor-pointer">
                        <div class="flex items-start">
                            <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/women/68.jpg" alt="Client">
                            <div class="flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="font-medium text-gray-800">Jessica Wilson</h4>
                                    <span class="text-xs text-gray-500">1 day ago</span>
                                </div>
                                <p class="text-sm text-gray-600 mt-1">When can we schedule a call to discuss the project timeline?</p>
                                <div class="mt-2 flex items-center text-xs text-gray-500">
                                    <span class="inline-block w-2 h-2 rounded-full bg-green-500 mr-1"></span>
                                    <span>Mobile App UI/UX</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Message Thread 3 -->
                    <div class="p-4 border-b border-gray-200 bg-white hover:bg-gray-50 cursor-pointer">
                        <div class="flex items-start">
                            <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/75.jpg" alt="Client">
                            <div class="flex-1">
                                <div class="flex items-center justify-between">
                                    <h4 class="font-medium text-gray-800">David Miller</h4>
                                    <span class="text-xs text-gray-500">3 days ago</span>
                                </div>
                                <p class="text-sm text-gray-600 mt-1">Thanks for sending over the proposal. I'll review it and get back to you by Friday.</p>
                                <div class="mt-2 flex items-center text-xs text-gray-500">
                                    <span class="inline-block w-2 h-2 rounded-full bg-purple-500 mr-1"></span>
                                    <span>Brand Identity Design</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- New Message Button -->
                <div class="p-4 bg-white border-t border-gray-200">
                    <button class="w-full px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
                        <i class="fas fa-plus mr-2"></i>
                        New Message
                    </button>
                </div>
            </div>
        </div>

        <!-- Review View (Hidden by default) -->
        <div id="review-view" class="hidden flex-1 overflow-y-auto p-4">
            <div class="max-w-4xl mx-auto">
                <!-- Back Button -->
                <button onclick="showView('project-details-view')" class="flex items-center text-blue-600 mb-4">
                    <i class="fas fa-arrow-left mr-2"></i>
                    Back to Project
                </button>
                
                <!-- Review Header -->
                <div class="mb-6">
                    <h1 class="text-2xl font-bold text-gray-800">Leave a Review</h1>
                    <p class="text-gray-600">For project: E-commerce Website Redesign</p>
                </div>
                
                <!-- Iteration Preview -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Iteration Preview</h3>
                    
                    <div class="grid grid-cols-2 gap-4">
                        <div class="border border-gray-200 rounded-md overflow-hidden">
                            <img src="https://via.placeholder.com/300x200" alt="Mockup" class="w-full h-auto">
                        </div>
                        <div class="border border-gray-200 rounded-md overflow-hidden">
                            <img src="https://via.placeholder.com/300x200" alt="Mockup" class="w-full h-auto">
                        </div>
                    </div>
                    
                    <div class="mt-4">
                        <h4 class="text-sm font-medium text-gray-700 mb-1">Iteration Notes</h4>
                        <p class="text-sm text-gray-600">Final design mockups for homepage and product pages including all requested changes from previous feedback.</p>
                    </div>
                </div>
                
                <!-- Rating -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Rating</h3>
                    
                    <div class="flex items-center justify-center space-x-2 mb-4">
                        <button class="text-3xl text-gray-300 hover:text-yellow-400 focus:outline-none">
                            <i class="fas fa-star"></i>
                        </button>
                        <button class="text-3xl text-gray-300 hover:text-yellow-400 focus:outline-none">
                            <i class="fas fa-star"></i>
                        </button>
                        <button class="text-3xl text-gray-300 hover:text-yellow-400 focus:outline-none">
                            <i class="fas fa-star"></i>
                        </button>
                        <button class="text-3xl text-gray-300 hover:text-yellow-400 focus:outline-none">
                            <i class="fas fa-star"></i>
                        </button>
                        <button class="text-3xl text-gray-300 hover:text-yellow-400 focus:outline-none">
                            <i class="fas fa-star"></i>
                        </button>
                    </div>
                    
                    <div class="text-center text-sm text-gray-600">Tap to rate from 1 (worst) to 5 (best)</div>
                </div>
                
                <!-- Feedback -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Feedback</h3>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Overall Experience</label>
                        <textarea rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="How was your experience working with this freelancer?"></textarea>
                    </div>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Work Quality</label>
                        <textarea rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="How would you rate the quality of the delivered work?"></textarea>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Communication</label>
                        <textarea rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="How was the communication throughout the project?"></textarea>
                    </div>
                </div>
                
                <!-- Would You Recommend? -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Would You Recommend This Freelancer?</h3>
                    
                    <div class="flex items-center space-x-6">
                        <div class="flex items-center">
                            <input type="radio" name="recommend" class="h-4 w-4 text-blue-600 focus:ring-blue-500">
                            <label class="ml-2 block text-sm text-gray-700">Yes</label>
                        </div>
                        <div class="flex items-center">
                            <input type="radio" name="recommend" class="h-4 w-4 text-blue-600 focus:ring-blue-500">
                            <label class="ml-2 block text-sm text-gray-700">No</label>
                        </div>
                    </div>
                </div>
                
                <!-- Submit Review -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4">
                    <button class="w-full px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
                        <i class="fas fa-check-circle mr-2"></i>
                        Submit Review
                    </button>
                </div>
            </div>
        </div>

        <!-- Time Tracking View (Hidden by default) -->
        <div id="time-tracking-view" class="hidden flex-1 overflow-y-auto p-4">
            <div class="max-w-4xl mx-auto">
                <!-- Header -->
                <div class="mb-6">
                    <h1 class="text-2xl font-bold text-gray-800">Time Tracking</h1>
                    <p class="text-gray-600">Track and log hours worked on your projects</p>
                </div>
                
                <!-- Current Timer -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-6 mb-6 text-center">
                    <h3 class="font-medium text-gray-800 mb-2">E-commerce Website Redesign</h3>
                    <div class="text-5xl font-mono font-bold text-gray-800 mb-6">02:45:18</div>
                    <div class="flex justify-center space-x-4">
                        <button class="px-6 py-3 bg-green-600 text-white rounded-md hover:bg-green-700 transition">
                            <i class="fas fa-play mr-2"></i>
                            Start
                        </button>
                        <button class="px-6 py-3 bg-red-600 text-white rounded-md hover:bg-red-700 transition">
                            <i class="fas fa-stop mr-2"></i>
                            Stop
                        </button>
                        <button class="px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
                            <i class="fas fa-plus mr-2"></i>
                            Log Time
                        </button>
                    </div>
                </div>
                
                <!-- Manual Time Entry -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
                    <h3 class="font-medium text-gray-800 mb-3">Log Manual Time</h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Project</label>
                            <select class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                <option>E-commerce Website Redesign</option>
                                <option>Mobile App UI/UX</option>
                                <option>Brand Identity Design</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Date</label>
                            <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Hours</label>
                            <input type="number" min="0" step="0.25" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Minutes</label>
                            <input type="number" min="0" max="59" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Rate ($/hr)</label>
                            <input type="number" min="0" step="5" value="50" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                        </div>
                    </div>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
                        <input type="text" placeholder="What did you work on?" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                    </div>
                    
                    <button class="w-full px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
                        <i class="fas fa-save mr-2"></i>
                        Save Time Entry
                    </button>
                </div>
                
                <!-- Time Logs -->
                <div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="font-medium text-gray-800">Time Logs</h3>
                        <div class="flex items-center space-x-2">
                            <select class="px-3 py-1 border border-gray-300 rounded-md shadow-sm text-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
                                <option>This Week</option>
                                <option>This Month</option>
                                <option>All Time</option>
                            </select>
                            <button class="p-1 text-gray-500 hover:text-gray-700">
                                <i class="fas fa-download"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
                                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                    <th scope="col" class="relative px-6 py-3"><span class="sr-only">Actions</span></th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 12, 2023</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">E-commerce Website</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2.5 hours</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$125.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">Billed</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
                                        <button class="text-red-600 hover:text-red-900">Delete</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 10, 2023</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">E-commerce Website</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3.0 hours</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$150.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">Billed</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
                                        <button class="text-red-600 hover:text-red-900">Delete</button>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 8, 2023</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Mobile App UI/UX</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1.75 hours</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$87.50</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">Pending</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                        <button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
                                        <button class="text-red-600 hover:text-red-900">Delete</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    
                    <div class="mt-4 flex items-center justify-between">
                        <div class="text-sm text-gray-500">Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">12</span> entries</div>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">Previous</button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-white bg-blue-600 hover:bg-blue-700">1</button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">2</button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">3</button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">Next</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Simple view switching for demo purposes
        function showView(viewId) {
            // Hide all views
            document.querySelectorAll('[id$="-view"]').forEach(view => {
                view.classList.add('hidden');
            });
            
            // Show the selected view
            document.getElementById(viewId).classList.remove('hidden');
        }

        // Demo interactions
        document.addEventListener('DOMContentLoaded', function() {
            // Make project cards clickable to show project details
            document.querySelectorAll('[onclick="showView(\'project-details-view\')"]').forEach(button => {
                button.addEventListener('click', function() {
                    showView('project-details-view');
                });
            });

            // Make message threads clickable to show messages view
            document.querySelectorAll('[onclick="showView(\'messages-view\')"]').forEach(button => {
                button.addEventListener('click', function() {
                    showView('messages-view');
                });
            });

            // Star rating interaction
            const stars = document.querySelectorAll('#review-view .fa-star');
            stars.forEach((star, index) => {
                star.addEventListener('click', function() {
                    // Reset all stars
                    stars.forEach(s => s.classList.remove('text-yellow-400'));
                    
                    // Fill stars up to the clicked one
                    for (let i = 0; i <= index; i++) {
                        stars[i].classList.add('text-yellow-400');
                        stars[i].classList.remove('text-gray-300');
                    }
                });
            });

            // File upload display
</html>