File size: 10,244 Bytes
c3bea8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Style only the top-level app title to avoid affecting headings elsewhere */
.app-title {
    text-align: center;
    /* Ensure main title appears first, then our two subtitle lines */
    display: grid;
    justify-items: center;
}
.app-title::after {
    grid-row: 2;
    content: "General purpose tools useful for any agent.";
    display: block;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
    white-space: pre-wrap;
}

/* Sidebar Container */
.app-sidebar {
    background: var(--body-background-fill) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
@media (prefers-color-scheme: light) {
    .app-sidebar {
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}

/* Historical safeguard: if any h1 appears inside tabs, don't attach pseudo content */
.gradio-container [role="tabpanel"] h1::before,
.gradio-container [role="tabpanel"] h1::after {
    content: none !important;
}

/* Information accordion - modern info cards */
.info-accordion { 
    margin: 8px 0 2px;
}
.info-grid {
    display: grid;
    gap: 12px;
    /* Force a 2x2 layout on medium+ screens */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
/* On narrow screens, stack into a single column */
@media (max-width: 800px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
.info-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(99,102,241,0.06), rgba(59,130,246,0.05));
}
.info-card__icon {
    font-size: 24px;
    flex: 0 0 28px;
    line-height: 1;
    filter: saturate(1.1);
}
.info-card__body {
    min-width: 0;
}
.info-card__body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.info-card__body p {
    margin: 6px 0;
    opacity: 0.95;
}
/* Readable code blocks inside info cards */
.info-card pre {
    margin: 8px 0;
    padding: 10px 12px;
    background: rgba(20, 20, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow-x: auto;
    white-space: pre;
}
.info-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95em;
}
.info-card pre code {
    display: block;
}
.info-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.info-card p code {
    word-break: break-all;
}
.info-list {
    margin: 6px 0 0 18px;
    padding: 0;
}
.info-hint {
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
    .info-card {
        border-color: rgba(0, 0, 0, 0.08);
        background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    }
    .info-card::before {
        background: linear-gradient(90deg, rgba(99,102,241,0.08), rgba(59,130,246,0.06));
    }
    .info-card pre {
        background: rgba(245, 246, 250, 0.95);
        border-color: rgba(0, 0, 0, 0.08);
    }
}

/* Sidebar Navigation - styled like the previous tabs */
.sidebar-nav {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.sidebar-nav .form {
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    background: transparent !important;
}
.sidebar-nav label {
    display: flex !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03)) !important;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .06s ease !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
.sidebar-nav label:hover {
    border-color: rgba(99,102,241,0.28) !important;
    background: linear-gradient(180deg, rgba(99,102,241,0.10), rgba(59,130,246,0.08)) !important;
}
/* Selected state - Gradio adds 'selected' class to the label in some versions, or we check input:checked */
.sidebar-nav label.selected {
    border-color: rgba(99,102,241,0.35) !important;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.25), 0 1px 2px rgba(0,0,0,0.25) !important;
    background: linear-gradient(180deg, rgba(99,102,241,0.18), rgba(59,130,246,0.14)) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Light theme adjustments for sidebar */
@media (prefers-color-scheme: light) {
    .sidebar-nav label {
        border-color: rgba(0, 0, 0, 0.08) !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.90)) !important;
        color: rgba(0, 0, 0, 0.85) !important;
    }
    .sidebar-nav label:hover {
        border-color: rgba(99,102,241,0.25) !important;
        background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(59,130,246,0.06)) !important;
    }
    .sidebar-nav label.selected {
        border-color: rgba(99,102,241,0.35) !important;
        background: linear-gradient(180deg, rgba(99,102,241,0.16), rgba(59,130,246,0.12)) !important;
        color: rgba(0, 0, 0, 0.85) !important;
    }
}

/* Hide scrollbars/arrows that can appear on the description block in some browsers */
/* stylelint-disable compat-api/css */
article.prose, .prose, .gr-prose {
    overflow: visible !important;
    max-height: none !important;
    -ms-overflow-style: none !important; /* IE/Edge */
    scrollbar-width: none !important; /* Firefox */
}
/* stylelint-enable compat-api/css */
article.prose::-webkit-scrollbar,
.prose::-webkit-scrollbar,
.gr-prose::-webkit-scrollbar {
    display: none !important;            /* Chrome/Safari */
}

/* Fix for white background on single-line inputs in dark mode */
.gradio-container input[type="text"], 
.gradio-container input[type="password"], 
.gradio-container input[type="number"], 
.gradio-container input[type="email"] {
    background-color: var(--input-background-fill) !important;
    color: var(--body-text-color) !important;
}

/* Custom glossy purple styling for primary action buttons */
.gradio-container button.primary {
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.20)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .06s ease !important;
}
.gradio-container button.primary:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.28)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 3px 6px rgba(0, 0, 0, 0.2) !important;
}
.gradio-container button.primary:active {
    transform: scale(0.98) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}
@media (prefers-color-scheme: light) {
    .gradio-container button.primary {
        border-color: rgba(99, 102, 241, 0.4) !important;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(79, 70, 229, 0.75)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.12) !important;
        color: rgba(255, 255, 255, 0.98) !important;
    }
    .gradio-container button.primary:hover {
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.85)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 6px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Hide the actual tabs since we use the sidebar to control them */
.hidden-tabs .tab-nav,
.hidden-tabs [role="tablist"] {
    display: none !important;
}
/* Hide the entire first row of the tabs container (contains tab buttons + overflow) */
.hidden-tabs > div:first-child {
    display: none !important;
}
/* Ensure audio component buttons remain visible - they're inside tab panels, not the first row */
.hidden-tabs [role="tabpanel"] button {
    display: inline-flex !important;
}

/* Custom scrollbar styling - Progressive enhancement, falls back to default scrollbars */
/* stylelint-disable compat-api/css */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 212, 159, 0.4) rgba(255, 255, 255, 0.05);
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(61, 212, 159, 0.5), rgba(17, 186, 136, 0.4));
    border-radius: 4px;
    border: 1px solid rgba(119, 247, 209, 0.2);
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(85, 250, 192, 0.7), rgba(65, 184, 131, 0.6));
}
*::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.05);
}
@media (prefers-color-scheme: light) {
    * {
        scrollbar-color: rgba(61, 212, 159, 0.4) rgba(0, 0, 0, 0.05);
    }
    *::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    *::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(61, 212, 159, 0.5), rgba(17, 186, 136, 0.4));
        border-color: rgba(0, 0, 0, 0.1);
    }
    *::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(85, 250, 192, 0.7), rgba(65, 184, 131, 0.6));
    }
    *::-webkit-scrollbar-corner {
        background: rgba(0, 0, 0, 0.05);
    }
}
/* stylelint-enable compat-api/css */