File size: 14,484 Bytes
3213c55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3381365
 
 
fbba18f
8ba3f59
 
 
324dab5
 
055281b
324dab5
 
 
 
9423aa2
8ba3f59
 
fbba18f
3381365
 
fbba18f
 
 
a2748ba
 
b15d4af
a2748ba
 
 
3381365
ae89866
 
 
fbba18f
 
7a6e68e
eae785e
7a6e68e
 
81f1c93
 
 
 
 
08e9939
 
e92f0d5
08e9939
e92f0d5
 
7dfbbce
 
81f1c93
 
a7425cc
385ec14
 
5e03ce9
 
a7425cc
5e03ce9
7dfbbce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f44ab86
 
 
 
 
7dfbbce
 
a0274b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53596ee
 
 
 
 
 
 
 
 
 
 
 
a0274b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16e9003
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3381365
 
 
abb1e3f
055281b
9ae57d4
b7153ae
 
 
1fb16ef
96588fe
3381365
 
 
 
 
 
 
 
 
 
 
7d0be41
 
3381365
fbba18f
 
5886270
3381365
fbba18f
 
2bfc049
 
 
 
 
 
 
0f2d730
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b31953b
 
 
 
 
 
 
 
 
 
 
 
 
13adc0b
 
 
 
 
 
 
 
 
 
 
 
 
3381365
 
 
5886270
3381365
d63d044
4a1858d
 
 
 
 
 
 
 
5886270
3381365
a8b5594
3381365
02336b1
578ba75
f8961b0
 
fa241b4
02336b1
 
 
 
 
4a1858d
9e5e6a2
 
4a1858d
9e5e6a2
a60632b
 
3381365
a60632b
 
 
3381365
 
a60632b
 
3381365
 
 
 
 
 
 
fbba18f
 
3381365
fbba18f
3381365
 
fbba18f
3381365
fbba18f
 
3381365
fbba18f
3381365
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1fb16ef
 
eaa4742
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
08e9939
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337580a
 
 
 
 
 
 
 
 
00f2e48
337580a
 
 
 
 
 
fe9edbe
337580a
 
 
 
c20f191
 
0717c1b
c20f191
 
 
 
 
 
 
 
0717c1b
c20f191
 
337580a
 
 
58304c8
337580a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eaa4742
 
cd0760d
 
 
 
 
 
 
 
0174c8a
cd0760d
00f2e48
cd0760d
 
 
 
 
0174c8a
cd0760d
 
 
d269564
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850ec17
d269564
3381365
5886270
3381365
fbba18f
b8dbe36
0bde3b8
5886270
a9ac054
3381365
b8dbe36
fbba18f
7914b16
a9ac054
9361714
f45f667
58304c8
9361714
fbba18f
b8dbe36
5886270
3381365
9185708
7448f87
 
 
055281b
3381365
ae78368
1c69416
ae78368
3381365
1c69416
 
 
983e3e6
 
 
 
833413a
 
1c69416
d2ebbfb
eaa4742
833413a
eaa4742
 
 
ae78368
 
 
 
 
1c69416
ae78368
833413a
1c69416
 
 
 
fe9edbe
1c69416
 
833413a
 
1c69416
ae78368
 
eaa4742
833413a
1c69416
ae78368
833413a
 
0fa141f
5a2cd41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e59c5f
5a2cd41
 
17a163c
 
 
0bde3b8
3e59c5f
17a163c
 
3e59c5f
8e3b65d
 
7361d8b
 
 
70a67dc
7361d8b
 
 
142d7c6
70a67dc
5a707cf
 
b0bd117
 
 
 
 
 
 
 
 
70a67dc
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
/* ===============================
   Tvinga vit bakgrund i HF Spaces
   =============================== */

html, body {
    background: #ffffff !important;
}

/* Gradio root */
.gradio-container {
    background: #ffffff !important;
}

}

