Spaces:
Running
Running
File size: 9,612 Bytes
076b6ec 035bfeb 076b6ec 035bfeb 076b6ec 035bfeb 076b6ec 035bfeb 076b6ec 035bfeb 076b6ec 035bfeb 076b6ec |
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 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 |
/* interdisciplinary.css */
/* Reset and Base Styles */
#interdisciplinary * {
box-sizing: border-box;
font-family: Arial, sans-serif;
}
/* Card Styling */
.interdisciplinary-card {
display: flex;
flex-direction: column; /* Changed from row to column */
gap: 20px;
background: linear-gradient(135deg, #ffffff, #f1f8e9);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
padding: 25px;
margin: 25px auto;
transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.interdisciplinary-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
background: linear-gradient(135deg, #e0f7fa, #ffffff);
}
/* Flex Layout for Inter Options and Chat Window */
.inter-options {
display: flex;
flex-direction: row; /* Changed from column to row */
flex-wrap: wrap; /* Allows wrapping on smaller screens */
gap: 20px;
}
/* Ensure Inter Options takes up available horizontal space */
.inter-options {
width: 100%;
}
/* Chat Window Styling */
.chat-window {
flex: 2;
display: flex;
flex-direction: column;
gap: 20px;
}
/* Option Sections Styling */
.option-section {
background-color: #ffffff;
padding: 15px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: background 0.3s, box-shadow 0.3s;
flex: 1; /* Allows each option section to take equal space */
min-width: 200px; /* Ensures a minimum width for each control */
}
.option-section:hover {
background-color: #f9f9f9;
}
/* Button Styling (Reused from Original) */
#interdisciplinary button {
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 12px 20px;
font-size: 1em;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#interdisciplinary button:hover:not(:disabled) {
background: linear-gradient(135deg, #005D56, #00332E);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#interdisciplinary button:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
/* Select Dropdown Styling (Reused from Original) */
#interdisciplinary select {
width: 100%;
padding: 10px 15px;
border: 1px solid #cccccc;
border-radius: 8px;
font-size: 1em;
background-color: #ffffff;
transition: border-color 0.3s, box-shadow 0.3s;
margin-bottom: 15px;
}
#interdisciplinary select:focus {
border-color: #00796B;
box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
outline: none;
}
/* Speech Controls Styling */
#inter-speech-controls label {
display: block;
margin-bottom: 5px;
color: #555555;
font-weight: 500;
}
#inter-speech-controls input[type="range"] {
width: 100%;
margin-bottom: 15px;
}
/* Logs Container Styling */
#inter-logs-container {
display: flex;
flex-direction: column;
gap: 10px;
max-height: 200px; /* Set a maximum height for the logs container */
overflow: hidden; /* Hide any overflow to prevent the container from expanding */
}
#inter-logs {
flex: 1;
max-height: 200px; /* Adjust as needed */
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow-y: auto; /* Enable vertical scrolling */
padding: 10px;
background-color: #f9f9f9;
font-size: 0.85em;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
#inter-clear-logs {
align-self: flex-end;
background: linear-gradient(135deg, #FF5252, #E53935);
border: none;
color: white;
padding: 8px 16px;
font-size: 0.9em;
cursor: pointer;
border-radius: 8px;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inter-clear-logs:hover {
background: linear-gradient(135deg, #E53935, #D32F2F);
transform: scale(1.02);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Chat Box Styling */
#inter-chat-box {
height: 500px;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow-y: auto;
padding: 20px;
background-color: #ffffff;
position: relative;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
}
/* Message Styling */
#interdisciplinary .message-container {
margin-bottom: 20px;
display: flex;
}
#interdisciplinary .message {
padding: 12px 18px;
border-radius: 20px;
max-width: 75%;
position: relative;
word-wrap: break-word;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
font-size: 0.95em;
line-height: 1.4;
background-color: #f1f8e9;
transition: background-color 0.3s, box-shadow 0.3s;
}
#interdisciplinary .user .message {
background: #DCF8C6;
border-bottom-right-radius: 0;
}
#interdisciplinary .assistant .message {
background: #e3f2fd;
border-bottom-left-radius: 0;
}
/* Chat Input Container Styling */
#inter-text-input-container {
display: flex;
gap: 10px;
}
#inter-text-input {
flex: 1;
padding: 10px 15px;
border: 1px solid #cccccc;
border-radius: 8px;
font-size: 1em;
background-color: #ffffff;
transition: border-color 0.3s, box-shadow 0.3s;
}
#inter-text-input:focus {
border-color: #00796B;
box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
outline: none;
}
#inter-submit-button {
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 10px 20px;
font-size: 1em;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inter-submit-button:hover:not(:disabled) {
background: linear-gradient(135deg, #005D56, #00332E);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#inter-submit-button:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
/* Microphone and Stop Buttons Styling */
#inter-mic-container {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
}
#inter-start_button,
#inter-stop_button {
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 15px;
border-radius: 50%;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#inter-stop_button {
background: linear-gradient(135deg, #E53935, #D32F2F);
}
#inter-start_button::before,
#inter-stop_button::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
background: rgba(255, 255, 255, 0.3);
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
border-radius: 50%;
transition: transform 0.5s ease-out;
}
#inter-start_button:active::before,
#inter-stop_button:active::before {
transform: translate(-50%, -50%) scale(1);
}
#inter-start_button:disabled,
#inter-stop_button:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
#inter-start_button:hover:not(:disabled),
#inter-stop_button:hover:not(:disabled) {
transform: scale(1.05);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
#inter-stop_button:hover:not(:disabled) {
background: linear-gradient(135deg, #D32F2F, #C62828);
}
/* Icon Styling */
.interdisciplinary .mic-icon,
.interdisciplinary .stop-icon {
width: 30px;
height: 30px;
transition: transform 0.3s;
fill: #ffffff;
}
/* Animation for Mic Icon */
.interdisciplinary .mic-animate {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
/* Chat Stats */
#inter-chat-stats {
font-size: 0.85em;
color: #555555;
text-align: center;
margin-top: 10px;
}
/* Hidden Class */
#interdisciplinary .hidden {
display: none;
}
/* Scrollbar Styling */
#inter-chat-box::-webkit-scrollbar,
#inter-logs::-webkit-scrollbar {
width: 8px;
}
#inter-chat-box::-webkit-scrollbar-track,
#inter-logs::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
#inter-chat-box::-webkit-scrollbar-thumb,
#inter-logs::-webkit-scrollbar-thumb {
background: #cccccc;
border-radius: 4px;
}
#inter-chat-box::-webkit-scrollbar-thumb:hover,
#inter-logs::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Initialize Button Styling (Reused from Original) */
#inter-download {
flex: 0 0 auto;
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 10px 20px;
font-size: 1em;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inter-download:hover:not(:disabled) {
background: linear-gradient(135deg, #005D56, #00332E);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#inter-download:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
/* Configuration Info Styling */
#inter-configuration {
margin-top: 15px;
font-size: 0.9em;
color: #555555;
}
/* Responsive Grid Adjustments */
@media (max-width: 800px) {
.interdisciplinary-card {
flex-direction: column;
}
/* Adjust Logs Container Height for Smaller Screens */
#inter-logs-container {
max-height: 200px;
}
#inter-logs {
max-height: 150px;
}
/* Stack the option sections vertically on smaller screens */
.inter-options {
flex-direction: column;
}
.option-section {
min-width: 100%;
}
}
|