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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Open GAMMA PPT Generator - UI Styles */
|
2 |
+
|
3 |
+
/* Full width UI */
|
4 |
+
.gradio-container {
|
5 |
+
background: rgba(255, 255, 255, 0.98);
|
6 |
+
padding: 40px 50px;
|
7 |
+
margin: 30px auto;
|
8 |
+
width: 100% !important;
|
9 |
+
max-width: 1400px !important;
|
10 |
+
border-radius: 20px;
|
11 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
12 |
+
}
|
13 |
+
|
14 |
+
/* Background */
|
15 |
+
body {
|
16 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
17 |
+
margin: 0;
|
18 |
+
padding: 0;
|
19 |
+
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
20 |
+
}
|
21 |
+
|
22 |
+
/* Title styling */
|
23 |
+
h1 {
|
24 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
25 |
+
background-clip: text;
|
26 |
+
-webkit-background-clip: text;
|
27 |
+
-webkit-text-fill-color: transparent;
|
28 |
+
font-weight: 700;
|
29 |
+
margin-bottom: 10px;
|
30 |
+
}
|
31 |
+
|
32 |
+
/* Button styles */
|
33 |
+
button.primary {
|
34 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
35 |
+
border: none;
|
36 |
+
color: white !important;
|
37 |
+
font-weight: 600;
|
38 |
+
padding: 15px 30px !important;
|
39 |
+
font-size: 18px !important;
|
40 |
+
transition: all 0.3s ease;
|
41 |
+
text-transform: uppercase;
|
42 |
+
letter-spacing: 1px;
|
43 |
+
}
|
44 |
+
|
45 |
+
button.primary:hover {
|
46 |
+
transform: translateY(-3px);
|
47 |
+
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
|
48 |
+
}
|
49 |
+
|
50 |
+
/* Input styles */
|
51 |
+
.textbox, textarea, input[type="text"], input[type="number"] {
|
52 |
+
border: 2px solid #e5e7eb;
|
53 |
+
border-radius: 12px;
|
54 |
+
padding: 15px;
|
55 |
+
font-size: 16px;
|
56 |
+
transition: all 0.3s ease;
|
57 |
+
background: white;
|
58 |
+
}
|
59 |
+
|
60 |
+
.textbox:focus, textarea:focus, input[type="text"]:focus {
|
61 |
+
border-color: #667eea;
|
62 |
+
outline: none;
|
63 |
+
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
64 |
+
}
|
65 |
+
|
66 |
+
/* Card style */
|
67 |
+
.card {
|
68 |
+
background: white;
|
69 |
+
border-radius: 16px;
|
70 |
+
padding: 25px;
|
71 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
72 |
+
margin-bottom: 25px;
|
73 |
+
border: 1px solid rgba(102, 126, 234, 0.1);
|
74 |
+
}
|
75 |
+
|
76 |
+
/* Dropdown styles */
|
77 |
+
.dropdown {
|
78 |
+
border: 2px solid #e5e7eb;
|
79 |
+
border-radius: 12px;
|
80 |
+
padding: 12px;
|
81 |
+
background: white;
|
82 |
+
transition: all 0.3s ease;
|
83 |
+
}
|
84 |
+
|
85 |
+
.dropdown:hover {
|
86 |
+
border-color: #667eea;
|
87 |
+
}
|
88 |
+
|
89 |
+
/* Slider styles */
|
90 |
+
.gr-slider input[type="range"] {
|
91 |
+
background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
|
92 |
+
height: 8px;
|
93 |
+
border-radius: 4px;
|
94 |
+
}
|
95 |
+
|
96 |
+
/* File upload area */
|
97 |
+
.file-upload {
|
98 |
+
border: 3px dashed #667eea;
|
99 |
+
border-radius: 16px;
|
100 |
+
padding: 40px;
|
101 |
+
text-align: center;
|
102 |
+
transition: all 0.3s ease;
|
103 |
+
background: rgba(102, 126, 234, 0.02);
|
104 |
+
}
|
105 |
+
|
106 |
+
.file-upload:hover {
|
107 |
+
border-color: #764ba2;
|
108 |
+
background: rgba(102, 126, 234, 0.05);
|
109 |
+
transform: scale(1.01);
|
110 |
+
}
|
111 |
+
|
112 |
+
/* Checkbox styles */
|
113 |
+
input[type="checkbox"] {
|
114 |
+
width: 20px;
|
115 |
+
height: 20px;
|
116 |
+
margin-right: 10px;
|
117 |
+
cursor: pointer;
|
118 |
+
}
|
119 |
+
|
120 |
+
/* Tab styles */
|
121 |
+
.tabs {
|
122 |
+
border-radius: 12px;
|
123 |
+
overflow: hidden;
|
124 |
+
margin-bottom: 20px;
|
125 |
+
}
|
126 |
+
|
127 |
+
.tab-nav {
|
128 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
129 |
+
padding: 5px;
|
130 |
+
}
|
131 |
+
|
132 |
+
.tab-nav button {
|
133 |
+
background: transparent;
|
134 |
+
color: white;
|
135 |
+
border: none;
|
136 |
+
padding: 10px 20px;
|
137 |
+
margin: 0 5px;
|
138 |
+
border-radius: 8px;
|
139 |
+
transition: all 0.3s ease;
|
140 |
+
}
|
141 |
+
|
142 |
+
.tab-nav button.selected {
|
143 |
+
background: white;
|
144 |
+
color: #667eea;
|
145 |
+
}
|
146 |
+
|
147 |
+
/* Section headers */
|
148 |
+
.section-header {
|
149 |
+
font-size: 20px;
|
150 |
+
font-weight: 600;
|
151 |
+
color: #667eea;
|
152 |
+
margin: 20px 0 15px 0;
|
153 |
+
padding-bottom: 10px;
|
154 |
+
border-bottom: 2px solid rgba(102, 126, 234, 0.2);
|
155 |
+
}
|
156 |
+
|
157 |
+
/* Status box styling */
|
158 |
+
.status-box {
|
159 |
+
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
160 |
+
border-radius: 12px;
|
161 |
+
padding: 20px;
|
162 |
+
}
|
163 |
+
|
164 |
+
/* Preview box styling */
|
165 |
+
.preview-box {
|
166 |
+
background: #f8f9fa;
|
167 |
+
border-radius: 12px;
|
168 |
+
padding: 20px;
|
169 |
+
font-family: 'Courier New', monospace;
|
170 |
+
font-size: 13px;
|
171 |
+
line-height: 1.5;
|
172 |
+
max-height: 500px;
|
173 |
+
overflow-y: auto;
|
174 |
+
}
|
175 |
+
|
176 |
+
/* Responsive design */
|
177 |
+
@media (max-width: 768px) {
|
178 |
+
.main-container {
|
179 |
+
padding: 15px;
|
180 |
+
margin: 10px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.header-section h1 {
|
184 |
+
font-size: 2em;
|
185 |
+
}
|
186 |
+
|
187 |
+
.gr-tab-item {
|
188 |
+
padding: 10px 15px;
|
189 |
+
font-size: 1em;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
+
/* Additional animations and effects */
|
194 |
+
@keyframes fadeIn {
|
195 |
+
from {
|
196 |
+
opacity: 0;
|
197 |
+
transform: translateY(10px);
|
198 |
+
}
|
199 |
+
to {
|
200 |
+
opacity: 1;
|
201 |
+
transform: translateY(0);
|
202 |
+
}
|
203 |
+
}
|
204 |
+
|
205 |
+
.gradio-container > * {
|
206 |
+
animation: fadeIn 0.5s ease-out;
|
207 |
+
}
|
208 |
+
|
209 |
+
/* Loading spinner improvement */
|
210 |
+
.wrap.svelte-1sk0pyu {
|
211 |
+
background: rgba(255, 255, 255, 0.9) !important;
|
212 |
+
}
|
213 |
+
|
214 |
+
/* Tooltip styles */
|
215 |
+
.tooltip {
|
216 |
+
position: relative;
|
217 |
+
display: inline-block;
|
218 |
+
}
|
219 |
+
|
220 |
+
.tooltip .tooltiptext {
|
221 |
+
visibility: hidden;
|
222 |
+
width: 200px;
|
223 |
+
background-color: #555;
|
224 |
+
color: #fff;
|
225 |
+
text-align: center;
|
226 |
+
border-radius: 6px;
|
227 |
+
padding: 5px;
|
228 |
+
position: absolute;
|
229 |
+
z-index: 1;
|
230 |
+
bottom: 125%;
|
231 |
+
left: 50%;
|
232 |
+
margin-left: -100px;
|
233 |
+
opacity: 0;
|
234 |
+
transition: opacity 0.3s;
|
235 |
+
}
|
236 |
+
|
237 |
+
.tooltip:hover .tooltiptext {
|
238 |
+
visibility: visible;
|
239 |
+
opacity: 1;
|
240 |
+
}
|
241 |
+
|
242 |
+
/* Progress bar styling */
|
243 |
+
.progress {
|
244 |
+
background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
|
245 |
+
height: 4px;
|
246 |
+
border-radius: 2px;
|
247 |
+
}
|
248 |
+
|
249 |
+
/* Custom scrollbar */
|
250 |
+
::-webkit-scrollbar {
|
251 |
+
width: 10px;
|
252 |
+
}
|
253 |
+
|
254 |
+
::-webkit-scrollbar-track {
|
255 |
+
background: #f1f1f1;
|
256 |
+
border-radius: 5px;
|
257 |
+
}
|
258 |
+
|
259 |
+
::-webkit-scrollbar-thumb {
|
260 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
261 |
+
border-radius: 5px;
|
262 |
+
}
|
263 |
+
|
264 |
+
::-webkit-scrollbar-thumb:hover {
|
265 |
+
background: #667eea;
|
266 |
+
}
|