File size: 14,100 Bytes
ff42e3f
f0fc5f8
ff42e3f
f0fc5f8
9a75171
bcc8503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27a9af5
9a75171
 
12f47f8
9a75171
 
6d70434
 
 
 
 
 
 
 
 
 
9a75171
48e003d
 
 
 
 
 
 
 
ff42e3f
64c838a
 
 
 
 
 
 
 
 
 
 
 
 
46e3999
 
64c838a
 
 
 
 
 
 
a3bf481
64c838a
 
a3bf481
 
 
 
 
 
 
 
 
 
64c838a
 
 
 
 
 
 
 
 
 
 
a0e3ddf
 
 
 
 
 
 
 
48e003d
ff42e3f
bcc8503
 
 
 
 
 
ff42e3f
 
 
 
 
 
48e003d
 
 
 
f760165
 
ff42e3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c974ee5
ff42e3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
abfa81d
ff42e3f
abfa81d
ff42e3f
 
 
abfa81d
ff42e3f
 
 
 
bcc8503
 
ff42e3f
 
bcc8503
 
ff42e3f
 
bcc8503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff42e3f
bcc8503
 
 
 
abfa81d
ff42e3f
bcc8503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff42e3f
bcc8503
 
 
 
0ad27f8
bcc8503
 
 
ff42e3f
bcc8503
 
ff42e3f
bcc8503
 
 
 
 
 
 
 
 
ff42e3f
bcc8503
 
 
72c5fd8
bcc8503
 
a3bf481
 
bcc8503
 
a3bf481
bcc8503
 
 
 
 
 
27a9af5
 
6b6c0ac
27a9af5
 
 
 
 
 
 
bcc8503
 
a3bf481
 
a973186
27a9af5
a3bf481
 
 
 
a973186
27a9af5
599c798
bcc8503
 
 
 
599c798
6b6c0ac
 
 
a973186
6b6c0ac
d14568c
bcc8503
 
 
 
 
 
 
 
 
 
 
 
599c798
 
a973186
27a9af5
 
 
 
 
 
 
a3bf481
 
fbc8128
a3bf481
34de7db
a3bf481
fbc8128
34de7db
a3bf481
 
599c798
34de7db
a3bf481
 
27a9af5
599c798
a3bf481
 
 
 
599c798
a3bf481
 
fa9f031
a3bf481
 
 
 
 
 
 
 
 
 
 
 
c8e7c1d
 
 
 
 
 
 
 
 
 
 
 
 
 
ff01f3e
 
 
 
c8e7c1d
a3bf481
fa9f031
 
14a5a97
 
 
 
 
 
 
fa9f031
14a5a97
 
 
2e9b317
14a5a97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a3bf481
2e9b317
c974ee5
 
 
 
 
 
599c798
 
 
 
 
 
 
 
 
 
 
 
 
 
4b4bf28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14a5a97
887905a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcc8503
887905a
 
 
 
 
 
 
 
 
 
 
 
eda3a25
 
 
 
 
48e003d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcc8503
 
 
 
48e003d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcc8503
48e003d
 
 
 
14a5a97
48e003d
 
 
 
bcc8503
48e003d
bcc8503
48e003d
 
 
bcc8503
48e003d
bcc8503
48e003d
 
bcc8503
48e003d
 
bcc8503
48e003d
 
 
bcc8503
48e003d
bcc8503
48e003d
bcc8503
48e003d
bcc8503
48e003d
bcc8503
48e003d
bcc8503
48e003d
bcc8503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48e003d
 
 
27a9af5
bcc8503
27a9af5
 
 
 
 
 
 
 
 
 
 
ff74e4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

/* :root {
    --user-image: url('https://ih1.redbubble.net/image.4776899543.6215/st,small,507x507-pad,600x600,f8f8f8.jpg');
  } */

#tab-recommended_content{
    padding-top: 0px;
    padding-left : 0px;
    padding-right: 0px;
}
#group-subtabs {
    /* display: block; */
    position : sticky;
}


}


#papers-summary-popup button span{
    /* make label of accordio in bold, center, and bigger */
    font-size: 16px;
    font-weight: bold;
    text-align: center;

}

#papers-relevant-popup span{
    /* make label of accordio in bold, center, and bigger */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}



#tab-citations .button{
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    outline: none;
    text-align: left;
    transition: background-color 0.3s ease;
}


.gradio-container {
    width: 100%!important;
    max-width: 100% !important;
}

/* fix for huggingface infinite growth*/
main.flex.flex-1.flex-col { 
    max-height: 95vh !important;
}

button#show-figures{
    /* Base styles */
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333333;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.avatar-container.svelte-1x5p6hu:not(.thumbnail-item) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 0px;
    margin: 0px;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 15px 20px;
    font-size: 14px;
    color: #856404;
    display: inline-block;
    margin-bottom: 15px;
  }


.tip-box {
    background-color: #f0f9ff;
    border: 1px solid #80d4fa;
    border-radius: 4px;
    margin-top:20px;
    padding: 15px 20px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
    width: auto;
    color:black !important;
}

