File size: 80,261 Bytes
093324b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Intelectus - Preparação para TEA/TSA</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>
        .progress-ring__circle {
            transition: stroke-dashoffset 0.35s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        .question-focus-mode {
            background-color: #f8fafc;
            min-height: 100vh;
        }
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <!-- Navigation -->
    <nav class="bg-blue-700 text-white shadow-lg">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fas fa-brain text-2xl"></i>
                <span class="text-xl font-bold">INTELECTUS</span>
            </div>
            <div class="flex items-center space-x-4">
                <button id="notificationBtn" class="relative">
                    <i class="fas fa-bell text-xl"></i>
                    <span class="notification-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
                </button>
                <button id="userMenuBtn">
                    <div class="h-8 w-8 rounded-full bg-blue-500 flex items-center justify-center">
                        <i class="fas fa-user"></i>
                    </div>
                </button>
            </div>
        </div>
    </nav>

    <!-- Notification Panel (hidden by default) -->
    <div id="notificationPanel" class="hidden absolute right-4 mt-2 w-72 bg-white rounded-md shadow-lg z-50 border border-gray-200">
        <div class="p-4 border-b border-gray-200">
            <div class="flex justify-between items-center">
                <h3 class="font-bold text-gray-800">Notificações</h3>
                <button class="text-blue-600 text-sm">Marcar todas como lidas</button>
            </div>
        </div>
        <div class="max-h-96 overflow-y-auto">
            <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer">
                <div class="flex items-start space-x-2">
                    <div class="bg-blue-100 p-2 rounded-full">
                        <i class="fas fa-question-circle text-blue-600"></i>
                    </div>
                    <div>
                        <p class="text-sm font-medium text-gray-800">Nova questão do dia disponível!</p>
                        <p class="text-xs text-gray-500">Há 2 horas</p>
                    </div>
                </div>
            </div>
            <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer">
                <div class="flex items-start space-x-2">
                    <div class="bg-green-100 p-2 rounded-full">
                        <i class="fas fa-trophy text-green-600"></i>
                    </div>
                    <div>
                        <p class="text-sm font-medium text-gray-800">Simulado mensal iniciado - participe!</p>
                        <p class="text-xs text-gray-500">Ontem</p>
                    </div>
                </div>
            </div>
            <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer">
                <div class="flex items-start space-x-2">
                    <div class="bg-yellow-100 p-2 rounded-full">
                        <i class="fas fa-chart-line text-yellow-600"></i>
                    </div>
                    <div>
                        <p class="text-sm font-medium text-gray-800">Seu desempenho melhorou 12% este mês</p>
                        <p class="text-xs text-gray-500">2 dias atrás</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="p-3 text-center">
            <a href="#" class="text-blue-600 text-sm font-medium">Ver todas</a>
        </div>
    </div>

    <!-- User Menu (hidden by default) -->
    <div id="userMenu" class="hidden absolute right-4 mt-2 w-56 bg-white rounded-md shadow-lg z-50 border border-gray-200">
        <div class="p-4 border-b border-gray-200">
            <div class="flex items-center space-x-3">
                <div class="h-10 w-10 rounded-full bg-blue-500 flex items-center justify-center text-white">
                    <i class="fas fa-user"></i>
                </div>
                <div>
                    <p class="font-medium text-gray-800">Dr. Fulano</p>
                    <p class="text-xs text-gray-500">TEA/TSA - SP</p>
                </div>
            </div>
        </div>
        <div class="py-1">
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Minha Conta</a>
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Meu Plano</a>
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Configurações</a>
        </div>
        <div class="py-1 border-t border-gray-200">
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sair</a>
        </div>
    </div>

    <!-- Main Content -->
    <div class="container mx-auto px-4 py-6">
        <!-- Tabs Navigation -->
        <div class="flex overflow-x-auto border-b border-gray-200 mb-6">
            <button class="tab-btn px-4 py-2 font-medium text-sm border-b-2 border-blue-600 text-blue-600" data-tab="home">Início</button>
            <button class="tab-btn px-4 py-2 font-medium text-sm text-gray-500 hover:text-blue-600" data-tab="questions">Banco de Questões</button>
            <button class="tab-btn px-4 py-2 font-medium text-sm text-gray-500 hover:text-blue-600" data-tab="custom-test">Simulado Personalizado</button>
            <button class="tab-btn px-4 py-2 font-medium text-sm text-gray-500 hover:text-blue-600" data-tab="monthly-test">Simulado Mensal</button>
            <button class="tab-btn px-4 py-2 font-medium text-sm text-gray-500 hover:text-blue-600" data-tab="user-area">Área do Usuário</button>
        </div>

        <!-- Tab Contents -->
        <div id="tab-contents">
            <!-- Home Tab -->
            <div id="home" class="tab-content active">
                <div class="bg-white rounded-lg shadow-md p-6 mb-6">
                    <div class="flex items-center justify-between mb-6">
                        <div>
                            <h1 class="text-2xl font-bold text-gray-800">Olá, <span class="text-blue-600">Dr. Fulano</span></h1>
                            <p class="text-gray-600">TEA/TSA - São Paulo</p>
                        </div>
                        <div class="flex items-center space-x-2">
                            <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">Premium</span>
                            <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded">Ativo</span>
                        </div>
                    </div>

                    <!-- Progress Stats -->
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
                        <div class="bg-blue-50 rounded-lg p-4 flex items-center">
                            <div class="relative w-16 h-16 mr-4">
                                <svg class="w-full h-full" viewBox="0 0 36 36">
                                    <path
                                        d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831"
                                        fill="none"
                                        stroke="#e6f2ff"
                                        stroke-width="3"
                                    />
                                    <path
                                        class="progress-ring__circle"
                                        d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831"
                                        fill="none"
                                        stroke="#3b82f6"
                                        stroke-width="3"
                                        stroke-dasharray="100, 100"
                                        stroke-dashoffset="25"
                                    />
                                </svg>
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <span class="text-blue-600 font-bold">75%</span>
                                </div>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Taxa de acerto</p>
                                <p class="text-lg font-bold text-gray-800">75%</p>
                            </div>
                        </div>
                        <div class="bg-purple-50 rounded-lg p-4 flex items-center">
                            <div class="relative w-16 h-16 mr-4">
                                <svg class="w-full h-full" viewBox="0 0 36 36">
                                    <path
                                        d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831"
                                        fill="none"
                                        stroke="#f3e8ff"
                                        stroke-width="3"
                                    />
                                    <path
                                        class="progress-ring__circle"
                                        d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831"
                                        fill="none"
                                        stroke="#8b5cf6"
                                        stroke-width="3"
                                        stroke-dasharray="100, 100"
                                        stroke-dashoffset="60"
                                    />
                                </svg>
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <span class="text-purple-600 font-bold">40%</span>
                                </div>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Questões respondidas</p>
                                <p class="text-lg font-bold text-gray-800">1,240/3,100</p>
                            </div>
                        </div>
                        <div class="bg-green-50 rounded-lg p-4 flex items-center">
                            <div class="relative w-16 h-16 mr-4">
                                <svg class="w-full h-full" viewBox="0 0 36 36">
                                    <path
                                        d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831"
                                        fill="none"
                                        stroke="#ecfdf5"
                                        stroke-width="3"
                                    />
                                    <path
                                        class="progress-ring__circle"
                                        d="M18 2.0845
                                        a 15.9155 15.9155 0 0 1 0 31.831
                                        a 15.9155 15.9155 0 0 1 0 -31.831"
                                        fill="none"
                                        stroke="#10b981"
                                        stroke-width="3"
                                        stroke-dasharray="100, 100"
                                        stroke-dashoffset="75"
                                    />
                                </svg>
                                <div class="absolute inset-0 flex items-center justify-center">
                                    <span class="text-green-600 font-bold">25%</span>
                                </div>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Tempo de estudo</p>
                                <p class="text-lg font-bold text-gray-800">42h</p>
                            </div>
                        </div>
                    </div>

                    <!-- Quick Access Buttons -->
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-8">
                        <button class="bg-white border border-blue-200 rounded-lg p-4 flex items-center justify-between hover:bg-blue-50 transition-colors shadow-sm">
                            <div class="flex items-center">
                                <div class="bg-blue-100 p-3 rounded-full mr-4">
                                    <i class="fas fa-question-circle text-blue-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold text-gray-800">Questão do Dia</h3>
                                    <p class="text-sm text-gray-500">Responda a questão diária</p>
                                </div>
                            </div>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </button>
                        <button class="bg-white border border-purple-200 rounded-lg p-4 flex items-center justify-between hover:bg-purple-50 transition-colors shadow-sm">
                            <div class="flex items-center">
                                <div class="bg-purple-100 p-3 rounded-full mr-4">
                                    <i class="fas fa-bolt text-purple-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold text-gray-800">Simulado Rápido</h3>
                                    <p class="text-sm text-gray-500">10 questões em 20 minutos</p>
                                </div>
                            </div>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </button>
                        <button class="bg-white border border-green-200 rounded-lg p-4 flex items-center justify-between hover:bg-green-50 transition-colors shadow-sm">
                            <div class="flex items-center">
                                <div class="bg-green-100 p-3 rounded-full mr-4">
                                    <i class="fas fa-chart-bar text-green-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold text-gray-800">Meu Desempenho</h3>
                                    <p class="text-sm text-gray-500">Veja suas estatísticas</p>
                                </div>
                            </div>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </button>
                        <button class="bg-white border border-yellow-200 rounded-lg p-4 flex items-center justify-between hover:bg-yellow-50 transition-colors shadow-sm">
                            <div class="flex items-center">
                                <div class="bg-yellow-100 p-3 rounded-full mr-4">
                                    <i class="fas fa-trophy text-yellow-600"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold text-gray-800">Simulado Mensal</h3>
                                    <p class="text-sm text-gray-500">Participe do ranking</p>
                                </div>
                            </div>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </button>
                    </div>

                    <!-- Performance Section -->
                    <div class="mb-8">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="text-xl font-bold text-gray-800">Meu Desempenho</h2>
                            <a href="#" class="text-blue-600 text-sm font-medium">Ver detalhes</a>
                        </div>
                        
                        <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                            <!-- Bar Chart (simplified) -->
                            <div class="h-64 flex items-end space-x-2 mb-6">
                                <div class="flex-1 flex flex-col items-center">
                                    <div class="w-full bg-blue-200 rounded-t hover:bg-blue-300 transition-colors" style="height: 60%;"></div>
                                    <span class="text-xs text-gray-500 mt-1">Cardio</span>
                                </div>
                                <div class="flex-1 flex flex-col items-center">
                                    <div class="w-full bg-blue-300 rounded-t hover:bg-blue-400 transition-colors" style="height: 75%;"></div>
                                    <span class="text-xs text-gray-500 mt-1">Neuro</span>
                                </div>
                                <div class="flex-1 flex flex-col items-center">
                                    <div class="w-full bg-blue-400 rounded-t hover:bg-blue-500 transition-colors" style="height: 45%;"></div>
                                    <span class="text-xs text-gray-500 mt-1">Pediátrica</span>
                                </div>
                                <div class="flex-1 flex flex-col items-center">
                                    <div class="w-full bg-blue-500 rounded-t hover:bg-blue-600 transition-colors" style="height: 80%;"></div>
                                    <span class="text-xs text-gray-500 mt-1">Obstétrica</span>
                                </div>
                                <div class="flex-1 flex flex-col items-center">
                                    <div class="w-full bg-blue-600 rounded-t hover:bg-blue-700 transition-colors" style="height: 65%;"></div>
                                    <span class="text-xs text-gray-500 mt-1">Trauma</span>
                                </div>
                            </div>
                            
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                <div class="bg-blue-50 rounded-lg p-4">
                                    <div class="flex justify-between items-center mb-2">
                                        <h3 class="font-medium text-gray-800">Evolução Mensal</h3>
                                        <span class="text-green-600 text-sm font-medium">+12%</span>
                                    </div>
                                    <div class="h-32 bg-white rounded border border-gray-200 p-2">
                                        <!-- Simplified line chart -->
                                        <div class="relative h-full w-full">
                                            <div class="absolute bottom-0 left-0 right-0 h-px bg-gray-200"></div>
                                            <div class="absolute left-0 right-0 flex items-end h-full space-x-1">
                                                <div class="flex-1 bg-blue-200 rounded-t" style="height: 30%;"></div>
                                                <div class="flex-1 bg-blue-300 rounded-t" style="height: 45%;"></div>
                                                <div class="flex-1 bg-blue-400 rounded-t" style="height: 60%;"></div>
                                                <div class="flex-1 bg-blue-500 rounded-t" style="height: 75%;"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="bg-purple-50 rounded-lg p-4">
                                    <div class="flex justify-between items-center mb-2">
                                        <h3 class="font-medium text-gray-800">Próximo Simulado</h3>
                                        <span class="text-blue-600 text-sm font-medium">15/07</span>
                                    </div>
                                    <div class="h-32 bg-white rounded border border-gray-200 p-4 flex flex-col justify-center items-center">
                                        <div class="text-4xl font-bold text-purple-600 mb-2">5</div>
                                        <p class="text-sm text-gray-600">dias restantes</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Questions Bank Tab -->
            <div id="questions" class="tab-content">
                <div class="bg-white rounded-lg shadow-md p-6 mb-6">
                    <h2 class="text-xl font-bold text-gray-800 mb-6">Banco de Questões</h2>
                    
                    <!-- Filters -->
                    <div class="bg-gray-50 rounded-lg p-4 mb-6">
                        <h3 class="font-medium text-gray-700 mb-3">Filtros</h3>
                        
                        <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-4">
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Base de Dados</label>
                                <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    <option>SBA (2023-2024)</option>
                                    <option disabled>TSA (Premium)</option>
                                    <option disabled>TEA (Premium)</option>
                                    <option disabled>Prova Anual (Premium)</option>
                                    <option disabled>Intelectus (Premium)</option>
                                </select>
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Tipo de Questão</label>
                                <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    <option>Múltipla escolha</option>
                                    <option disabled>V ou F (Premium)</option>
                                </select>
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Tema</label>
                                <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    <option>Todos</option>
                                    <option>Cardiologia</option>
                                    <option>Neuroanestesia</option>
                                    <option>Anestesia Pediátrica</option>
                                    <option>Anestesia Obstétrica</option>
                                    <option>Trauma</option>
                                </select>
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Ano</label>
                                <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    <option>Todos</option>
                                    <option>2024</option>
                                    <option>2023</option>
                                    <option disabled>2022 (Premium)</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Quantidade</label>
                                <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    <option>10</option>
                                    <option>20</option>
                                    <option>30</option>
                                    <option>50</option>
                                    <option>100</option>
                                </select>
                            </div>
                            <div class="flex items-end">
                                <div class="flex items-center mr-4">
                                    <input id="unanswered" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded">
                                    <label for="unanswered" class="ml-2 text-sm text-gray-700">Não respondidas</label>
                                </div>
                                <div class="flex items-center">
                                    <input id="wrong" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded">
                                    <label for="wrong" class="ml-2 text-sm text-gray-700">Erradas</label>
                                </div>
                            </div>
                            <div class="flex items-end justify-end">
                                <button class="bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition-colors">
                                    Aplicar Filtros
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Results -->
                    <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-medium text-gray-800">Resultados: <span class="text-blue-600">124</span> questões encontradas</h3>
                            <button class="bg-green-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-green-700 transition-colors">
                                Iniciar Simulado
                            </button>
                        </div>
                        
                        <!-- Question List -->
                        <div class="space-y-4">
                            <div class="border border-gray-200 rounded-lg p-4 hover:bg-gray-50 transition-colors">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-0.5 rounded">Cardiologia</span>
                                        <span class="bg-gray-100 text-gray-800 text-xs font-medium px-2 py-0.5 rounded ml-2">2024</span>
                                    </div>
                                    <button class="text-gray-400 hover:text-yellow-500">
                                        <i class="far fa-star"></i>
                                    </button>
                                </div>
                                <p class="mt-2 text-gray-800">Qual das seguintes opções é a mais apropriada para o manejo da hipertensão arterial no perioperatório de cirurgia cardíaca?</p>
                            </div>
                            
                            <div class="border border-gray-200 rounded-lg p-4 hover:bg-gray-50 transition-colors">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-0.5 rounded">Neuroanestesia</span>
                                        <span class="bg-gray-100 text-gray-800 text-xs font-medium px-2 py-0.5 rounded ml-2">2023</span>
                                    </div>
                                    <button class="text-gray-400 hover:text-yellow-500">
                                        <i class="far fa-star"></i>
                                    </button>
                                </div>
                                <p class="mt-2 text-gray-800">Em relação ao monitoramento da pressão intracraniana durante neurocirurgia, qual das seguintes afirmações é correta?</p>
                            </div>
                            
                            <div class="border border-gray-200 rounded-lg p-4 hover:bg-gray-50 transition-colors">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-0.5 rounded">Pediatria</span>
                                        <span class="bg-gray-100 text-gray-800 text-xs font-medium px-2 py-0.5 rounded ml-2">2024</span>
                                    </div>
                                    <button class="text-gray-400 hover:text-yellow-500">
                                        <i class="far fa-star"></i>
                                    </button>
                                </div>
                                <p class="mt-2 text-gray-800">Qual é a dose recomendada de propofol para indução anestésica em crianças saudáveis com idade entre 3-12 anos?</p>
                            </div>
                        </div>
                        
                        <div class="mt-6 flex justify-center">
                            <nav class="inline-flex rounded-md shadow">
                                <a href="#" class="px-3 py-1 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">Anterior</a>
                                <a href="#" class="px-3 py-1 border-t border-b border-gray-300 bg-white text-sm font-medium text-blue-600 hover:bg-blue-50">1</a>
                                <a href="#" class="px-3 py-1 border-t border-b border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">2</a>
                                <a href="#" class="px-3 py-1 border-t border-b border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">3</a>
                                <a href="#" class="px-3 py-1 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">Próximo</a>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Custom Test Tab -->
            <div id="custom-test" class="tab-content">
                <div class="bg-white rounded-lg shadow-md p-6 mb-6">
                    <h2 class="text-xl font-bold text-gray-800 mb-6">Simulado Personalizado</h2>
                    
                    <div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-6">
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <i class="fas fa-exclamation-circle text-yellow-500 mt-1"></i>
                            </div>
                            <div class="ml-3">
                                <h3 class="text-sm font-medium text-yellow-800">Recurso Premium</h3>
                                <div class="mt-2 text-sm text-yellow-700">
                                    <p>Para acessar simulados personalizados com questões inéditas e comentários, assine o plano Premium.</p>
                                </div>
                                <div class="mt-2">
                                    <button class="bg-yellow-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-yellow-700 transition-colors">
                                        Assinar Premium
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div class="md:col-span-2">
                            <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm mb-6">
                                <h3 class="font-medium text-gray-800 mb-4">Configurações do Simulado</h3>
                                
                                <div class="mb-4">
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Banco de Questões</label>
                                    <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" disabled>
                                        <option>Intelectus (Premium)</option>
                                        <option>TSA (Premium)</option>
                                        <option>TEA (Premium)</option>
                                        <option>Prova Anual (Premium)</option>
                                        <option>Trimestral V/F (Premium)</option>
                                    </select>
                                </div>
                                
                                <div class="mb-4">
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Número de Questões</label>
                                    <input type="number" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" placeholder="Ex: 50" disabled>
                                </div>
                                
                                <div class="mb-4">
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Tempo Total (minutos)</label>
                                    <input type="number" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" placeholder="Calculado automaticamente" disabled>
                                </div>
                                
                                <div class="mb-4">
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Temas</label>
                                    <div class="grid grid-cols-2 gap-2">
                                        <div class="flex items-center">
                                            <input id="cardio" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                            <label for="cardio" class="ml-2 text-sm text-gray-700">Cardiologia</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input id="neuro" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                            <label for="neuro" class="ml-2 text-sm text-gray-700">Neuroanestesia</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input id="ped" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                            <label for="ped" class="ml-2 text-sm text-gray-700">Pediatria</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input id="obst" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                            <label for="obst" class="ml-2 text-sm text-gray-700">Obstétrica</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input id="trauma" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                            <label for="trauma" class="ml-2 text-sm text-gray-700">Trauma</label>
                                        </div>
                                        <div class="flex items-center">
                                            <input id="geral" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                            <label for="geral" class="ml-2 text-sm text-gray-700">Geral</label>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="flex items-center">
                                    <input id="comments" type="checkbox" class="w-4 h-4 text-blue-600 border-gray-300 rounded" disabled>
                                    <label for="comments" class="ml-2 text-sm text-gray-700">Mostrar comentários ao final (Premium)</label>
                                </div>
                            </div>
                        </div>
                        
                        <div>
                            <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <h3 class="font-medium text-gray-800 mb-4">Resumo</h3>
                                
                                <div class="space-y-3 mb-6">
                                    <div class="flex justify-between">
                                        <span class="text-sm text-gray-600">Banco:</span>
                                        <span class="text-sm font-medium text-gray-800">-</span>
                                    </div>
                                    <div class="flex justify-between">
                                        <span class="text-sm text-gray-600">Questões:</span>
                                        <span class="text-sm font-medium text-gray-800">-</span>
                                    </div>
                                    <div class="flex justify-between">
                                        <span class="text-sm text-gray-600">Tempo estimado:</span>
                                        <span class="text-sm font-medium text-gray-800">-</span>
                                    </div>
                                    <div class="flex justify-between">
                                        <span class="text-sm text-gray-600">Temas:</span>
                                        <span class="text-sm font-medium text-gray-800">-</span>
                                    </div>
                                </div>
                                
                                <button class="w-full bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition-colors" disabled>
                                    Iniciar Simulado
                                </button>
                                
                                <div class="mt-6">
                                    <h4 class="text-sm font-medium text-gray-700 mb-2">Seus Simulados Recentes</h4>
                                    <div class="text-sm text-gray-500 italic">Nenhum simulado recente</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Monthly Test Tab -->
            <div id="monthly-test" class="tab-content">
                <div class="bg-white rounded-lg shadow-md p-6 mb-6">
                    <h2 class="text-xl font-bold text-gray-800 mb-6">Simulado Mensal</h2>
                    
                    <div class="bg-purple-50 border border-purple-200 rounded-lg p-4 mb-6">
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <i class="fas fa-crown text-purple-500 mt-1"></i>
                            </div>
                            <div class="ml-3">
                                <h3 class="text-sm font-medium text-purple-800">Participe do Ranking Nacional</h3>
                                <div class="mt-2 text-sm text-purple-700">
                                    <p>O simulado mensal está disponível de 10/07 a 15/07. Complete para aparecer no ranking!</p>
                                </div>
                                <div class="mt-2">
                                    <button class="bg-purple-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-purple-700 transition-colors">
                                        Iniciar Simulado
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
                        <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                            <h3 class="font-medium text-gray-800 mb-3">Estatísticas</h3>
                            <div class="space-y-3">
                                <div>
                                    <p class="text-sm text-gray-600">Última pontuação</p>
                                    <p class="text-xl font-bold text-purple-600">78%</p>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-600">Posição no ranking</p>
                                    <p class="text-xl font-bold text-purple-600">Top 15%</p>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-600">Melhor tema</p>
                                    <p class="text-sm font-medium text-gray-800">Cardiologia (92%)</p>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-600">Tema para melhorar</p>
                                    <p class="text-sm font-medium text-gray-800">Neuroanestesia (65%)</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                            <h3 class="font-medium text-gray-800 mb-3">Próximo Simulado</h3>
                            <div class="flex items-center justify-center mb-3">
                                <div class="text-center">
                                    <div class="text-4xl font-bold text-purple-600">10</div>
                                    <p class="text-sm text-gray-600">Julho</p>
                                </div>
                                <div class="mx-4 text-gray-400">
                                    <i class="fas fa-arrow-right"></i>
                                </div>
                                <div class="text-center">
                                    <div class="text-4xl font-bold text-purple-600">15</div>
                                    <p class="text-sm text-gray-600">Julho</p>
                                </div>
                            </div>
                            <div class="text-center">
                                <p class="text-sm text-gray-600">Disponível em:</p>
                                <p class="text-sm font-medium text-gray-800">5 dias</p>
                            </div>
                        </div>
                        
                        <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                            <h3 class="font-medium text-gray-800 mb-3">Ranking Atual</h3>
                            <div class="space-y-2">
                                <div class="flex items-center justify-between">
                                    <div class="flex items-center">
                                        <span class="w-6 h-6 bg-purple-100 text-purple-800 text-xs font-medium rounded-full flex items-center justify-center mr-2">1</span>
                                        <span class="text-sm font-medium text-gray-800">Dr. Silva</span>
                                    </div>
                                    <span class="text-sm font-bold text-purple-600">98%</span>
                                </div>
                                <div class="flex items-center justify-between">
                                    <div class="flex items-center">
                                        <span class="w-6 h-6 bg-purple-100 text-purple-800 text-xs font-medium rounded-full flex items-center justify-center mr-2">2</span>
                                        <span class="text-sm font-medium text-gray-800">Dra. Souza</span>
                                    </div>
                                    <span class="text-sm font-bold text-purple-600">95%</span>
                                </div>
                                <div class="flex items-center justify-between">
                                    <div class="flex items-center">
                                        <span class="w-6 h-6 bg-purple-100 text-purple-800 text-xs font-medium rounded-full flex items-center justify-center mr-2">3</span>
                                        <span class="text-sm font-medium text-gray-800">Dr. Costa</span>
                                    </div>
                                    <span class="text-sm font-bold text-purple-600">92%</span>
                                </div>
                                <div class="flex items-center justify-between">
                                    <div class="flex items-center">
                                        <span class="w-6 h-6 bg-gray-100 text-gray-800 text-xs font-medium rounded-full flex items-center justify-center mr-2">...</span>
                                        <span class="text-sm font-medium text-gray-800">Você</span>
                                    </div>
                                    <span class="text-sm font-bold text-purple-600">78%</span>
                                </div>
                            </div>
                            <div class="mt-3 text-center">
                                <a href="#" class="text-purple-600 text-sm font-medium">Ver ranking completo</a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                        <h3 class="font-medium text-gray-800 mb-4">Histórico de Simulados</h3>
                        
                        <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">Mês</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pontuação</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Posição</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Melhor Tema</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Junho/2024</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">78%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Top 15%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Cardiologia (92%)</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <a href="#" class="text-purple-600 hover:text-purple-900">Detalhes</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Maio/2024</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">72%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Top 20%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Obstétrica (85%)</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <a href="#" class="text-purple-600 hover:text-purple-900">Detalhes</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Abril/2024</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">68%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Top 25%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Trauma (80%)</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <a href="#" class="text-purple-600 hover:text-purple-900">Detalhes</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <!-- User Area Tab -->
            <div id="user-area" class="tab-content">
                <div class="bg-white rounded-lg shadow-md p-6 mb-6">
                    <h2 class="text-xl font-bold text-gray-800 mb-6">Área do Usuário</h2>
                    
                    <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
                        <div class="md:col-span-3">
                            <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm mb-6">
                                <h3 class="font-medium text-gray-800 mb-4">Dados Pessoais</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">Nome Completo</label>
                                        <input type="text" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" value="Dr. Fulano de Tal">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Apelido (Ranking)</label>
                                        <input type="text" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" value="DrFulano">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">E-mail</label>
                                        <input type="email" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" value="[email protected]">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Telefone</label>
                                        <input type="tel" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm" value="(11) 99999-9999">
                                    </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">País</label>
                                        <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                            <option>Brasil</option>
                                            <option>Portugal</option>
                                        </select>
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Estado</label>
                                        <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                            <option>São Paulo</option>
                                            <option>Rio de Janeiro</option>
                                        </select>
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Categoria</label>
                                        <select class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                            <option>TEA/TSA</option>
                                            <option>R3</option>
                                            <option>R2</option>
                                            <option>R1</option>
                                        </select>
                                    </div>
                                </div>
                                
                                <div class="flex justify-end">
                                    <button class="bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition-colors">
                                        Salvar Alterações
                                    </button>
                                </div>
                            </div>
                            
                            <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <h3 class="font-medium text-gray-800 mb-4">Alterar Senha</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">Senha Atual</label>
                                        <input type="password" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">Nova Senha</label>
                                        <input type="password" class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm">
                                    </div>
                                </div>
                                
                                <div class="flex justify-end">
                                    <button class="bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition-colors">
                                        Alterar Senha
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <div>
                            <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm mb-6">
                                <h3 class="font-medium text-gray-800 mb-4">Plano Atual</h3>
                                
                                <div class="bg-blue-50 rounded-lg p-4 mb-4">
                                    <div class="flex justify-between items-center mb-2">
                                        <span class="text-sm font-medium text-blue-800">Premium</span>
                                        <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-0.5 rounded">Ativo</span>
                                    </div>
                                    <p class="text-2xl font-bold text-blue-600">R$ 29,90<span class="text-sm font-normal text-gray-600">/mês</span></p>
                                    <p class="text-xs text-gray-500">Próxima cobrança em 10/08/2024</p>
                                </div>
                                
                                <div class="space-y-2 mb-4">
                                    <div class="flex items-center">
                                        <i class="fas fa-check text-green-500 mr-2 text-sm"></i>
                                        <span class="text-sm text-gray-700">Banco completo 2016-2025</span>
                                    </div>
                                    <div class="flex items-center">
                                        <i class="fas fa-check text-green-500 mr-2 text-sm"></i>
                                        <span class="text-sm text-gray-700">Comentários das questões</span>
                                    </div>
                                    <div class="flex items-center">
                                        <i class="fas fa-check text-green-500 mr-2 text-sm"></i>
                                        <span class="text-sm text-gray-700">Simulados personalizados</span>
                                    </div>
                                    <div class="flex items-center">
                                        <i class="fas fa-check text-green-500 mr-2 text-sm"></i>
                                        <span class="text-sm text-gray-700">Ranking mensal</span>
                                    </div>
                                </div>
                                
                                <button class="w-full bg-gray-200 text-gray-800 px-4 py-2 rounded-md text-sm font-medium hover:bg-gray-300 transition-colors mb-2">
                                    Alterar Plano
                                </button>
                                <button class="w-full bg-red-100 text-red-700 px-4 py-2 rounded-md text-sm font-medium hover:bg-red-200 transition-colors">
                                    Cancelar Assinatura
                                </button>
                            </div>
                            
                            <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <h3 class="font-medium text-gray-800 mb-4">Questões Favoritas</h3>
                                
                                <div class="text-sm text-gray-500 italic">Nenhuma questão favoritada</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                        <h3 class="font-medium text-gray-800 mb-4">Desempenho Detalhado</h3>
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">Evolução por Tema</h4>
                                <div class="h-64 bg-white rounded border border-gray-200 p-2">
                                    <!-- Simplified multi-line chart -->
                                    <div class="relative h-full w-full">
                                        <div class="absolute bottom-0 left-0 right-0 h-px bg-gray-200"></div>
                                        <div class="absolute left-0 right-0 flex items-end h-full space-x-1">
                                            <!-- Cardio Line -->
                                            <div class="absolute bottom-0 left-0 right-0 flex items-end h-full space-x-1">
                                                <div class="h-3 w-3 bg-blue-500 rounded-full" style="left: 10%; bottom: 30%;"></div>
                                                <div class="h-3 w-3 bg-blue-500 rounded-full" style="left: 30%; bottom: 45%;"></div>
                                                <div class="h-3 w-3 bg-blue-500 rounded-full" style="left: 50%; bottom: 60%;"></div>
                                                <div class="h-3 w-3 bg-blue-500 rounded-full" style="left: 70%; bottom: 75%;"></div>
                                                <div class="h-3 w-3 bg-blue-500 rounded-full" style="left: 90%; bottom: 90%;"></div>
                                            </div>
                                            <!-- Neuro Line -->
                                            <div class="absolute bottom-0 left-0 right-0 flex items-end h-full space-x-1">
                                                <div class="h-3 w-3 bg-purple-500 rounded-full" style="left: 10%; bottom: 20%;"></div>
                                                <div class="h-3 w-3 bg-purple-500 rounded-full" style="left: 30%; bottom: 35%;"></div>
                                                <div class="h-3 w-3 bg-purple-500 rounded-full" style="left: 50%; bottom: 50%;"></div>
                                                <div class="h-3 w-3 bg-purple-500 rounded-full" style="left: 70%; bottom: 60%;"></div>
                                                <div class="h-3 w-3 bg-purple-500 rounded-full" style="left: 90%; bottom: 65%;"></div>
                                            </div>
                                            <!-- Obst Line -->
                                            <div class="absolute bottom-0 left-0 right-0 flex items-end h-full space-x-1">
                                                <div class="h-3 w-3 bg-green-500 rounded-full" style="left: 10%; bottom: 40%;"></div>
                                                <div class="h-3 w-3 bg-green-500 rounded-full" style="left: 30%; bottom: 55%;"></div>
                                                <div class="h-3 w-3 bg-green-500 rounded-full" style="left: 50%; bottom: 70%;"></div>
                                                <div class="h-3 w-3 bg-green-500 rounded-full" style="left: 70%; bottom: 80%;"></div>
                                                <div class="h-3 w-3 bg-green-500 rounded-full" style="left: 90%; bottom: 85%;"></div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex justify-center space-x-4 mt-2">
                                        <div class="flex items-center">
                                            <div class="h-3 w-3 bg-blue-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Cardio</span>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="h-3 w-3 bg-purple-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Neuro</span>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="h-3 w-3 bg-green-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Obst</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">Distribuição de Acertos</h4>
                                <div class="h-64 bg-white rounded border border-gray-200 p-4 flex items-center justify-center">
                                    <!-- Simplified pie chart -->
                                    <div class="relative w-40 h-40">
                                        <div class="absolute inset-0 rounded-full border-8 border-blue-500" style="clip: rect(0, 40px, 40px, 20px); transform: rotate(126deg);"></div>
                                        <div class="absolute inset-0 rounded-full border-8 border-purple-500" style="clip: rect(0, 20px, 40px, 0); transform: rotate(90deg);"></div>
                                        <div class="absolute inset-0 rounded-full border-8 border-green-500" style="clip: rect(0, 20px, 40px, 0); transform: rotate(54deg);"></div>
                                        <div class="absolute inset-0 rounded-full border-8 border-yellow-500" style="clip: rect(0, 20px, 40px, 0); transform: rotate(18deg);"></div>
                                        <div class="absolute inset-0 flex items-center justify-center">
                                            <div class="h-24 w-24 rounded-full bg-white"></div>
                                        </div>
                                    </div>
                                    <div class="ml-6">
                                        <div class="flex items-center mb-1">
                                            <div class="h-3 w-3 bg-blue-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Cardio (35%)</span>
                                        </div>
                                        <div class="flex items-center mb-1">
                                            <div class="h-3 w-3 bg-purple-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Neuro (25%)</span>
                                        </div>
                                        <div class="flex items-center mb-1">
                                            <div class="h-3 w-3 bg-green-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Obst (20%)</span>
                                        </div>
                                        <div class="flex items-center">
                                            <div class="h-3 w-3 bg-yellow-500 rounded-full mr-1"></div>
                                            <span class="text-xs text-gray-600">Outros (20%)</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                            <div class="bg-blue-50 rounded-lg p-4">
                                <p class="text-sm text-gray-600 mb-1">Melhor desempenho</p>
                                <p class="text-lg font-bold text-blue-600">Cardiologia</p>
                                <p class="text-sm text-gray-700">92% de acertos</p>
                            </div>
                            <div class="bg-purple-50 rounded-lg p-4">
                                <p class="text-sm text-gray-600 mb-1">Tempo de estudo</p>
                                <p class="text-lg font-bold text-purple-600">42 horas</p>
                                <p class="text-sm text-gray-700">este mês</p>
                            </div>
                            <div class="bg-green-50 rounded-lg p-4">
                                <p class="text-sm text-gray-600 mb-1">Posição no ranking</p>
                                <p class="text-lg font-bold text-green-600">Top 15%</p>
                                <p class="text-sm text-gray-700">nacional</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Question Focus Mode (hidden by default) -->
    <div id="questionFocusMode" class="hidden question-focus-mode fixed inset-0 z-50 overflow-y-auto">
        <div class="min-h-screen px-4 py-12">
            <div class="max-w-3xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
                <!-- Question Header -->
                <div class="bg-blue-600 px-6 py-4 flex justify-between items-center">
                    <div class="flex items-center space-x-4">
                        <button id="pauseBtn" class="text-white hover:text-blue-200">
                            <i class="fas fa-pause"></i>
                        </button>
                        <button id="exitBtn" class="text-white hover:text-blue-200">
                            <i class="fas fa-times"></i>
                        </button>
                    </div>
                    <div class="text-white font-medium">
                        Questão <span id="currentQuestion">1</span>/<span id="totalQuestions">10</span>
                    </div>
                    <div class="text-white font-medium">
                        <span id="timeSpent">00:00</span>/<span id="totalTime">20:00</span>
                    </div>
                </div>
                
                <!-- Question Content -->
                <div class="p-6">
                    <div class="mb-4">
                        <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-0.5 rounded">Cardiologia</span>
                        <span class="bg-gray-100 text-gray-800 text-xs font-medium px-2 py-0.5 rounded ml-2">2024</span>
                    </div>
                    
                    <p id="questionText" class="text-lg text-gray-800 mb-6">
                        Qual das seguintes opções é a mais apropriada para o manejo da hipertensão arterial no perioperatório de cirurgia cardíaca?
                    </p>
                    
                    <!-- Question Image (optional) -->
                    <div class="mb-6 bg-gray-100 rounded-lg p-4 flex items-center justify-center">
                        <p class="text-gray-500 italic">[Imagem ou vídeo apareceria aqui]</p>
                    </div>
                    
                    <!-- Options -->
                    <div class="space-y-3 mb-8">
                        <div class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-blue-50 cursor-pointer">
                            <div class="w-6 h-6 rounded-full border border-gray-300 flex items-center justify-center mr-3">A</div>
                            <p class="text-gray-800">Beta-bloqueadores</p>
                        </div>
                        <div class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-blue-50 cursor-pointer">
                            <div class="w-6 h-6 rounded-full border border-gray-300 flex items-center justify-center mr-3">B</div>
                            <p class="text-gray-800">Bloqueadores dos canais de cálcio</p>
                        </div>
                        <div class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-blue-50 cursor-pointer">
                            <div class="w-6 h-6 rounded-full border border-gray-300 flex items-center justify-center mr-3">C</div>
                            <p class="text-gray-800">Inibidores da ECA</p>
                        </div>
                        <div class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-blue-50 cursor-pointer">
                            <div class="w-6 h-6 rounded-full border border-gray-300 flex items-center justify-center mr-3">D</div>
                            <p class="text-gray-800">Diuréticos</p>
                        </div>
                    </div>
                    
                    <!-- Navigation and Actions -->
                    <div class="flex justify-between items-center">
                        <button class="text-blue-600 font-medium hover:text-blue-800">
                            <i class="fas fa-chevron-left mr-1"></i> Anterior
                        </button>
                        
                        <div class="flex items-center space-x-3">
                            <button class="text-gray-400 hover:text-yellow-500">
                                <i class="far fa-star"></i>
                            </button>
                            <button class="bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition-colors">
                                Confirmar
                            </button>
                        </div>
                        
                        <button class="text-blue-600 font-medium hover:text-blue-800">
                            Próxima <i class="fas fa-chevron-right ml-1"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Tab functionality
        const tabButtons = document.querySelectorAll('.tab-btn');
        const tabContents = document.querySelectorAll('.tab-content');
        
        tabButtons.forEach(button => {
            button.addEventListener('click', () => {
                const tabId = button.getAttribute('data-tab');
                
                // Update active tab button
                tabButtons.forEach(btn => {
                    btn.classList.remove('border-blue-600', 'text-blue-600');
                    btn.classList.add('text-gray-500');
                });
                button.classList.add('border-blue-600', 'text-blue-600');
                button.classList.remove('text-gray-500');
                
                // Show active tab content
                tabContents.forEach(content => {
                    content.classList.remove('active');
                });
                document.getElementById(tabId).classList.add('active');
            });
        });
        
        // Notification panel toggle
        const notificationBtn = document.getElementById('notificationBtn');
        const notificationPanel = document.getElementById('notificationPanel');
        
        notificationBtn.addEventListener('click', (e) => {
            e.stopPropagation();
            notificationPanel.classList.toggle('hidden');
            userMenu.classList.add('hidden');
        });
        
        // User menu toggle
        const userMenuBtn = document.getElementById('userMenuBtn');
        const userMenu = document.getElementById('userMenu');
        
        userMenuBtn.addEventListener('click', (e) => {
            e.stopPropagation();
            userMenu.classList.toggle('hidden');
            notificationPanel.classList.add('hidden');
        });
        
        // Close menus when clicking outside
        document.addEventListener('click', () => {
            notificationPanel.classList.add('hidden');
            userMenu.classList.add('hidden');
        });
        
        // Prevent closing when clicking inside the panel
        notificationPanel.addEventListener('click', (e) => e.stopPropagation());
        userMenu.addEventListener('click', (e) => e.stopPropagation());
        
        // Question focus mode simulation
        const questionFocusMode = document.getElementById('questionFocusMode');
        const exitBtn = document.getElementById('exitBtn');
        
        // Simulate opening focus mode (for demo purposes)
        document.querySelectorAll('[data-tab="questions"], [data-tab="custom-test"], [data-tab="monthly-test"]').forEach(btn => {
            btn.addEventListener('click', () => {
                // In a real app, this would be triggered by starting a test
                setTimeout(() => {
                    const startTestBtn = document.querySelector('[data-tab="questions"] .bg-green-600');
                    if (startTestBtn) {
                        startTestBtn.addEventListener('click', () => {
                            questionFocusMode.classList.remove('hidden');
                        });
                    }
                }, 100);
            });
        });
        
        exitBtn.addEventListener('click', () => {
            questionFocusMode.classList.add('hidden');
        });
        
        // Timer simulation for focus mode
        if (questionFocusMode) {
            let seconds = 0;
            const timeSpentElement = document.getElementById('timeSpent');
            
            setInterval(() => {
                seconds++;
                const minutes = Math.floor(seconds / 60);
                const remainingSeconds = seconds % 60;
                timeSpentElement.textContent = `${minutes.toString().padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`;
            }, 1000);
        }
    </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=Cyrofranklin/intelec" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>