/* HF wrapper runt appen */
#root,
#app,
.app,
main {
    background: #ffffff !important;
}

/* =====================================================
   BAS / RESET (kontrollerad)
   ===================================================== */


:root {
    color-scheme: light !important;
    --body-background-fill: #ffffff !important;
    --background-fill-primary: #ffffff !important;
    --body-text-color: #000000 !important;
    --block-label-background-fill: #ffffff !important;
    --background-fill-secondary: #ffffff !important;
    --panel-background-fill: #ffffff !important;
    --block-label-text-color: #000000 !important;
    --checkbox-background-color: #ffffff;
}

body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
  color: #1e5bd7 !important;
  text-align: center;
}

h2, h3, h4, p, span, label, li {
    color: #000000 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: none !important;
}

/* ===============================
   BILD – brain.png (SLUTGILTIG)
   =============================== */

/* Dölj bildens toolbar (zoom / download / share) */
.brain-icon .image-toolbar,
.brain-icon button,
.brain-icon [role="toolbar"] {
    display: none !important;
}

/* Själva bilden */
.brain-icon img {
    width: 100px;
    height: auto;
    pointer-events: none; !important;
    user-select: none; !important;
    display: block;
    margin: 0 auto;
    border: none !important;
}

.icon-button-wrapper {
    display: none;
    border: none !important;
}

/* ===============================
   TA BORT GRADIO IMAGE TOOLBAR
   =============================== */

/* Själva toolbaren */
.brain-icon .image-toolbar {
    display: none !important;
}

/* Alla toolbar-knappar (säkerhetsnät) */
.brain-icon button,
.brain-icon [role="toolbar"] {
    display: none !important;
}

/* Se till att bilden inte är klickbar */
.brain-icon img {
    pointer-events: none;
    user-select: none;
}
.icon-button-wrapper,
.image-container,
.brain-header {
    border: none !important; 
}


/* ===============================
   TOP HEADER – BRAIN IMAGE
   =============================== */

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0 8px 0;
    background: #ffffff;
}

/* Själva bilden */
.brain-header {
    max-width: 120px;
    height: auto;
    display: block;
}

.brain-icon img {
    display: block;
    margin: 0 auto;
    width: 120px;
}

.gradio-container hr {
    display: none !important;
}



/* ===============================
   TA BORT GRADIO TOP BAR / BLÅ LINJE
   =============================== */

/* Gradio container header */
.gradio-container > header,
.gradio-container > footer,
.gradio-container .topbar,
.gradio-container .app-header {
    display: none !important;
}

/* Ibland ligger den som hr */
.gradio-container hr {
    display: none !important;
}