body.dark .warning-box * {
    color:black !important;
}


body.dark .tip-box * {
    color:black !important;
}


.tip-box-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.light-bulb {
    display: inline;
    margin-right: 5px;
}

.gr-box {border-color: #d6c37c}

#hidden-message{
    display:none;
}

.message{
    font-size:14px !important;
    
}
.card-content img {
    display: block;
    margin: auto;
    max-width: 100%; /* Ensures the image is responsive */
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.doc-ref sup{
    color:#dc2626!important;
    /* margin-right:1px; */
}


.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin:20px;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    font-size: 14px !important;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top:0px !important;
    color:#dc2626!important;;
}

.card-content p {
    font-size: 12px;
    margin-bottom: 0;
}

.card-footer {
    background-color: #f4f4f4;
    font-size: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer span {
    flex-grow: 1;
    text-align: left;
    color: #999 !important;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    text-decoration: none!important;
    font-size: 14px;
}



.message.user{
    /* background-color:#7494b0 !important; */
    border:none;
    /* color:white!important; */
}

.message.bot{
    /* background-color:#f2f2f7 !important; */
    border:none;
}


label.selected{
  background: #93c5fd !important;
}

#submit-button{
    padding:0px !important;
}

#modal-config .block.modal-block.padded {
    padding-top: 25px;
    height: 100vh;

}
#modal-config .modal-container{
    margin: 0px;
    padding: 0px;
}
/* Modal styles */
#modal-config {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 500px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    transform: none;
}
#modal-config .close{
    display: none;
}

/* Push main content to the right when modal is open */
/* .modal ~ * {
    margin-left: 300px;
    transition: margin-left 0.3s ease;
} */

#modal-config .modal .wrap ul{
    position:static;
    top: 100%;
    left: 0;
    /* min-height: 100px; */
    height: 100%;
    /* margin-top: 0; */
    z-index: 9999;
    pointer-events: auto;
    height: 200px;
}
#config-button{
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#config-button::before {
    content: '⚙️';
    font-size: 20px;
}

#config-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#checkbox-config{
    display: block;
    position: absolute;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    font-size: 20px;
    text-align: center;
}
#checkbox-config:checked{
    display: block;
}



@media screen and (min-width: 1024px) {
    /* Additional style for scrollable tab content */
    /* div#tab-recommended_content {
        overflow-y: auto; 
        max-height: 80vh; 
    } */

    .gradio-container {
        max-height: calc(100vh - 190px) !important;
        overflow: hidden;
    }
    /* div#chatbot{
        height:calc(100vh - 170px) !important;
        max-height:calc(100vh - 170px) !important;

    } */


    
    div#tab-examples{
        height:calc(100vh - 190px) !important;
        overflow-y: scroll !important;
        /* overflow-y: auto; */
    }

    div#sources-textbox{
        height:calc(100vh - 190px) !important;
        overflow-y: scroll !important;
        /* overflow-y: auto !important; */
    }
    div#graphs-container{
        height:calc(100vh - 210px) !important;
        overflow-y: scroll !important;
    }

    div#sources-figures{
        height:calc(100vh - 300px) !important;
        max-height: 90vh !important;
        overflow-y: scroll !important;
    }

    div#graphs-container{
        height:calc(100vh - 300px) !important;
        max-height: 90vh !important;
        overflow-y: scroll !important;
    }

    div#tab-citations{
        height:calc(100vh - 300px) !important;
        max-height: 90vh !important;
        overflow-y: scroll !important;
    }

    div#tab-config{
        height:calc(100vh - 190px) !important;
        overflow-y: scroll !important;
        /* overflow-y: auto !important; */
    }

    /* Force container to respect height limits */
    .main-component{
        contain: size layout;
        overflow: hidden;
    }


    div#chatbot-row{
        max-height:calc(100vh - 90px) !important;
    }
/*


    .max-height{
        height:calc(100vh - 90px) !important;
        max-height:calc(100vh - 90px) !important;
        overflow-y: auto;
    }
*/

}

footer {
    visibility: hidden;
    display:none !important;
}


@media screen and (max-width: 767px) {
    /* Your mobile-specific styles go here */

    div#chatbot{
        height:500px !important;
    }

    #submit-button{
        padding:0px !important;
        min-width: 80px;
    }

    /* This will hide all list items */
    div.tab-nav button {
        display: none !important;
    }

    /* This will show only the first list item */
    div.tab-nav button:first-child {
        display: block !important;
    }
    
    /* This will show only the first list item */
    div.tab-nav button:nth-child(2) {
        display: block !important;
    }
    
    #right-panel button{
        display: block !important;
    }

    /* ... add other mobile-specific styles ... */
}

