jdesiree commited on
Commit
ae270dc
·
verified ·
1 Parent(s): 766d00f

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +581 -78
styles.css CHANGED
@@ -1,3 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* Import Oswald font - Google Fonts */
2
  @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
3
 
@@ -11,19 +53,23 @@
11
  visibility: hidden !important;
12
  }
13
 
 
 
 
14
  }
15
 
16
- /* Apply Oswald globally */
17
- *, *::before, *::after {
18
- font-family: "Oswald", sans-serif !important;
19
- color: #120f0e !important;
20
  }
21
 
 
22
  .title-header {
23
- background-color: rgb(240, 236, 230) !important;
24
  padding: 10px 20px;
25
  margin: 0 !important;
26
- border-bottom: 1pt solid #59524f;
27
  text-align: left;
28
  flex-shrink: 0 !important;
29
  height: 60px !important;
@@ -35,25 +81,77 @@
35
  .title-header h1 {
36
  font-size: 1.5rem;
37
  font-weight: 600 !important;
38
- color: #120f0e !important;
39
  margin: 0;
40
  padding: 0;
41
  }
42
 
43
- /* Input controls styling - acts as footer */
44
- .input-controls {
45
- padding: 15px 20px !important;
 
 
46
  background-color: rgb(240, 236, 230) !important;
47
- border-top: 1pt solid #59524f;
48
- flex-shrink: 0 !important;
49
- width: 100% !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
 
52
- /* Main container styling - viewport height with no top margin */
53
- .gradio-container-5-42-0 {
54
  background-color: rgb(240, 236, 230) !important;
55
  font-family: "Oswald", sans-serif !important;
56
- color: #120f0e !important;
57
  padding: 0 !important;
58
  margin: 0 !important;
59
  height: 100vh !important;
@@ -64,7 +162,7 @@
64
  }
65
 
66
  /* Target Gradio's internal structure */
67
- .gradio-container-5-42-0 > div {
68
  height: 95% !important;
69
  display: flex !important;
70
  flex-direction: column !important;
@@ -72,105 +170,259 @@
72
  margin-top: 0 !important;
73
  }
74
 
75
- /* Chat styling - FLEX to fill space */
76
- .gradio-container-5-42-0 .gradio-chatbot {
77
- background-color: #d9d1ce !important;
78
- border: 1pt solid #59524f !important;
 
 
 
 
 
79
  border-radius: 6px !important;
80
  padding: 15px !important;
81
- flex: 1 !important; /* Fill all remaining space */
82
- min-height: 0 !important; /* Prevent overflow issues */
83
  overflow-y: auto !important;
84
  margin: 15px 20px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  }
86
 
87
- /* Message styling */
88
- .gradio-container-5-42-0 .gradio-chatbot .message.bot .markdown {
89
- background-color: #f09c7d !important;
90
- color: #120f0e !important;
 
91
  border-radius: 8px !important;
92
  padding: 12px 16px !important;
93
- border: 1pt solid #59524f !important;
94
  max-width: 70%;
95
- margin-left: 0;
96
- margin-right: auto;
97
  word-wrap: break-word;
98
  font-weight: 400 !important;
99
  margin-bottom: 10px !important;
100
  }
101
 
102
- .gradio-container-5-42-0 .gradio-chatbot .message.user .markdown {
103
- background-color: #a69189 !important;
104
- color: #120f0e !important;
 
 
 
 
 
 
 
 
105
  border-radius: 8px !important;
106
  padding: 12px 16px !important;
107
- border: 1pt solid #59524f !important;
108
  max-width: 70%;
109
- margin-left: auto;
110
- margin-right: 0;
111
  word-wrap: break-word;
112
  font-weight: 400 !important;
113
  margin-bottom: 10px !important;
114
  }
115
 
116
- /* Input controls styling */
117
- .input-controls {
118
- padding: 15px 20px !important;
119
- background-color: rgb(240, 236, 230) !important;
120
- border-top: 1pt solid #59524f;
121
- flex-shrink: 0 !important;
 
 
 
 
 
 
 
 
122
  }
123
 
 
124
  .input-textbox textarea {
125
- background-color: #f0ece6 !important;
126
- border: 1pt solid #59524f !important;
127
  border-radius: 6px !important;
128
- color: #120f0e !important;
129
  font-family: "Oswald", sans-serif !important;
130
  padding: 10px !important;
131
  resize: none !important;
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  .input-textbox textarea:focus {
135
- border-color: #f09c7d !important;
136
- box-shadow: 0 0 0 2px rgba(240, 156, 125, 0.2) !important;
137
  }
138
 
139
- .button-column {
140
- margin-left: 10px !important;
141
- min-width: 80px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
 
144
- .send-button, .clear-button {
145
- border: 1pt solid #59524f !important;
146
- border-radius: 6px !important;
147
- font-weight: 500 !important;
148
- padding: 8px 16px !important;
149
- margin-bottom: 5px !important;
150
- width: 100% !important;
151
  }
152
 
 
153
  .send-button {
154
- background-color: #f09c7d !important;
155
- color: #120f0e !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  }
157
 
 
158
  .send-button:hover {
159
- background-color: #e8895a !important;
160
- border-color: #4a3f3c !important;
 
161
  }
162
 
 
163
  .clear-button {
164
- background-color: #a69189 !important;
165
- color: #120f0e !important;
 
 
 
 
 
 
 
 
 
166
  }
167
 
 
 
 
 
 
 
 
 
 
 
 
168
  .clear-button:hover {
169
- background-color: #8f7d73 !important;
170
- border-color: #4a3f3c !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  }
172
 
173
- /* Ensure Gradio footer is visible and properly positioned */
174
  footer.svelte-czcr5b {
175
  display: flex !important;
176
  visibility: visible !important;
@@ -178,41 +430,292 @@ footer.svelte-czcr5b {
178
  bottom: 0 !important;
179
  left: 0 !important;
180
  right: 0 !important;
181
- background-color: rgba(240, 236, 230, 0.95) !important;
182
  backdrop-filter: blur(5px) !important;
183
- border-top: 1pt solid #59524f !important;
184
  padding: 8px 16px !important;
185
  z-index: 1000 !important;
186
  height: auto !important;
187
  min-height: 40px !important;
188
  }
189
 
190
- /* Style the footer buttons to match your theme */
191
  footer.svelte-czcr5b button {
192
  background-color: transparent !important;
193
- color: #120f0e !important;
194
  border: none !important;
195
  font-family: "Oswald", sans-serif !important;
196
  font-size: 12px !important;
197
  }
198
 
 
199
  footer.svelte-czcr5b .divider {
200
- color: #59524f !important;
201
- }
202
-
203
- /* Adjust main container to account for footer */
204
- .main-container {
205
- padding-bottom: 50px !important;
206
  }
207
 
208
  /* Responsive design */
209
  @media (max-width: 768px) {
210
- .gradio-container-5-42-0 .gradio-chatbot .message.bot .markdown,
211
- .gradio-container-5-42-0 .gradio-chatbot .message.user .markdown {
212
  max-width: 85%;
213
  }
214
 
215
  .input-controls {
216
  padding: 10px !important;
217
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  }
 
1
+ :root {
2
+
3
+ /* Text colors */
4
+ --primarytext-color: #0f0e09;
5
+ --secondarytext-color: #696966;
6
+
7
+ /* Primary colors - Blue theme */
8
+ --primary-dark: #1e3a8a; /* Deep blue */
9
+ --primary-light: #3b82f6; /* Medium blue */
10
+
11
+ /* Secondary colors - Blue shades */
12
+ --secondary-dark: #1d4ed8; /* Darker blue */
13
+ --secondary-light: #60a5fa; /* Light blue */
14
+
15
+ /* Chat colors */
16
+ --user_message: #bfdbfe; /* Light blue bubble for user */
17
+ --ai_message: #14b8a6; /* Medium teal for AI */
18
+ --chathistory_area: #f3f4f6; /* Very light grey for chat history */
19
+
20
+ /* Text, Chat, UI */
21
+ --Send: #3b82f6; /* Send button - medium blue (lighter than clear) */
22
+ --clear: #1e40af; /* Clear button - darker blue */
23
+ --Send-hover: #2563eb; /* Send button hover */
24
+ --clear-hover: #1d4ed8; /* Clear button hover */
25
+ --text_areabackground: #f3f4f6; /* Very light grey for text areas */
26
+
27
+
28
+ /* Border thickness variables */
29
+ --border-thin: 1px;
30
+ --border-medium: 2px;
31
+
32
+ /* Semantic border variables */
33
+ --border-default: 1px;
34
+ --border-focus: 2px;
35
+ --border-hover: 3px;
36
+
37
+ /* Component-specific borders */
38
+ --button-border: 2px;
39
+ --input-border: 1px;
40
+ --card-border: 1px;
41
+ }
42
+
43
  /* Import Oswald font - Google Fonts */
44
  @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
45
 
 
53
  visibility: hidden !important;
54
  }
55
 
56
+ /* Specific text elements - ENSURE VISIBILITY */
57
+ body, p, span, div, h1, h2, h3, h4, h5, h6, label, a {
58
+ color: var(--primarytext-color) !important;
59
  }
60
 
61
+ /* All Gradio text elements - OVERRIDE GRADIO DEFAULTS */
62
+ .gradio-container,
63
+ .gradio-container *:not(textarea):not(input):not(button) {
64
+ color: var(--primarytext-color) !important;
65
  }
66
 
67
+ /* Title header with transparent background */
68
  .title-header {
69
+ background-color: transparent;
70
  padding: 10px 20px;
71
  margin: 0 !important;
72
+ border-bottom: var(--border-focus) solid var(--primary-dark);
73
  text-align: left;
74
  flex-shrink: 0 !important;
75
  height: 60px !important;
 
81
  .title-header h1 {
82
  font-size: 1.5rem;
83
  font-weight: 600 !important;
84
+ color: var(--primarytext-color) !important;
85
  margin: 0;
86
  padding: 0;
87
  }
88
 
89
+ /* More aggressive Gradio overrides - keep current background */
90
+ .gradio-container,
91
+ .gradio-container *,
92
+ [data-testid="block-container"],
93
+ .contain {
94
  background-color: rgb(240, 236, 230) !important;
95
+ font-family: "Oswald", sans-serif !important;
96
+ }
97
+
98
+ /* Chat container - target all possible selectors */
99
+ [data-testid="chatbot"],
100
+ .chatbot,
101
+ .gradio-chatbot,
102
+ #main-chatbot,
103
+ [role="log"] {
104
+ background-color: var(--chathistory_area) !important;
105
+ border: var(--border-default) solid var(--primary-dark) !important;
106
+ border-radius: 6px !important;
107
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
108
+ }
109
+
110
+ /* Text input - target all possible selectors */
111
+ [data-testid="textbox"] textarea,
112
+ .gradio-textbox textarea,
113
+ textarea {
114
+ background-color: var(--text_areabackground) !important;
115
+ border: var(--input-border) solid var(--secondary-dark) !important;
116
+ border-radius: 6px !important;
117
+ color: var(--primarytext-color) !important;
118
+ font-family: "Oswald", sans-serif !important;
119
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
120
+ }
121
+
122
+ /* Buttons - target all possible selectors */
123
+ [data-testid="button"],
124
+ .gradio-button,
125
+ button.send-button,
126
+ button.clear-button {
127
+ border-radius: 6px !important;
128
+ font-family: "Oswald", sans-serif !important;
129
+ font-weight: 500 !important;
130
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
131
+ color: var(--primarytext-color) !important;
132
+ }
133
+
134
+ /* Send button specific */
135
+ button.send-button,
136
+ [data-testid="button"]:nth-of-type(1) {
137
+ background-color: var(--Send) !important;
138
+ color: var(--primarytext-color) !important;
139
+ border: var(--button-border) solid var(--secondary-dark) !important;
140
+ }
141
+
142
+ /* Clear button specific */
143
+ button.clear-button,
144
+ [data-testid="button"]:nth-of-type(2) {
145
+ background-color: var(--clear) !important;
146
+ color: var(--primarytext-color) !important;
147
+ border: var(--button-border) solid var(--secondary-dark) !important;
148
  }
149
 
150
+ /* Background area behind everything */
151
+ .gradio-container {
152
  background-color: rgb(240, 236, 230) !important;
153
  font-family: "Oswald", sans-serif !important;
154
+ color: var(--primarytext-color) !important;
155
  padding: 0 !important;
156
  margin: 0 !important;
157
  height: 100vh !important;
 
162
  }
163
 
164
  /* Target Gradio's internal structure */
165
+ .gradio-container > div {
166
  height: 95% !important;
167
  display: flex !important;
168
  flex-direction: column !important;
 
170
  margin-top: 0 !important;
171
  }
172
 
173
+ /* Main container wrapper */
174
+ .main-container {
175
+ padding-bottom: 50px !important;
176
+ }
177
+
178
+ /* Chat history container/box */
179
+ #main-chatbot {
180
+ border: var(--border-default) solid var(--primary-dark);
181
+ background-color: var(--chathistory_area);
182
  border-radius: 6px !important;
183
  padding: 15px !important;
184
+ flex: 1 !important;
185
+ min-height: 0 !important;
186
  overflow-y: auto !important;
187
  margin: 15px 20px !important;
188
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
189
+ color: var(--primarytext-color) !important;
190
+ }
191
+
192
+ /* Gradio-specific chat container selectors */
193
+ .gradio-container .gradio-chatbot {
194
+ background-color: var(--chathistory_area) !important;
195
+ border: var(--border-default) solid var(--primary-dark) !important;
196
+ border-radius: 6px !important;
197
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
198
+ }
199
+
200
+ .gradio-container .gradio-chatbot > div {
201
+ background-color: var(--chathistory_area) !important;
202
+ }
203
+
204
+ .gradio-container .gradio-chatbot .message {
205
+ background-color: transparent !important;
206
+ }
207
+
208
+ /* User message text box */
209
+ .message.user {
210
+ border: 1pt solid var(--secondary-dark);
211
+ background-color: var(--user_message);
212
  }
213
 
214
+ /* User message markdown styling */
215
+ .message.user .markdown,
216
+ .message.user .markdown * {
217
+ background-color: var(--user_message) !important;
218
+ color: var(--primarytext-color) !important;
219
  border-radius: 8px !important;
220
  padding: 12px 16px !important;
221
+ border: var(--border-default) solid var(--primary-dark) !important;
222
  max-width: 70%;
223
+ margin-left: auto;
224
+ margin-right: 0;
225
  word-wrap: break-word;
226
  font-weight: 400 !important;
227
  margin-bottom: 10px !important;
228
  }
229
 
230
+ /* AI message text box */
231
+ .message.bot {
232
+ border: 1pt solid var(--secondary-dark);
233
+ background-color: var(--ai_message);
234
+ }
235
+
236
+ /* AI message markdown styling */
237
+ .message.bot .markdown,
238
+ .message.bot .markdown * {
239
+ background-color: var(--ai_message) !important;
240
+ color: var(--primarytext-color) !important;
241
  border-radius: 8px !important;
242
  padding: 12px 16px !important;
243
+ border: var(--border-default) solid var(--secondary-dark) !important;
244
  max-width: 70%;
245
+ margin-left: 0;
246
+ margin-right: auto;
247
  word-wrap: break-word;
248
  font-weight: 400 !important;
249
  margin-bottom: 10px !important;
250
  }
251
 
252
+ /* Chat message text content - CRITICAL FIX */
253
+ .message.user .markdown p,
254
+ .message.user .markdown span,
255
+ .message.user .markdown div,
256
+ .message.bot .markdown p,
257
+ .message.bot .markdown span,
258
+ .message.bot .markdown div {
259
+ color: var(--primarytext-color) !important;
260
+ }
261
+
262
+ /* Input textbox */
263
+ .input-textbox {
264
+ border: var(--border-default) solid var(--primary-dark);
265
+ background-color: var(--text_areabackground);
266
  }
267
 
268
+ /* Input textbox textarea styling */
269
  .input-textbox textarea {
270
+ background-color: var(--text_areabackground) !important;
271
+ border: var(--input-border) solid var(--secondary-dark) !important;
272
  border-radius: 6px !important;
273
+ color: var(--primarytext-color) !important;
274
  font-family: "Oswald", sans-serif !important;
275
  padding: 10px !important;
276
  resize: none !important;
277
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
278
+ }
279
+
280
+ /* More specific Gradio textarea selectors */
281
+ .gradio-container textarea {
282
+ background-color: var(--text_areabackground) !important;
283
+ border: var(--input-border) solid var(--secondary-dark) !important;
284
+ border-radius: 6px !important;
285
+ color: var(--primarytext-color) !important;
286
+ font-family: "Oswald", sans-serif !important;
287
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
288
  }
289
 
290
+ .gradio-container .gradio-textbox textarea {
291
+ background-color: var(--text_areabackground) !important;
292
+ border: var(--input-border) solid var(--secondary-dark) !important;
293
+ border-radius: 6px !important;
294
+ color: var(--primarytext-color) !important;
295
+ font-family: "Oswald", sans-serif !important;
296
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
297
+ }
298
+
299
+ .gradio-container .gradio-textbox {
300
+ background-color: transparent !important;
301
+ border: none !important;
302
+ }
303
+
304
+ /* Input textbox focus state */
305
  .input-textbox textarea:focus {
306
+ border-color: var(--secondary-light) !important;
307
+ box-shadow: 0 0 0 var(--border-focus) rgba(96, 165, 250, 0.2) !important;
308
  }
309
 
310
+ /* General textarea styling */
311
+ textarea {
312
+ border: var(--border-default) solid var(--primary-dark);
313
+ background-color: var(--text_areabackground);
314
+ background-color: var(--text_areabackground) !important;
315
+ border: var(--input-border) solid var(--secondary-dark) !important;
316
+ border-radius: 6px !important;
317
+ color: var(--primarytext-color) !important;
318
+ font-family: "Oswald", sans-serif !important;
319
+ padding: 10px !important;
320
+ resize: none !important;
321
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
322
+ }
323
+
324
+ /* General textarea focus state */
325
+ textarea:focus {
326
+ border-color: var(--secondary-light) !important;
327
+ box-shadow: 0 0 0 var(--border-focus) rgba(96, 165, 250, 0.2) !important;
328
+ }
329
+
330
+ /* Input text - ENSURE VISIBILITY */
331
+ textarea, input {
332
+ color: var(--primarytext-color) !important;
333
  }
334
 
335
+ /* Input placeholder text */
336
+ textarea::placeholder,
337
+ input::placeholder {
338
+ color: var(--secondarytext-color) !important;
 
 
 
339
  }
340
 
341
+ /* Send button */
342
  .send-button {
343
+ border: 1pt solid var(--secondary-dark);
344
+ background-color: var(--Send);
345
+ border: var(--button-border) solid var(--secondary-dark) !important;
346
+ border-radius: 6px !important;
347
+ font-weight: 500 !important;
348
+ padding: 8px 16px !important;
349
+ margin-bottom: 5px !important;
350
+ width: 100% !important;
351
+ background-color: var(--Send) !important;
352
+ color: var(--primarytext-color) !important;
353
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
354
+ }
355
+
356
+ /* Gradio-specific button selectors */
357
+ .gradio-container button.send-button {
358
+ background-color: var(--Send) !important;
359
+ color: var(--primarytext-color) !important;
360
+ border: var(--button-border) solid var(--secondary-dark) !important;
361
+ border-radius: 6px !important;
362
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
363
+ font-family: "Oswald", sans-serif !important;
364
  }
365
 
366
+ /* Send button hover */
367
  .send-button:hover {
368
+ background-color: var(--Send-hover);
369
+ background-color: var(--Send-hover) !important;
370
+ border-color: var(--secondary-dark) !important;
371
  }
372
 
373
+ /* Clear button */
374
  .clear-button {
375
+ border: 1pt solid var(--secondary-dark);
376
+ background-color: var(--clear);
377
+ border: var(--button-border) solid var(--secondary-dark) !important;
378
+ border-radius: 6px !important;
379
+ font-weight: 500 !important;
380
+ padding: 8px 16px !important;
381
+ margin-bottom: 5px !important;
382
+ width: 100% !important;
383
+ background-color: var(--clear) !important;
384
+ color: var(--primarytext-color) !important;
385
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
386
  }
387
 
388
+ /* Gradio-specific clear button selector */
389
+ .gradio-container button.clear-button {
390
+ background-color: var(--clear) !important;
391
+ color: var(--primarytext-color) !important;
392
+ border: var(--button-border) solid var(--secondary-dark) !important;
393
+ border-radius: 6px !important;
394
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
395
+ font-family: "Oswald", sans-serif !important;
396
+ }
397
+
398
+ /* Clear button hover */
399
  .clear-button:hover {
400
+ background-color: var(--clear-hover);
401
+ background-color: var(--clear-hover) !important;
402
+ border-color: var(--secondary-dark) !important;
403
+ }
404
+
405
+ /* Button text - ENSURE VISIBILITY */
406
+ button, .gradio-button {
407
+ color: var(--primarytext-color) !important;
408
+ }
409
+
410
+
411
+ /* Input controls container */
412
+ .input-controls {
413
+ padding: 15px 20px !important;
414
+ background-color: transparent !important;
415
+ flex-shrink: 0 !important;
416
+ width: 100% !important;
417
+ }
418
+
419
+ /* Button column container */
420
+ .button-column {
421
+ margin-left: 10px !important;
422
+ min-width: 80px !important;
423
  }
424
 
425
+ /* Gradio footer styling */
426
  footer.svelte-czcr5b {
427
  display: flex !important;
428
  visibility: visible !important;
 
430
  bottom: 0 !important;
431
  left: 0 !important;
432
  right: 0 !important;
433
+ background-color: transparent !important;
434
  backdrop-filter: blur(5px) !important;
435
+ border-top: var(--border-default) solid #59524f !important;
436
  padding: 8px 16px !important;
437
  z-index: 1000 !important;
438
  height: auto !important;
439
  min-height: 40px !important;
440
  }
441
 
442
+ /* Footer buttons styling */
443
  footer.svelte-czcr5b button {
444
  background-color: transparent !important;
445
+ color: var(--secondarytext-color) !important;
446
  border: none !important;
447
  font-family: "Oswald", sans-serif !important;
448
  font-size: 12px !important;
449
  }
450
 
451
+ /* Footer divider styling */
452
  footer.svelte-czcr5b .divider {
453
+ color: var(--secondarytext-color) !important;
 
 
 
 
 
454
  }
455
 
456
  /* Responsive design */
457
  @media (max-width: 768px) {
458
+ .message.bot .markdown,
459
+ .message.user .markdown {
460
  max-width: 85%;
461
  }
462
 
463
  .input-controls {
464
  padding: 10px !important;
465
  }
466
+ }
467
+
468
+ /* Dark mode variables pulled from HTML when testing the app */
469
+ /* This is meant to address the issue of Mimir not applying dark mode correctly */
470
+ /* and ensure consistency regardless of user system settings */
471
+ :root .dark {
472
+ --body-background-fill: var(--text_areabackground);
473
+ --body-text-color: var(--primarytext-color);
474
+ --color-accent-soft: var(--primary-light);
475
+ --background-fill-primary: var(--chathistory_area);
476
+ --background-fill-secondary: var(--text_areabackground);
477
+ --border-color-accent: var(--primary-dark);
478
+ --border-color-primary: var(--primary-dark);
479
+ --link-text-color-active: var(--secondary-light);
480
+ --link-text-color: var(--secondary-light);
481
+ --link-text-color-hover: var(--secondary-dark);
482
+ --link-text-color-visited: var(--secondary-dark);
483
+ --body-text-color-subdued: var(--secondarytext-color);
484
+ --accordion-text-color: var(--primarytext-color);
485
+ --table-text-color: var(--primarytext-color);
486
+ --shadow-spread: 1px;
487
+ --block-background-fill: var(--chathistory_area);
488
+ --block-border-color: var(--primary-dark);
489
+ --block_border_width: 1.5px;
490
+ --block-info-text-color: var(--secondarytext-color);
491
+ --block-label-background-fill: var(--text_areabackground);
492
+ --block-label-border-color: var(--primary-dark);
493
+ --block_label_border_width: 1.5px;
494
+ --block-label-text-color: var(--primarytext-color);
495
+ --block_shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
496
+ --block_title_background_fill: transparent;
497
+ --block_title_border_color: var(--primary-dark);
498
+ --block_title_border_width: 1.5px;
499
+ --block-title-text-color: var(--primarytext-color);
500
+ --panel-background-fill: var(--text_areabackground);
501
+ --panel-border-color: var(--primary-dark);
502
+ --panel_border_width: 1.5px;
503
+ --border-color-accent-subdued: var(--secondary-dark);
504
+ --code-background-fill: var(--primary-light);
505
+ --checkbox-background-color: var(--text_areabackground);
506
+ --checkbox-background-color-focus: var(--text_areabackground);
507
+ --checkbox-background-color-hover: var(--text_areabackground);
508
+ --checkbox-background-color-selected: var(--primary-light);
509
+ --checkbox-border-color: var(--primary-dark);
510
+ --checkbox-border-color-focus: var(--secondary-light);
511
+ --checkbox-border-color-hover: var(--secondary-dark);
512
+ --checkbox-border-color-selected: var(--secondary-light);
513
+ --checkbox-border-width: 1.5px;
514
+ --checkbox-label-background-fill: var(--text_areabackground);
515
+ --checkbox-label-background-fill-hover: var(--text_areabackground);
516
+ --checkbox-label-background-fill-selected: var(--primary-light);
517
+ --checkbox-label-border-color: var(--primary-dark);
518
+ --checkbox-label-border-color-hover: var(--secondary-dark);
519
+ --checkbox-label-border-color-selected: var(--secondary-light);
520
+ --checkbox-label-border-width: 1.5px;
521
+ --checkbox-label-text-color: var(--primarytext-color);
522
+ --checkbox-label-text-color-selected: var(--primarytext-color);
523
+ --error-background-fill: var(--text_areabackground);
524
+ --error-border-color: #ef4444;
525
+ --error_border_width: 1.5px;
526
+ --error-text-color: #ef4444;
527
+ --error-icon-color: #ef4444;
528
+ --input-background-fill: var(--text_areabackground);
529
+ --input_background_fill_focus: var(--text_areabackground);
530
+ --input-background-fill-hover: var(--text_areabackground);
531
+ --input-border-color: var(--secondary-dark);
532
+ --input-border-color-focus: var(--secondary-light);
533
+ --input-border-color-hover: var(--secondary-dark);
534
+ --input_border_width: 1.5px;
535
+ --input-placeholder-color: var(--secondarytext-color);
536
+ --input_shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
537
+ --input-shadow-focus: 0 0 0 var(--shadow-spread) rgba(96, 165, 250, 0.2), var(--shadow-inset);
538
+ --loader_color: var(--secondary-light);
539
+ --slider_color: var(--secondary-light);
540
+ --stat-background-fill: linear-gradient(to right, var(--primary-light), var(--primary-dark));
541
+ --table-border-color: var(--primary-dark);
542
+ --table-even-background-fill: var(--text_areabackground);
543
+ --table-odd-background-fill: var(--chathistory_area);
544
+ --table-row-focus: var(--secondary-light);
545
+ --button-border-width: 1.5px;
546
+ --button-cancel-background-fill: var(--clear);
547
+ --button-cancel-background-fill-hover: var(--clear-hover);
548
+ --button-cancel-border-color: var(--secondary-dark);
549
+ --button-cancel-border-color-hover: var(--secondary-dark);
550
+ --button-cancel-text-color: var(--primarytext-color);
551
+ --button-cancel-text-color-hover: var(--primarytext-color);
552
+ --button-primary-background-fill: var(--Send);
553
+ --button-primary-background-fill-hover: var(--Send-hover);
554
+ --button-primary-border-color: var(--secondary-dark);
555
+ --button-primary-border-color-hover: var(--secondary-dark);
556
+ --button-primary-text-color: var(--primarytext-color);
557
+ --button-primary-text-color-hover: var(--primarytext-color);
558
+ --button_primary_shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
559
+ --button-primary-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.1);
560
+ --button-primary-shadow-active: 0 2px 4px rgba(0, 0, 0, 0.1);
561
+ --button-secondary-background-fill: var(--clear);
562
+ --button-secondary-background-fill-hover: var(--clear-hover);
563
+ --button-secondary-border-color: var(--secondary-dark);
564
+ --button-secondary-border-color-hover: var(--secondary-dark);
565
+ --button-secondary-text-color: var(--primarytext-color);
566
+ --button-secondary-text-color-hover: var(--primarytext-color);
567
+ --button_secondary_shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
568
+ --button-secondary-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.1);
569
+ --button-secondary-shadow-active: 0 2px 4px rgba(0, 0, 0, 0.1);
570
+ --name: origin;
571
+ --primary-50: #eff6ff;
572
+ --primary-100: #dbeafe;
573
+ --primary-200: #bfdbfe;
574
+ --primary-300: #93c5fd;
575
+ --primary-400: #60a5fa;
576
+ --primary-500: #3b82f6;
577
+ --primary-600: #2563eb;
578
+ --primary-700: #1d4ed8;
579
+ --primary-800: #1e40af;
580
+ --primary-900: #1e3a8a;
581
+ --primary-950: #172554;
582
+ --secondary-50: #f0f9ff;
583
+ --secondary-100: #e0f2fe;
584
+ --secondary-200: #bae6fd;
585
+ --secondary-300: #7dd3fc;
586
+ --secondary-400: #38bdf8;
587
+ --secondary-500: #0ea5e9;
588
+ --secondary-600: #0284c7;
589
+ --secondary-700: #0369a1;
590
+ --secondary-800: #075985;
591
+ --secondary-900: #0c4a6e;
592
+ --secondary-950: #082f49;
593
+ --neutral-50: #f9fafb;
594
+ --neutral-100: #f3f4f6;
595
+ --neutral-200: #e5e7eb;
596
+ --neutral-300: #d1d5db;
597
+ --neutral-400: #9ca3af;
598
+ --neutral-500: #6b7280;
599
+ --neutral-600: #4b5563;
600
+ --neutral-700: #374151;
601
+ --neutral-800: #1f2937;
602
+ --neutral-900: #111827;
603
+ --neutral-950: #0b0f19;
604
+ --spacing-xxs: 1px;
605
+ --spacing-xs: 2px;
606
+ --spacing-sm: 4px;
607
+ --spacing-md: 6px;
608
+ --spacing-lg: 8px;
609
+ --spacing-xl: 10px;
610
+ --spacing-xxl: 16px;
611
+ --radius-xxs: 1px;
612
+ --radius-xs: 2px;
613
+ --radius-sm: 4px;
614
+ --radius-md: 6px;
615
+ --radius-lg: 8px;
616
+ --radius-xl: 12px;
617
+ --radius-xxl: 22px;
618
+ --text-xxs: 9px;
619
+ --text-xs: 10px;
620
+ --text-sm: 12px;
621
+ --text-md: 14px;
622
+ --text-lg: 16px;
623
+ --text-xl: 22px;
624
+ --text-xxl: 26px;
625
+ --font: 'Oswald', ui-sans-serif, system-ui, sans-serif;
626
+ --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
627
+ --body-text-size: var(--text-md);
628
+ --body-text-weight: 400;
629
+ --embed-radius: var(--radius-sm);
630
+ --color-accent: var(--secondary-light);
631
+ --shadow-drop: 0 2px 4px rgba(0, 0, 0, 0.1);
632
+ --shadow-drop-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
633
+ --shadow-inset: 0 2px 4px rgba(0, 0, 0, 0.1) inset;
634
+ --block-border-width: 1.5px;
635
+ --block-info-text-size: var(--text-sm);
636
+ --block-info-text-weight: 400;
637
+ --block-label-border-width: 1.5px;
638
+ --block-label-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
639
+ --block-label-margin: 0;
640
+ --block-label-padding: var(--spacing-sm) var(--spacing-lg);
641
+ --block-label-radius: calc(var(--radius-sm) - 1px) 0 calc(var(--radius-sm) - 1px) 0;
642
+ --block-label-right-radius: 0 calc(var(--radius-sm) - 1px) 0 calc(var(--radius-sm) - 1px);
643
+ --block-label-text-size: var(--text-sm);
644
+ --block-label-text-weight: 400;
645
+ --block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
646
+ --block-radius: var(--radius-sm);
647
+ --block-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
648
+ --block-title-background-fill: transparent;
649
+ --block-title-border-color: var(--primary-dark);
650
+ --block-title-border-width: 1.5px;
651
+ --block-title-padding: 0;
652
+ --block-title-radius: var(--radius-sm);
653
+ --block-title-text-size: var(--text-md);
654
+ --block-title-text-weight: 400;
655
+ --container-radius: var(--radius-sm);
656
+ --form-gap-width: 1.5px;
657
+ --layout-gap: var(--spacing-xxl);
658
+ --panel-border-width: 1.5px;
659
+ --section-header-text-size: var(--text-md);
660
+ --section-header-text-weight: 400;
661
+ --chatbot-text-size: var(--text-lg);
662
+ --checkbox-border-radius: var(--radius-sm);
663
+ --checkbox-label-gap: var(--spacing-lg);
664
+ --checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
665
+ --checkbox-label-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
666
+ --checkbox-label-text-size: var(--text-md);
667
+ --checkbox-label-text-weight: 400;
668
+ --checkbox-check: url(data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%230f0e09' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e);
669
+ --radio-circle: url(data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%230f0e09' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e);
670
+ --checkbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
671
+ --error-border-width: 1.5px;
672
+ --input-background-fill-focus: var(--text_areabackground);
673
+ --input-border-width: 1.5px;
674
+ --input-padding: var(--spacing-xl);
675
+ --input-radius: var(--radius-sm);
676
+ --input-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
677
+ --input-text-size: var(--text-md);
678
+ --input-text-weight: 400;
679
+ --loader-color: var(--secondary-light);
680
+ --prose-text-size: var(--text-md);
681
+ --prose-text-weight: 400;
682
+ --prose-header-text-weight: 600;
683
+ --slider-color: var(--secondary-light);
684
+ --table-radius: var(--radius-sm);
685
+ --button-transform-hover: none;
686
+ --button-transform-active: none;
687
+ --button-transition: none;
688
+ --button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
689
+ --button-large-radius: var(--radius-md);
690
+ --button-large-text-size: var(--text-lg);
691
+ --button-large-text-weight: 600;
692
+ --button-primary-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
693
+ --button-secondary-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
694
+ --button-small-padding: var(--spacing-sm) calc(1.5 * var(--spacing-sm));
695
+ --button-small-radius: var(--radius-md);
696
+ --button-small-text-size: var(--text-sm);
697
+ --button-small-text-weight: 400;
698
+ --button-medium-padding: var(--spacing-md) calc(2 * var(--spacing-md));
699
+ --button-medium-radius: var(--radius-md);
700
+ --button-medium-text-size: var(--text-md);
701
+ --button-medium-text-weight: 600;
702
+ }
703
+
704
+ /* Force text color on all elements - FIX FOR WHITE TEXT */
705
+ * {
706
+ color: var(--primarytext-color) !important;
707
+ font-family: "Oswald", sans-serif !important;
708
+ }
709
+
710
+ @media (prefers-color-scheme: dark) {
711
+ body {
712
+ background: var(--text_areabackground);
713
+ color: var(--primarytext-color);
714
+ }
715
+ }
716
+
717
+ body {
718
+ background: var(--text_areabackground);
719
+ color: var(--primarytext-color);
720
+ font-family: "Oswald", sans-serif;
721
  }