File size: 5,489 Bytes
2bc88b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

# CSS Profissional
CUSTOM_CSS = """
/* Importar fontes profissionais do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Aplicar fonte Inter em todo o app */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Fonte monospace para código */
code, pre, .message code {
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
}

/* Header principal */
.gradio-container h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em;
}

/* Subtítulos */
.gradio-container h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b;
    margin-bottom: 1rem !important;
}

/* Descrições */
.gradio-container p {
    font-size: 1rem !important;
    color: #475569;
    line-height: 1.6;
}

/* Tabs - Estilo profissional */
.tabs button {
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    transition: all 0.2s ease !important;
}

.tabs button[aria-selected="true"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.tabs button:not([aria-selected="true"]) {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.tabs button:hover:not([aria-selected="true"]) {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* Botões principais */
button[variant="primary"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

button[variant="primary"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4) !important;
}

/* Botões secundários */
button[variant="secondary"] {
    background: #f8fafc !important;
    border: 2px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

button[variant="secondary"]:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}

/* Chatbot - Design limpo e profissional */
.message-wrap {
    padding: 1rem !important;
    margin: 0.5rem 0 !important;
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.message-wrap.user {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-left: 4px solid #3b82f6 !important;
}

.message-wrap.bot {
    background: #f8fafc !important;
    border-left: 4px solid #10b981 !important;
}

/* Input de texto */
.gr-textbox textarea {
    font-size: 1rem !important;
    padding: 0.875rem !important;
    border-radius: 0.5rem !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.gr-textbox textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Exemplos */
.examples {
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.examples button {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

.examples button:hover {
    background: #f1f5f9 !important;
    border-color: #3b82f6 !important;
    color: #1e3a8a !important;
    transform: translateY(-1px);
}

/* Imagem de visualização */
.gr-image {
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
}

/* Labels */
label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
}

/* Container principal */
.gradio-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Animação suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Badge de status */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
"""