@media (prefers-color-scheme: dark) {
    .card{
        background-color: #374151;
    }
    .card-image > .card-content{
        background-color: rgb(55, 65, 81) !important;
    }

    .card-footer {
        background-color: #404652;
    }

    .container > .wrap{
        background-color: #374151 !important;
        color:white !important;
    }
    .card-content h2{
        color:#e7754f !important;
    }
    .doc-ref sup{
        color:rgb(235 109 35)!important;
        /* margin-right:1px; */
    }
    .card-footer span {
        color:white !important;
    }
    
}


.doc-ref{
    color:#dc2626!important;
    margin-right:1px;
}

.tabitem{
    border:none !important;
}    

.other-tabs > div{
    padding-left:40px;
    padding-right:40px;
    padding-top:10px;
}

.gallery-item > div{
    white-space: normal !important; /* Allow the text to wrap */
    word-break: break-word !important; /* Break words to prevent overflow */
    overflow-wrap: break-word !important; /* Break long words if necessary */
  }

span.chatbot > p > img{
    margin-top:40px !important;
    max-height: none !important;
    max-width: 80% !important;
    border-radius:0px !important;
}


.chatbot-caption{
    font-size:11px;
    font-style:italic;
    color:#508094;
}

.ai-generated{
    font-size:11px!important;
    font-style:italic;
    color:#73b8d4 !important;
}

.card-image > .card-content{
    background-color:#f1f7fa;
}



.tab-nav > button.selected{
    color:#4b8ec3;
    font-weight:bold;
    border:none;
}

.tab-nav{
    border:none !important;
}

#input-textbox > label > textarea{
    border-radius:40px;
    padding-left:30px;
    resize:none;
}

#input-message > div{
    border:none;
}

#dropdown-samples{

  background:none !important;
  
}

#dropdown-samples > .container > .wrap{
  background-color:white;
}


#tab-examples > div > .form{
  border:none;
  background:none !important;
}

.a-doc-ref{
	text-decoration: none !important;
}


.dropdown {
    position: relative;
    display:inline-block;
    margin-bottom: 10px;
  }
  
  .dropdown-toggle {
    background-color: #f2f2f2;
    color: black;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    width: 400px; /* Adjust width as needed */
    position: relative;
    display: flex;
    align-items: center; /* Vertically center the contents */
    justify-content: left;
  }
  
  .dropdown-toggle .caret {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black;
    transform: translateY(-50%);
  }
  
  input[type="checkbox"] {
    display: none !important;
  }
  
  input[type="checkbox"]:checked + .dropdown-content {
    display: block;
  }

  #checkbox-chat input[type="checkbox"] {
    display: flex !important;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 300px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    padding: 12px;
    border: 1px solid #ccc;
  }
  
  input[type="checkbox"]:checked + .dropdown-toggle + .dropdown-content {
    display: block;
  }
  
  input[type="checkbox"]:checked + .dropdown-toggle .caret {
    border-top: 0;
    border-bottom: 5px solid black;
  }
  
.loader {
    border: 1px solid #d0d0d0 !important; /* Light grey background */
    border-top: 1px solid #db3434 !important; /* Blue color */
    border-right: 1px solid #3498db !important; /* Blue color */
    border-radius: 50%;
    width: 20px;    
    height: 20px;
    animation: spin 2s linear infinite;
    display:inline-block;
    margin-right:10px !important;
}
  
.checkmark{
    color:green !important;
    font-size:18px;
    margin-right:10px !important;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.relevancy-score{
    margin-top:10px !important;
    font-size:10px !important;
    font-style:italic;
}
  
.score-green{
    color:green !important;
}
  
.score-orange{
    color:orange !important;
}
  
.score-red{
    color:red !important;
}

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
    div#tab-recommended_content {
        max-height: 50vh; /* Reduce height for smaller screens */
        overflow-y: auto;
    }
}

/* Additional style for scrollable tab content */
div#tab-saved-graphs {
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 80vh; /* Adjust height as needed */
}

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
    div#tab-saved-graphs {
        max-height: 50vh; /* Reduce height for smaller screens */
        overflow-y: auto;
    }
}
.message-buttons-left.panel.message-buttons.with-avatar {
    display: none;
}


/* Specific fixes for Hugging Face Space iframe */
.h-full {
    height: auto !important;
    min-height: 0 !important;
}

.space-content {
    height: auto !important;
    max-height: 100vh !important;
    overflow: hidden;
}


/* Mobile specific modal configuration */
@media screen and (max-width: 767px) {
    #modal-config {
        width: 100%; /* Full width on mobile */
        height: 100vh;
        left: 0;
        top: 0;
        padding: 10px; /* Reduced padding for mobile */
    }

    #modal-config .block.modal-block.padded {
        padding-top: 15px; /* Reduced top padding */
        height: 100vh;
        overflow-y: auto; /* Enable scrolling */
    }

    #modal-config .modal-container {
        width: 100%;
        height: 100%;
    }

    /* Show close button on mobile */
    #modal-config .close {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
        padding: 8px;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Ensure modal content is scrollable on mobile */
    #modal-config .modal .wrap ul {
        max-height: calc(100vh - 60px); /* Account for header space */
        overflow-y: auto;
    }
}