File size: 8,140 Bytes
b3e9b70
 
 
 
 
febcd9c
 
b3e9b70
 
 
febcd9c
 
 
 
b3e9b70
 
 
febcd9c
 
 
 
b3e9b70
febcd9c
 
 
 
 
b3e9b70
febcd9c
 
 
b3e9b70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
febcd9c
b3e9b70
febcd9c
 
 
 
 
b3e9b70
 
 
 
febcd9c
 
b3e9b70
 
 
 
 
 
febcd9c
b3e9b70
 
 
febcd9c
 
 
b3e9b70
 
febcd9c
b3e9b70
 
febcd9c
 
 
b3e9b70
febcd9c
 
 
 
b3e9b70
 
febcd9c
b3e9b70
 
 
 
 
 
 
 
febcd9c
b3e9b70
febcd9c
b3e9b70
febcd9c
b3e9b70
 
febcd9c
b3e9b70
febcd9c
b3e9b70
 
 
 
 
 
 
 
 
 
 
 
febcd9c
 
b3e9b70
 
 
febcd9c
b3e9b70
febcd9c
b3e9b70
febcd9c
b3e9b70
 
 
 
febcd9c
b3e9b70
 
 
 
 
febcd9c
b3e9b70
febcd9c
b3e9b70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
febcd9c
 
b3e9b70
 
 
 
 
 
febcd9c
b3e9b70
 
 
 
 
febcd9c
 
b3e9b70
febcd9c
b3e9b70
 
 
 
 
 
febcd9c
 
b3e9b70
 
 
 
febcd9c
b3e9b70
febcd9c
 
b3e9b70
 
 
febcd9c
b3e9b70
 
febcd9c
b3e9b70
 
 
 
 
 
febcd9c
b3e9b70
febcd9c
 
b3e9b70
 
 
 
febcd9c
 
b3e9b70
 
 
 
 
 
 
 
 
 
febcd9c
 
 
b3e9b70
 
febcd9c
b3e9b70
 
 
 
 
 
 
 
 
febcd9c
 
 
b3e9b70
febcd9c
b3e9b70
febcd9c
 
 
 
 
 
b3e9b70
febcd9c
b3e9b70
febcd9c
b3e9b70
febcd9c
b3e9b70
febcd9c
b3e9b70
 
 
 
 
 
 
febcd9c
b3e9b70
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
/* =========================================================
   ESCP THEME — compatible Gradio 6.x
   ========================================================= */
 
/* --- Background on root elements --- */
gradio-app,
.gradio-app,
body,
html {
  background-color: rgb(40, 9, 109) !important;
  background-image:
    url('https://huggingface.co/spaces/atascioglu/SE21AppTemplate/resolve/main/background_top.png'),
    url('https://huggingface.co/spaces/atascioglu/SE21AppTemplate/resolve/main/background_mid.png'),
    url('https://huggingface.co/spaces/atascioglu/SE21AppTemplate/resolve/main/background_bottom.png') !important;
  background-position: top center, 0 913px, bottom center !important;
  background-repeat: no-repeat, repeat-y, no-repeat !important;
  background-size: 100% auto, 100% auto, 100% auto !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}
 
/* --- Main container --- */
.gradio-container {
  max-width: 1400px !important;
  width: 94vw !important;
  margin: 0 auto !important;
  padding-top: 40px !important;
  padding-bottom: 150px !important;
  background: transparent !important;
}
 
/* =========================================================
   FIX PRINCIPAL : texte noir dans les zones blanches
   ========================================================= */
 
/* Toutes les zones de contenu blanc → texte sombre */
.tabitem,
.tabitem *:not(button):not([role="tab"]),
.tab-content,
.tab-content *:not(button):not([role="tab"]) {
  color: #1a1a1a !important;
}
 
/* Inputs, textareas, selects */
input, textarea, select,
.gradio-container input,
.gradio-container textarea,
.gradio-container select {
  color: #1a1a1a !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
}
 
/* Labels des composants */
label, .label-wrap, .label-wrap span,
span.svelte-1ed2p3z,
.block label span {
  color: #374151 !important;
}
 
/* Dataframes / tables */
table, th, td,
[data-testid="dataframe"] table,
[data-testid="dataframe"] th,
[data-testid="dataframe"] td {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
}
 
th {
  background-color: #f3f4f6 !important;
  font-weight: 600 !important;
}
 
/* Log textbox */
.gradio-container textarea {
  color: #1a1a1a !important;
  font-family: monospace !important;
  font-size: 0.8rem !important;
}
 
