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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cdfdbf6
 
 
 
 
 
 
 
 
 
 
 
 
 
42d2c3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ecf7ad
 
 
 
 
 
 
 
 
 
 
 
 
 
26add87
 
 
5ecf7ad
 
 
 
 
 
 
 
42d2c3a
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
/* ============================================================
   STYLES.CSS - Estilos para ELABORACAO_MODELOS
   ============================================================ */

/* ============================================================
   LAYOUT GERAL
   ============================================================ */

:root.dark,
:root .dark {
  /* Force LIGHT backgrounds */
  --neutral-950: #ffffff !important;
  --neutral-900: #ffffff !important;
  --neutral-800: #ffffff !important;

  --background-fill-primary: #ffffff !important;
  --background-fill-secondary: #ffffff !important;

  --block-background-fill: #ffffff !important;
  --panel-background-fill: #ffffff !important;
  --input-background-fill: #ffffff !important;
  --code-background-fill: #ffffff !important;
  --block-border-color: #ffffff !important;

  /* Force readable text */
  --body-text-color: #000000 !important;
  --block-label-text-color: #000000 !important;
  --body-text-color-subdued: #444444 !important;
  --block-title-text-color: #000000 !important;
}

.gradio-container {
    max-width: 100% !important;
    padding: 15px !important;
    background: #f5f5f5 !important;
}

/* ============================================================
   TÍTULOS DE SEÇÃO
   ============================================================ */

.section-title-orange {
    font-weight: 600;
    color: #4a5568;
    margin: 16px 0 12px 0;
    padding: 8px 12px;
    border-left: 4px solid #FF8C00;
    background: linear-gradient(90deg, #fff8f0 0%, white 100%);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 0 6px 6px 0;
}

/* ============================================================
   HEADERS DE SEÇÃO PRINCIPAIS
   ============================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 12px 0;
    padding: 0;
}

.section-header:first-of-type {
    margin-top: 16px;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #FF8C00;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #FF8C00;
    flex-grow: 1;
}

/* Container de seção com borda mais definida */
.section-container {
    background: white !important;
    border: 2px solid #c0c0c0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 0 0 8px 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.section-container:hover {
    border-color: #FF8C00 !important;
    transition: border-color 0.2s ease;
}

/* Timestamp inline após título de seção */
.section-timestamp {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #dc3545;
    font-style: italic;
}

/* Área de adoção de sugestões */
.adotar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #66bb6a;
    border-radius: 10px;
}

.adotar-emoji {
    font-size: 24px;
}

.adotar-titulo {
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
    letter-spacing: 0.3px;
}

.adotar-row {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border: 2px dashed #8bc34a;
    border-radius: 10px;
    padding: 16px !important;
    margin: 0 0 16px 0 !important;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.adotar-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0 16px 0;
    color: #9e9e9e;
    font-size: 13px;
}

