Spaces:
Running
Running
Upload style.css with huggingface_hub
Browse files
style.css
CHANGED
|
@@ -1,76 +1,336 @@
|
|
| 1 |
* {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
font-family: sans-serif;
|
| 6 |
}
|
| 7 |
|
| 8 |
-
html,
|
| 9 |
body {
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
justify-content: center;
|
| 22 |
-
align-items: center;
|
| 23 |
}
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
cursor: pointer;
|
| 38 |
-
margin: 1rem;
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
cursor: pointer;
|
| 58 |
}
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
-
.
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
}
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
}
|
|
|
|
| 1 |
* {
|
| 2 |
+
margin: 0;
|
| 3 |
+
padding: 0;
|
| 4 |
+
box-sizing: border-box;
|
|
|
|
| 5 |
}
|
| 6 |
|
|
|
|
| 7 |
body {
|
| 8 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 9 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 10 |
+
min-height: 100vh;
|
| 11 |
+
display: flex;
|
| 12 |
+
align-items: center;
|
| 13 |
+
justify-content: center;
|
| 14 |
+
padding: 20px;
|
| 15 |
}
|
| 16 |
|
| 17 |
+
.app-container {
|
| 18 |
+
width: 100%;
|
| 19 |
+
max-width: 900px;
|
| 20 |
+
height: 90vh;
|
| 21 |
+
max-height: 800px;
|
| 22 |
+
background: rgba(255, 255, 255, 0.95);
|
| 23 |
+
backdrop-filter: blur(20px);
|
| 24 |
+
border-radius: 24px;
|
| 25 |
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
| 26 |
+
display: flex;
|
| 27 |
+
flex-direction: column;
|
| 28 |
+
overflow: hidden;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.header {
|
| 32 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 33 |
+
padding: 20px 24px;
|
| 34 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 35 |
}
|
| 36 |
|
| 37 |
+
.header-content {
|
| 38 |
+
display: flex;
|
| 39 |
+
justify-content: space-between;
|
| 40 |
+
align-items: center;
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
+
.app-info {
|
| 44 |
+
display: flex;
|
| 45 |
+
align-items: center;
|
| 46 |
+
gap: 16px;
|
| 47 |
+
}
|
| 48 |
|
| 49 |
+
.app-icon {
|
| 50 |
+
width: 48px;
|
| 51 |
+
height: 48px;
|
| 52 |
+
background: rgba(255, 255, 255, 0.2);
|
| 53 |
+
border-radius: 12px;
|
| 54 |
+
display: flex;
|
| 55 |
+
align-items: center;
|
| 56 |
+
justify-content: center;
|
| 57 |
+
}
|
| 58 |
|
| 59 |
+
.app-icon svg {
|
| 60 |
+
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
| 61 |
+
}
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
.app-info h1 {
|
| 64 |
+
color: white;
|
| 65 |
+
font-size: 24px;
|
| 66 |
+
font-weight: 600;
|
| 67 |
+
margin-bottom: 2px;
|
| 68 |
}
|
| 69 |
|
| 70 |
+
.subtitle {
|
| 71 |
+
color: rgba(255, 255, 255, 0.8);
|
| 72 |
+
font-size: 14px;
|
| 73 |
+
font-weight: 400;
|
| 74 |
}
|
| 75 |
|
| 76 |
+
.built-with {
|
| 77 |
+
color: rgba(255, 255, 255, 0.9);
|
| 78 |
+
text-decoration: none;
|
| 79 |
+
font-size: 12px;
|
| 80 |
+
padding: 8px 16px;
|
| 81 |
+
background: rgba(255, 255, 255, 0.1);
|
| 82 |
+
border-radius: 20px;
|
| 83 |
+
transition: all 0.3s ease;
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.built-with:hover {
|
| 87 |
+
background: rgba(255, 255, 255, 0.2);
|
| 88 |
+
transform: translateY(-1px);
|
|
|
|
| 89 |
}
|
| 90 |
|
| 91 |
+
.chat-container {
|
| 92 |
+
flex: 1;
|
| 93 |
+
overflow-y: auto;
|
| 94 |
+
padding: 24px;
|
| 95 |
+
background: #f8f9fa;
|
| 96 |
}
|
| 97 |
|
| 98 |
+
.messages-container {
|
| 99 |
+
display: flex;
|
| 100 |
+
flex-direction: column;
|
| 101 |
+
gap: 16px;
|
| 102 |
}
|
| 103 |
|
| 104 |
+
.message {
|
| 105 |
+
display: flex;
|
| 106 |
+
gap: 12px;
|
| 107 |
+
animation: fadeIn 0.3s ease;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.message-avatar {
|
| 111 |
+
width: 36px;
|
| 112 |
+
height: 36px;
|
| 113 |
+
border-radius: 50%;
|
| 114 |
+
background: #e9ecef;
|
| 115 |
+
display: flex;
|
| 116 |
+
align-items: center;
|
| 117 |
+
justify-content: center;
|
| 118 |
+
font-size: 18px;
|
| 119 |
+
flex-shrink: 0;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.message-bubble {
|
| 123 |
+
flex: 1;
|
| 124 |
+
max-width: 70%;
|
| 125 |
+
padding: 12px 16px;
|
| 126 |
+
border-radius: 18px;
|
| 127 |
+
position: relative;
|
| 128 |
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.message-bubble.user {
|
| 132 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 133 |
+
color: white;
|
| 134 |
+
align-self: flex-end;
|
| 135 |
+
margin-left: auto;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
.message-bubble.assistant {
|
| 139 |
+
background: white;
|
| 140 |
+
color: #333;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
.message-bubble.system {
|
| 144 |
+
background: #fff3cd;
|
| 145 |
+
color: #856404;
|
| 146 |
+
border: 1px solid #ffeaa7;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
.message-content {
|
| 150 |
+
font-size: 15px;
|
| 151 |
+
line-height: 1.5;
|
| 152 |
+
word-wrap: break-word;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
.message-time {
|
| 156 |
+
font-size: 11px;
|
| 157 |
+
opacity: 0.7;
|
| 158 |
+
margin-top: 4px;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
.typing-indicator {
|
| 162 |
+
animation: fadeIn 0.3s ease;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.typing-dots {
|
| 166 |
+
display: flex;
|
| 167 |
+
gap: 4px;
|
| 168 |
+
padding: 8px 0;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
.typing-dots span {
|
| 172 |
+
width: 8px;
|
| 173 |
+
height: 8px;
|
| 174 |
+
background: #667eea;
|
| 175 |
+
border-radius: 50%;
|
| 176 |
+
animation: typing 1.4s infinite;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
.typing-dots span:nth-child(2) {
|
| 180 |
+
animation-delay: 0.2s;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.typing-dots span:nth-child(3) {
|
| 184 |
+
animation-delay: 0.4s;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
.input-container {
|
| 188 |
+
background: white;
|
| 189 |
+
border-top: 1px solid #e9ecef;
|
| 190 |
+
padding: 20px 24px;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
.input-wrapper {
|
| 194 |
+
position: relative;
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
.input-group {
|
| 198 |
+
display: flex;
|
| 199 |
+
gap: 12px;
|
| 200 |
+
align-items: flex-end;
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
.message-input {
|
| 204 |
+
flex: 1;
|
| 205 |
+
border: 2px solid #e9ecef;
|
| 206 |
+
border-radius: 20px;
|
| 207 |
+
padding: 12px 20px;
|
| 208 |
+
font-size: 15px;
|
| 209 |
+
font-family: inherit;
|
| 210 |
+
resize: none;
|
| 211 |
+
outline: none;
|
| 212 |
+
transition: all 0.3s ease;
|
| 213 |
+
min-height: 44px;
|
| 214 |
+
max-height: 120px;
|
| 215 |
+
overflow-y: auto;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
.message-input:focus {
|
| 219 |
+
border-color: #667eea;
|
| 220 |
+
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
.message-input:disabled {
|
| 224 |
+
background: #f8f9fa;
|
| 225 |
+
cursor: not-allowed;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
.send-button {
|
| 229 |
+
width: 44px;
|
| 230 |
+
height: 44px;
|
| 231 |
+
border-radius: 50%;
|
| 232 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 233 |
+
border: none;
|
| 234 |
+
color: white;
|
| 235 |
+
cursor: pointer;
|
| 236 |
+
display: flex;
|
| 237 |
+
align-items: center;
|
| 238 |
+
justify-content: center;
|
| 239 |
+
transition: all 0.3s ease;
|
| 240 |
+
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
.send-button:hover:not(:disabled) {
|
| 244 |
+
transform: translateY(-2px);
|
| 245 |
+
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.send-button:disabled {
|
| 249 |
+
opacity: 0.5;
|
| 250 |
+
cursor: not-allowed;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
.status-bar {
|
| 254 |
+
margin-top: 12px;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
.status-text {
|
| 258 |
+
font-size: 12px;
|
| 259 |
+
color: #6c757d;
|
| 260 |
+
margin-bottom: 6px;
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
.progress-bar {
|
| 264 |
+
height: 3px;
|
| 265 |
+
background: #e9ecef;
|
| 266 |
+
border-radius: 10px;
|
| 267 |
+
overflow: hidden;
|
| 268 |
+
display: none;
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
.progress-fill {
|
| 272 |
+
height: 100%;
|
| 273 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
| 274 |
+
border-radius: 10px;
|
| 275 |
+
transition: width 0.3s ease;
|
| 276 |
+
width: 0%;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
.error-message {
|
| 280 |
+
animation: shake 0.5s ease;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
.welcome-message {
|
| 284 |
+
text-align: center;
|
| 285 |
+
padding: 20px;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
@keyframes fadeIn {
|
| 289 |
+
from {
|
| 290 |
+
opacity: 0;
|
| 291 |
+
transform: translateY(10px);
|
| 292 |
+
}
|
| 293 |
+
to {
|
| 294 |
+
opacity: 1;
|
| 295 |
+
transform: translateY(0);
|
| 296 |
+
}
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
@keyframes typing {
|
| 300 |
+
0%, 60%, 100% {
|
| 301 |
+
transform: translateY(0);
|
| 302 |
+
}
|
| 303 |
+
30% {
|
| 304 |
+
transform: translateY(-10px);
|
| 305 |
+
}
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
@keyframes shake {
|
| 309 |
+
0%, 100% { transform: translateX(0); }
|
| 310 |
+
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
|
| 311 |
+
20%, 40%, 60%, 80% { transform: translateX(5px); }
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
@media (max-width: 640px) {
|
| 315 |
+
.app-container {
|
| 316 |
+
height: 100vh;
|
| 317 |
+
max-height: 100vh;
|
| 318 |
+
border-radius: 0;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
.message-bubble {
|
| 322 |
+
max-width: 85%;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
.header {
|
| 326 |
+
padding: 16px;
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
.app-info h1 {
|
| 330 |
+
font-size: 20px;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
.built-with {
|
| 334 |
+
display: none;
|
| 335 |
+
}
|
| 336 |
}
|