/* Chatbot messages */
.message-wrap .message,
[data-testid="bot"],
[data-testid="user"],
.bubble-wrap {
  color: #1a1a1a !important;
}
 
/* =========================================================
   TITRE ESCP
   ========================================================= */
#escp_title h1 {
  color: rgb(242, 198, 55) !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin: 0 0 12px 0 !important;
}
 
#escp_title p,
#escp_title em {
  color: rgba(255, 255, 255, 0.85) !important;
  text-align: center !important;
}
 
/* =========================================================
   TABS — Gradio 6 utilise des classes différentes
   ========================================================= */
 
/* Barre de navigation des tabs */
.tabs > .tab-nav,
[role="tablist"],
.tab-nav {
  background: rgba(40, 9, 109, 0.6) !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 4px !important;
}
 
/* Tous les boutons tab → blanc */
button[role="tab"],
.tab-nav button,
[role="tablist"] button {
  color: #ffffff !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 8px 8px 0 0 !important;
  opacity: 1 !important;
}
 
/* Tab sélectionné → or ESCP */
button[role="tab"][aria-selected="true"],
.tab-nav button.selected,
button[role="tab"].selected {
  color: rgb(242, 198, 55) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-bottom: 2px solid rgb(242, 198, 55) !important;
}
 
/* Tab non sélectionné → blanc */
button[role="tab"][aria-selected="false"],
button[role="tab"]:not(.selected) {
  color: #ffffff !important;
  opacity: 0.85 !important;
}
 
/* Contenu des tabs → fond blanc */
.tabitem {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 0 0 10px 10px !important;
  padding: 20px !important;
}
 
/* =========================================================
   BOUTONS
   ========================================================= */
 
/* Boutons primaires */
button.primary,
.gr-button-primary,
[data-testid="button"].primary {
  background-color: rgb(40, 9, 109) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
}
 
button.primary:hover {
  background-color: rgb(60, 20, 140) !important;
}
 
/* Boutons secondaires */
button.secondary,
.gr-button-secondary {
  background-color: #ffffff !important;
  color: rgb(40, 9, 109) !important;
  border: 2px solid rgb(40, 9, 109) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
}
 
button.secondary:hover {
  background-color: rgb(240, 238, 250) !important;
}
 
/* =========================================================
   COMPOSANTS GRADIO 6
   ========================================================= */
 
/* Blocks / panels */
.block,
.gr-block,
.gr-box,
.gr-panel,
.gr-group,
.contain {
  background: #ffffff !important;
  border-radius: 10px !important;
}
 
/* Gallery */
.gallery,
.grid-wrap {
  background: #ffffff !important;
  border-radius: 10px !important;
}
 
/* Chatbot */
.chatbot,
.chat-wrap,
[data-testid="chatbot"] {
  background-color: #ffffff !important;
  border-radius: 12px !important;
  min-height: 380px !important;
}
 
/* Messages user */
[data-testid="user"] .bubble-wrap,
.message.user {
  background-color: rgb(232, 225, 250) !important;
  color: #1a1a1a !important;
  border-radius: 12px !important;
}
 
/* Messages bot */
[data-testid="bot"] .bubble-wrap,
.message.bot {
  background-color: #f3f4f6 !important;
  color: #1a1a1a !important;
  border-radius: 12px !important;
}
 
/* Dropdown */
.dropdown, select {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-radius: 8px !important;
}
 
/* =========================================================
   HEADINGS dans les tabs
   ========================================================= */
.tabitem h1,
.tabitem h2,
.tabitem h3 {
  color: rgb(40, 9, 109) !important;
  font-weight: 700 !important;
}
 
.tabitem h4,
.tabitem h5,
.tabitem p {
  color: #374151 !important;
}
 
/* =========================================================
   EXAMPLES (boutons de suggestion)
   ========================================================= */
.examples table td,
.examples-row button,
.gr-samples-table td {
  background: rgb(240, 238, 250) !important;
  color: rgb(40, 9, 109) !important;
  border: 1px solid rgb(40, 9, 109) !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
}
 
.examples table td:hover,
.examples-row button:hover {
  background: rgb(232, 225, 250) !important;
}
 
/* =========================================================
   FOOTER / HEADER — transparent
   ========================================================= */
header, footer,
header *, footer *,
.footer, .footer * {
  background: transparent !important;
  box-shadow: none !important;
}
 
footer a, footer button,
header a, header button,
section footer button,
section footer a {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
 
section footer button:hover,
section footer a:hover {
  background: transparent !important;
  color: #ffffff !important;
}
 
/* =========================================================
   KPI CARDS — laisser le style inline fonctionner
   ========================================================= */
.kpi-card {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #2d1f4e !important;
}