.adotar-separator::before,
.adotar-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.adotar-separator span {
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Botões de adotar transformação */
.btn-adotar {
    background: linear-gradient(180deg, #4caf50 0%, #43a047 100%) !important;
    border: 2px solid #388e3c !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4) !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
}

.btn-adotar:hover {
    background: linear-gradient(180deg, #43a047 0%, #388e3c 100%) !important;
    border-color: #2e7d32 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5) !important;
}

.btn-adotar:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3) !important;
}

/* Checkbox para marcar/desmarcar todos */
.checkbox-selecionar-todos {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
}

.checkbox-selecionar-todos label {
    font-weight: 600 !important;
    color: #495057 !important;
}

/* ============================================================
   CARDS E CONTAINERS
   ============================================================ */

.diagnosticos-container,
.dai-card {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

/* ============================================================
   STATS GRID (micronumerosidade)
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 12px 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.stat-label {
    font-weight: 500;
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    font-family: 'Consolas', monospace;
    color: #495057;
}

/* ============================================================
   TESTES ESTATÍSTICOS (micronumerosidade)
   ============================================================ */

.teste-item {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    margin: 4px 0;
    background: #fafafa;
    border-radius: 6px;
    align-items: center;
}

.teste-nome {
    font-weight: 600;
    color: #495057;
    min-width: 180px;
}

.teste-valor {
    font-family: 'Consolas', monospace;
    color: #6c757d;
}

.teste-interp {
    font-style: italic;
    color: #28a745;
    font-size: 13px;
}

/* ============================================================
   FIELD ROWS (diagnósticos do modelo)
   ============================================================ */

.field-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.field-row-label {
    font-weight: 500;
    color: #495057;
}

.field-row-value {
    font-weight: 600;
    font-family: 'Consolas', monospace;
    color: #495057;
}

.field-row-value-italic {
    font-style: italic;
    color: #495057;
    font-size: 13px;
}

/* ============================================================
   INTERPRETAÇÃO COM BULLETS
   ============================================================ */

.interpretation-label {
    padding: 8px 12px 4px;
    font-weight: 500;
    color: #495057;
    background: #fafafa;
}

.interpretation-item {
    padding: 2px 12px 2px 24px;
    font-size: 13px;
    color: #6c757d;
    background: #fafafa;
}

.interpretation-item:last-child {
    padding-bottom: 8px;
    border-radius: 0 0 6px 6px;
}

/* ============================================================
   EQUAÇÃO DO MODELO
   ============================================================ */

.equation-box {
    padding: 16px;
    margin: 8px 0;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    word-break: break-word;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF8C00;
    line-height: 1.6;
}

/* ============================================================
   BUSCA AUTOMÁTICA
   ============================================================ */

.busca-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px;
}

.modelo-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.modelo-rank {
    font-size: 24px;
    font-weight: 700;
    color: #FF8C00;
    margin-bottom: 8px;
}

.modelo-r2 {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.modelo-transf {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

.modelo-transf b {
    color: #495057;
}

/* ============================================================
   ACCORDIONS E GRUPOS
   ============================================================ */

.gradio-accordion {
    border: 2px solid #d0d0d0 !important;
    border-radius: 10px !important;
    margin: 8px 0 !important;
    background: white !important;
}

.gradio-accordion > .label-wrap {
    padding: 12px 16px !important;
    background: #fafafa !important;
    border-radius: 10px 10px 0 0 !important;
}

.gradio-group {
    background: white !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid #c0c0c0 !important;
}

/* ============================================================
   BOTÕES
   ============================================================ */

button.primary {
    background: #FF8C00 !important;
    border-color: #FF8C00 !important;
}

button.primary:hover {
    background: #e67e00 !important;
    border-color: #e67e00 !important;
}

button.secondary {
    background: #efefef !important;
    border-color: black !important;
    font-weight: bold !important;
}

/* ============================================================
   TABELAS
   ============================================================ */

.gradio-dataframe table {
    font-size: 13px !important;
}

.gradio-dataframe th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: #495057 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
}

.gradio-dataframe td {
    padding: 8px 12px !important;
}

.gradio-dataframe tr:hover {
    background: #fff8f0 !important;
    cursor: pointer;
}

/* ============================================================
   MAPA
   ============================================================ */

.map-container iframe {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
}

/* ============================================================
   INPUTS
   ============================================================ */

.gradio-dropdown,
.gradio-textbox input,
.gradio-checkbox-group {
    border-radius: 6px !important;
}

.gradio-checkbox-group label {
    padding: 6px 12px !important;
    margin: 4px !important;
    border-radius: 20px !important;
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.2s !important;
}

.gradio-checkbox-group label:hover {
    background: #fff8f0 !important;
    border-color: #FF8C00 !important;
}

.gradio-checkbox-group input:checked + label {
    background: #FF8C00 !important;
    color: white !important;
    border-color: #FF8C00 !important;
}

/* ============================================================
   GRÁFICOS PLOTLY
   ============================================================ */

.gradio-plot {
    background: white !important;
    border-radius: 8px !important;
    padding: 10px !important;
    border: 1px solid #e0e0e0 !important;
}

/* ============================================================
   SCROLLBARS
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .busca-container {
        flex-direction: column;
    }

    .modelo-card {
        max-width: 100%;
    }
}

/* ============================================================
   CARDS DE TRANSFORMAÇÃO
   ============================================================ */

.transf-card {
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 4px !important;
}

.transf-card:hover {
    border-color: #FF8C00 !important;
}

/* ============================================================
   ACCORDIONS DE SEÇÃO (COLAPSÁVEIS)
   ============================================================ */

/* Accordion de seção - estilo minimalista, label como toggle */
.section-accordion {
    margin: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Label do accordion - pequeno toggle */
.section-accordion > .label-wrap {
    padding: 8px 16px !important;
    background: #f8f9fa !important;
    border: 2px solid #c0c0c0 !important;
    border-radius: 0 0 12px 12px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    color: #6c757d !important;
}

.section-accordion > .label-wrap:hover {
    background: #fff8f0 !important;
    border-color: #FF8C00 !important;
}

.section-accordion[open] > .label-wrap {
    border-radius: 0 !important;
    border-top: none !important;
}

.section-accordion:not([open]) > .label-wrap {
    margin-top: -2px !important;
}

/* Conteúdo da seção */
.section-content {
    background: white !important;
    border: 2px solid #c0c0c0 !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.section-content:hover {
    border-color: #FF8C00 !important;
    transition: border-color 0.2s ease;
}

/* Container wrapper para header + accordion */
.section-wrapper {
    margin: 24px 0 8px 0 !important;
}

/* Animação de abertura */
.section-content:not([style*="display: none"]) {
    animation: sectionFadeIn 0.3s ease-in-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   BOTÕES DE FILTRO DE OUTLIERS
   ============================================================ */

.btn-remover-filtro {
    background: white !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    font-weight: 700 !important;
}

.btn-adicionar-filtro {
     background: white !important;
    border: 1px solid #333 !important;
    color: #333 !important;
    font-weight: 700 !important;
}

.btn-voltar-padrao {
    background: white !important;
    border: 1px solid #333 !important;
    color: #333 !important;
    font-weight: 700 !important;
}