/* Ta bort Gradio-h1-linjen */
.prose h1 {
    border-bottom: none !important;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.brain-header {
    width: 120px;
    height: auto;
}

/* =====================================================
   HUVUDFRÅGOR (Buttons / Cards)
   ===================================================== */
.card,
.card .wrap,
.card.gr-button {
    background-color: #ffffff !important;
    color: #000000 !important;
  
    width: 260px;
    height: 150px;

    background: #ffffff !important;
    color: #000000 !important;

    border: 2px solid #1e5bd7 !important;
    border-radius: 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

.card.gr-button:hover {
    background: #eef3ff !important;
}

button.gr-button.card {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #1e5bd7 !important;
    border-radius: 14px !important;
}

/* Innehåll i huvudfråge-kort */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

/* Titel – fet */
.card-title {
    font-weight: 700;
    font-size: 14px;
    color: #000000;
}

/* Huvudfråga – normal text */
.card-question {
    font-weight: 400;
    font-size: 13px;
    color: #000000;
}

.card {
    position: relative;
    padding: 12px;
}

/* Osynlig klick-yta */
.card-overlay {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.card {
    position: relative;
    padding: 12px;
}

/* Osynlig klickyta ovanpå kortet */
.card-overlay {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* =====================================================
   UNDERFRÅGOR (Dataframe / ag-grid)
   ===================================================== */

/* Ytterram */
.question-list *,
.question-list .wrap,
.question-list .table,
.question-list .cell-menu-button,
.question-list .thead,
.question-list .header-button,
.question-list .text,
.question-list .cell-wrap,
.question-list .header-content,
.question-list.gr-box {
    background: #ffffff !important;
    border: none !important;
}

.question-list {
    background: #ffffff !important;
    border: none !important;
    min-height: 220px; 
    border: 2px solid #1e5bd7 !important;
    border-radius: 16px !important;
    padding: 10px;
}

/*
.question-list cell-wrap{
    background: #ffffff !important;
}*/

/* Ta bort ALLA inre ramar */
.question-list *,
.question-list .ag-root,
.question-list .ag-body,
.question-list .ag-body-viewport,
.question-list .ag-center-cols-container,
.question-list .ag-row,
.question-list .ag-cell {
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
}

/* Ta bort svart header-rad */
.question-list .ag-header {
    display: none !important;
}

/* Celler */
.question-list td {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 10px;
    cursor: pointer;
}

/* Hover */
.question-list tr:hover td {
    background: #eef3ff !important;
}

/* Ingen orange selection */
.question-list .ag-row-selected {
    background: #eef3ff !important;
}

/* Ingen fokusram */
.question-list *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ingen scrollbar */
.question-list,
.question-list .ag-root,
.question-list .ag-body-viewport {
    overflow: hidden !important;
}

/* Yttre ram – behåll */
.question-list {
    border: 2px solid #1e5bd7 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
}

/* Tillåt intern scroll (annars buggar ag-grid) */
.question-list .ag-body-viewport {
    overflow-y: auto !important;
}

/* Markering av vald rad */
.question-list .ag-row-selected,
.question-list .ag-row-selected .ag-cell {
    background-color: #eef3ff !important;
}

/* Hover */
.question-list .ag-row:hover .ag-cell {
    background-color: #eef3ff !important;
}

/* Ta bort onödiga ramar */
.question-list .ag-cell,
.question-list .ag-row {
    border: none !important;
}

/* Ta bort markeringsrutor / fokusramar helt */
.question-list .ag-cell-focus,
.question-list .ag-cell-focus:focus,
.question-list .ag-cell-focus:focus-visible,
.question-list .ag-row-focus,
.question-list .ag-row-focus * {
    outline: none !important;
    box-shadow: none !important;
}

/* Ta bort selection-outline */
.question-list .ag-cell::after {
    display: none !important;
}

/* =====================================================
   MEDDELANDE (Textbox) – STABIL LÖSNING
   ===================================================== */

/* Yttre container */
.message-box {
    background: #ffffff !important;
    border: 2px solid #1e5bd7 !important;
    border-radius: 16px !important;
    padding: 10px !important;
    min-height: 220px;
}

/* Ta bort Gradio-inre effekter */
.message-box .wrap,
.message-box.gr-box {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* YTTRE BLOCK – döda Gradio-ram + mörka hörn */
.block.message-box {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Label-container som Gradio använder för extra ram */
.message-box label.show_textbox_border {
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

/* Själva textarea – ALL text ritas här */
.message-box textarea {
    width: 100% !important;
    /*padding: 14px !important;*/

    background-color: #ffffff !important;
    color: #000000 !important;

    border: none !important;
    outline: none !important;
    resize: none;

    font-size: 15px;
    line-height: 1.4;

    -webkit-text-fill-color: #000000 !important;
}

/* Placeholder */
.message-box textarea::placeholder {
    color: #6b6b6b !important;
    opacity: 1 !important;
}

/* ===============================
   TA BORT YTTRE GRADIO-RAM PÅ TEXTBOX
   =============================== */

/* Label-containern runt textbox */
label.show_textbox_border,
label.container.show_textbox_border {
    border: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 10px !important;
}

/* Säkerhetsnät – om Gradio ändrar klassnamn */
.block:has(.message-box) > label {
    border: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

/* ===============================
   TA BORT FOCUS-RUTA I TEXTAREA
   =============================== */

/* Browser focus */
.message-box textarea:focus,
.message-box textarea:focus-visible,
.message-box textarea:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Gradio / Svelte focus-layer */
.message-box textarea::after,
.message-box textarea::before {
    display: none !important;
}

/* Om Gradio lägger focus på wrapper */
.message-box .wrap:focus,
.message-box .wrap:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: #1e5bd7 !important; /* behåll din blå ram */
}

/* Safari / Chromium specialfall */
.message-box textarea {
    -webkit-tap-highlight-color: #ffffff !important;
}

/* =====================================================
   SVAR
   ===================================================== */


.answer-box .wrap,
.answer-box.gr-box {
    color: #1e5bd7 !important;
    background: #ffffff !important;
    border: none !important;
}
.answer-box {
    border: 2px solid #1e5bd7 !important;
    border-radius: 10px !important;
    min-height: 220px; 
    padding: 10px;
}


.answer-box * {
    color: #000000 !important;
    background: #ffffff !important;
    border: none !important;
    /*border: 2px solid #000000 !important;
    border-radius: 10px !important;*/
}

/* ===============================
   SKICKA & RENSA – ABSOLUT LJUST
   =============================== */

.gradio-container button.gr-button.send-btn,
.gradio-container button.gr-button.send-btn.primary,
.gradio-container button.gr-button.send-btn.secondary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 10px !important;

    box-shadow: none !important;
    font-weight: 600;

    --button-primary-background-fill: #ffffff !important;
    --button-primary-background-fill-hover: #f2f2f2 !important;
    --button-primary-text-color: #000000 !important;
}

.gradio-container button.gr-button.send-btn:hover {
    background-color: #f2f2f2 !important;
}

/* ===============================
   CHECKBOX – TA BORT SVART BAKGRUND
   =============================== */

/* Wrapper runt checkbox */
.gradio-container .gr-checkbox,
.gradio-container .gr-checkbox *,
.gradio-container .form:has(.gr-checkbox) {
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
}

/* Själva checkboxen */
.gradio-container .gr-checkbox input[type="checkbox"] {
    accent-color: #000000;
}

/* Texten */
.gradio-container .gr-checkbox label {
    color: #000000 !important;
    font-weight: 500;
}

  /* ===============================
   TA BORT SVARTA HÖRN I MEDDELANDE
   =============================== */

label.show_textbox_border::before,
label.show_textbox_border::after {
    display: none !important;
    content: none !important;
}

label.show_textbox_border {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* ===============================
   TVINGA LJUSA KNAPPAR (ÄVEN SECONDARY)
   =============================== */

.gradio-container button.gr-button.secondary,
.gradio-container button.gr-button.primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.gradio-container button.gr-button.secondary:hover,
.gradio-container button.gr-button.primary:hover {
    background-color: #f2f2f2 !important;
}  

  /* ===============================
   TA BORT SVART PLATTA BAKOM CHECKBOX
   =============================== */

.gradio-container .form:has(.gr-checkbox) {
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
}

label.checkbox-container * input[type="checkbox"] {
  background-color: #ffffff !important;
  border-color: #000000 !important;
  /* You might also want to ensure the border style and width are consistent */
  border-style: solid;
  border-width: 2px;
}

/* ===============================
   CHECKBOX – FUNGERANDE SVART BOCK
   =============================== */
/*
.gradio-container input[type="checkbox"] {
    accent-color: #000000 !important;
    background-color: #ffffff !important;
}
*/
.form .block{
    background: #ffffff !important;
}

/* ===============================
   CHECKBOX – KORREKT STYLING
   =============================== */

.gradio-container .gr-checkbox {
    --checkbox-background-color: #ffffff;
    --checkbox-border-color: #000000;
}