File size: 4,300 Bytes
37e6ed5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9bf619b
37e6ed5
 
 
 
9bf619b
37e6ed5
 
9bf619b
 
37e6ed5
 
9bf619b
37e6ed5
9bf619b
37e6ed5
 
 
9bf619b
 
 
 
 
37e6ed5
 
 
 
 
 
 
9bf619b
37e6ed5
 
 
9bf619b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37e6ed5
 
 
9bf619b
 
 
 
 
 
37e6ed5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9bf619b
 
 
 
 
37e6ed5
 
9bf619b
 
 
cd0a643
93d666c
9bf619b
f2646be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d47ffc9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9bf619b
 
 
 
451985e
 
9bf619b
 
 
 
451985e
 
9bf619b
 
 
 
 
 
 
451985e
 
9bf619b
 
 
451985e
 
c2bab79
9bf619b
 
 
 
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
:root {
    --primary-color: #FFA726;
    --text-color: #333333;
    --bg-color: #ffffff;
    --card-bg: #f9f9f9;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.gradio-container {
    background-color: var(--bg-color);
    max-width: 100% !important;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    padding: 1.5em;
}

#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  background-color: var(--bg-color);
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  z-index: 1000;
  font-size: 1.2em;
  font-weight: bold;
}

#collapse-left, #dark-toggle {
  cursor: pointer;
  color: var(--text-color);
  user-select: none;
}

#collapse-left:hover,
#dark-toggle:hover {
  color: var(--primary-color);
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #f7f7f7;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #ddd;
  z-index: 999;
  font-size: 0.95em;
  font-family: 'Segoe UI', sans-serif;
}

#sidebar h1, #sidebar h2, #sidebar h3 {
  font-size: 1.2em;
  margin-bottom: 1em;
  font-weight: 600;
  color: var(--primary-color);
}

.sidebar-btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  text-align: left;
  border: none;
  background-color: #fff;
  color: var(--text-color);
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.sidebar-btn:hover {
  background-color: #ffe3c1;
}

.sidebar-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
  box-shadow: none;
}

#main-column {
  padding: 0;
}

.main-content {
  margin-left: 250px;
  padding: 0;
}

#module-wrapper {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 16px;
  background-color: white;
}

.gr-box {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  background-color: white;
}

/* Text Inputs */
.text_area {
  font-size: 16px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.high-contrast {
  color: white;
  background-color: black;
}

/* Dark Mode */
body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #f0f0f0;
  --card-bg: #2a2a2a;
  --primary-color: #ffb74d;
}

body.dark-mode,
body.dark-mode .main-content,
body.dark-mode .gradio-container {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

body.dark-mode .gr-box,
body.dark-mode #module-wrapper {
  background-color: var(--card-bg);
  color: var(--text-color);
}

body.dark-mode textarea,
body.dark-mode input[type="text"],
body.dark-mode .gr-textbox textarea {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid #555;
}

body.dark-mode .gr-button {
  background-color: var(--primary-color);
  color: black;
  border: none;
}

body.dark-mode select,
body.dark-mode .gr-dropdown select,
body.dark-mode .gr-checkbox label {
  background-color: var(--card-bg);
  color: var(--text-color);
}

body.dark-mode .gr-audio,
body.dark-mode .gr-plot {
  background-color: var(--card-bg);
}

body.dark-mode #top-bar {
  background-color: var(--card-bg);
  border-color: #444;
}

#chat-input {
  width: 100%;
  position: relative;
  padding-right: 2.5em;
}

#chat-send-btn {
  position: absolute;
  right: 10px;
  top: 6px;
  background: none;
  border: none;
  font-size: 1.2em;
  box-shadow: none;
  z-index: 10;
  padding: 2px 6px;
  cursor: pointer;
}

/* Plot responsiveness */
.gr-plot, .gr-plot canvas {
  width: 100% !important;
  height: auto !important;
}

/* Brand Header */
#brand-header {
  text-align: center;
  margin-bottom: 1.5em;
}

#brand-header h1 {
  font-size: 1.6em;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.5px;
}

#brand-header img {
  border-radius: 50%;
  box-shadow: var(--shadow);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}