Spaces:
Sleeping
Sleeping
Girish Jeswani commited on
Commit ·
26b935d
1
Parent(s): 6ef1395
mobile resolution fixes
Browse files
phd-advisor-frontend/src/styles/ChatPage.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
|
| 2 |
/* Modern Chat Page Layout */
|
| 3 |
.modern-chat-page {
|
|
@@ -307,18 +308,110 @@
|
|
| 307 |
40% { transform: scale(1); }
|
| 308 |
}
|
| 309 |
|
| 310 |
-
/* Floating Input Area -
|
| 311 |
.floating-input-area {
|
| 312 |
position: fixed;
|
| 313 |
bottom: 20px;
|
| 314 |
left: 0;
|
| 315 |
right: 0;
|
| 316 |
z-index: 50;
|
| 317 |
-
background: transparent;
|
| 318 |
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 319 |
}
|
| 320 |
|
| 321 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
.provider-dropdown {
|
| 323 |
position: relative;
|
| 324 |
display: inline-block;
|
|
@@ -422,6 +515,10 @@
|
|
| 422 |
-webkit-backdrop-filter: blur(20px);
|
| 423 |
}
|
| 424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 425 |
.provider-option {
|
| 426 |
width: 100%;
|
| 427 |
display: flex;
|
|
@@ -531,6 +628,10 @@
|
|
| 531 |
bottom: 10px;
|
| 532 |
}
|
| 533 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 534 |
.orchestrator-content {
|
| 535 |
max-width: none;
|
| 536 |
}
|
|
|
|
| 1 |
+
/* ChatPage.css - Complete Fixed File */
|
| 2 |
|
| 3 |
/* Modern Chat Page Layout */
|
| 4 |
.modern-chat-page {
|
|
|
|
| 308 |
40% { transform: scale(1); }
|
| 309 |
}
|
| 310 |
|
| 311 |
+
/* Floating Input Area - FIXED VERSION */
|
| 312 |
.floating-input-area {
|
| 313 |
position: fixed;
|
| 314 |
bottom: 20px;
|
| 315 |
left: 0;
|
| 316 |
right: 0;
|
| 317 |
z-index: 50;
|
| 318 |
+
background: transparent;
|
| 319 |
padding: 0;
|
| 320 |
+
display: flex;
|
| 321 |
+
flex-direction: column;
|
| 322 |
+
align-items: center;
|
| 323 |
+
max-width: 800px;
|
| 324 |
+
margin: 0 auto;
|
| 325 |
}
|
| 326 |
|
| 327 |
+
/* Reply Banner in ChatPage - matches input width and fixes dark mode */
|
| 328 |
+
.floating-input-area .reply-banner {
|
| 329 |
+
background: var(--bg-primary);
|
| 330 |
+
border: 1px solid var(--border-primary);
|
| 331 |
+
border-radius: 12px;
|
| 332 |
+
padding: 12px 16px;
|
| 333 |
+
margin: 0 16px 12px 16px;
|
| 334 |
+
display: flex;
|
| 335 |
+
align-items: center;
|
| 336 |
+
justify-content: space-between;
|
| 337 |
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
| 338 |
+
width: 100%;
|
| 339 |
+
max-width: 768px;
|
| 340 |
+
box-sizing: border-box;
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
[data-theme="dark"] .floating-input-area .reply-banner {
|
| 344 |
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
/* Reply Info - Fix dark mode text color */
|
| 348 |
+
.floating-input-area .reply-info {
|
| 349 |
+
display: flex;
|
| 350 |
+
align-items: center;
|
| 351 |
+
gap: 8px;
|
| 352 |
+
color: var(--text-secondary);
|
| 353 |
+
font-size: 14px;
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
.floating-input-area .reply-info strong {
|
| 357 |
+
color: var(--accent-primary);
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
/* Cancel Reply Button */
|
| 361 |
+
.floating-input-area .cancel-reply {
|
| 362 |
+
background: none;
|
| 363 |
+
border: none;
|
| 364 |
+
color: var(--text-tertiary);
|
| 365 |
+
cursor: pointer;
|
| 366 |
+
padding: 4px;
|
| 367 |
+
border-radius: 6px;
|
| 368 |
+
transition: all 0.2s ease;
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
.floating-input-area .cancel-reply:hover {
|
| 372 |
+
background: var(--bg-secondary);
|
| 373 |
+
color: var(--text-secondary);
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
/* Document Indicator Styles */
|
| 377 |
+
.document-indicator {
|
| 378 |
+
display: flex;
|
| 379 |
+
align-items: center;
|
| 380 |
+
gap: 6px;
|
| 381 |
+
padding: 6px 12px;
|
| 382 |
+
background: var(--feature-bg); /* Use theme variable */
|
| 383 |
+
border: 1px solid var(--accent-primary); /* Use theme variable */
|
| 384 |
+
border-radius: 20px;
|
| 385 |
+
color: var(--accent-primary); /* Use theme variable */
|
| 386 |
+
font-size: 13px;
|
| 387 |
+
font-weight: 600;
|
| 388 |
+
cursor: default;
|
| 389 |
+
transition: all 0.2s ease;
|
| 390 |
+
}
|
| 391 |
+
|
| 392 |
+
.document-indicator:hover {
|
| 393 |
+
background: var(--accent-primary);
|
| 394 |
+
color: white;
|
| 395 |
+
}
|
| 396 |
+
|
| 397 |
+
.doc-count {
|
| 398 |
+
background: var(--accent-primary);
|
| 399 |
+
color: white;
|
| 400 |
+
border-radius: 10px;
|
| 401 |
+
padding: 2px 6px;
|
| 402 |
+
font-size: 11px;
|
| 403 |
+
font-weight: 700;
|
| 404 |
+
min-width: 16px;
|
| 405 |
+
text-align: center;
|
| 406 |
+
line-height: 1.2;
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.document-indicator:hover .doc-count {
|
| 410 |
+
background: white;
|
| 411 |
+
color: var(--accent-primary);
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
/* Provider Dropdown Styles - FIXED */
|
| 415 |
.provider-dropdown {
|
| 416 |
position: relative;
|
| 417 |
display: inline-block;
|
|
|
|
| 515 |
-webkit-backdrop-filter: blur(20px);
|
| 516 |
}
|
| 517 |
|
| 518 |
+
[data-theme="dark"] .provider-dropdown-menu {
|
| 519 |
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
.provider-option {
|
| 523 |
width: 100%;
|
| 524 |
display: flex;
|
|
|
|
| 628 |
bottom: 10px;
|
| 629 |
}
|
| 630 |
|
| 631 |
+
.floating-input-area .reply-banner {
|
| 632 |
+
margin: 0 12px 12px 12px;
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
.orchestrator-content {
|
| 636 |
max-width: none;
|
| 637 |
}
|
phd-advisor-frontend/src/styles/EnhancedChatInput.css
CHANGED
|
@@ -1,30 +1,60 @@
|
|
| 1 |
-
/*
|
| 2 |
-
|
| 3 |
-
/* Main Container */
|
| 4 |
.enhanced-chat-input-container {
|
| 5 |
-
|
| 6 |
-
flex-direction: column;
|
| 7 |
-
gap: 12px;
|
| 8 |
width: 100%;
|
| 9 |
-
max-width:
|
| 10 |
margin: 0 auto;
|
| 11 |
padding: 0 16px;
|
| 12 |
}
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
/* Floating Upload Section */
|
| 15 |
.floating-upload-section {
|
| 16 |
background: var(--bg-primary);
|
| 17 |
border: 1px solid var(--border-primary);
|
| 18 |
border-radius: 16px;
|
|
|
|
| 19 |
padding: 20px;
|
| 20 |
-
box-shadow: 0
|
| 21 |
-
backdrop-filter: blur(20px);
|
| 22 |
-
-webkit-backdrop-filter: blur(20px);
|
| 23 |
animation: slideUpFade 0.2s ease-out;
|
| 24 |
}
|
| 25 |
|
| 26 |
[data-theme="dark"] .floating-upload-section {
|
| 27 |
-
box-shadow: 0
|
| 28 |
}
|
| 29 |
|
| 30 |
/* Floating Documents Section */
|
|
@@ -32,15 +62,15 @@
|
|
| 32 |
background: var(--bg-primary);
|
| 33 |
border: 1px solid var(--border-primary);
|
| 34 |
border-radius: 16px;
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
-webkit-backdrop-filter: blur(20px);
|
| 38 |
-
animation: slideUpFade 0.2s ease-out;
|
| 39 |
overflow: hidden;
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
[data-theme="dark"] .floating-documents-section {
|
| 43 |
-
box-shadow: 0
|
| 44 |
}
|
| 45 |
|
| 46 |
.documents-header {
|
|
@@ -56,7 +86,7 @@
|
|
| 56 |
display: flex;
|
| 57 |
align-items: center;
|
| 58 |
gap: 8px;
|
| 59 |
-
font-weight:
|
| 60 |
color: var(--text-primary);
|
| 61 |
font-size: 14px;
|
| 62 |
}
|
|
@@ -64,16 +94,16 @@
|
|
| 64 |
.close-documents-btn {
|
| 65 |
background: none;
|
| 66 |
border: none;
|
| 67 |
-
color: var(--text-
|
| 68 |
cursor: pointer;
|
| 69 |
-
padding:
|
| 70 |
border-radius: 6px;
|
| 71 |
transition: all 0.2s ease;
|
| 72 |
}
|
| 73 |
|
| 74 |
.close-documents-btn:hover {
|
| 75 |
background: var(--bg-tertiary);
|
| 76 |
-
color: var(--text-
|
| 77 |
}
|
| 78 |
|
| 79 |
.documents-list {
|
|
@@ -89,16 +119,16 @@
|
|
| 89 |
justify-content: center;
|
| 90 |
padding: 40px 20px;
|
| 91 |
text-align: center;
|
| 92 |
-
color: var(--text-
|
| 93 |
}
|
| 94 |
|
| 95 |
.no-documents svg {
|
| 96 |
-
color: var(--text-tertiary);
|
| 97 |
margin-bottom: 12px;
|
|
|
|
| 98 |
}
|
| 99 |
|
| 100 |
.no-documents p {
|
| 101 |
-
margin:
|
| 102 |
font-weight: 500;
|
| 103 |
color: var(--text-primary);
|
| 104 |
}
|
|
@@ -212,41 +242,17 @@
|
|
| 212 |
max-height: 200px;
|
| 213 |
border: none;
|
| 214 |
outline: none;
|
|
|
|
| 215 |
background: transparent;
|
| 216 |
color: var(--text-primary);
|
| 217 |
font-size: 16px;
|
| 218 |
font-family: inherit;
|
| 219 |
line-height: 1.5;
|
| 220 |
-
resize: none;
|
| 221 |
overflow-y: auto;
|
| 222 |
-
scrollbar-width: thin;
|
| 223 |
}
|
| 224 |
|
| 225 |
.main-textarea::placeholder {
|
| 226 |
-
color: var(--text-
|
| 227 |
-
}
|
| 228 |
-
|
| 229 |
-
.main-textarea:disabled {
|
| 230 |
-
opacity: 0.6;
|
| 231 |
-
cursor: not-allowed;
|
| 232 |
-
}
|
| 233 |
-
|
| 234 |
-
/* Custom scrollbar for textarea */
|
| 235 |
-
.main-textarea::-webkit-scrollbar {
|
| 236 |
-
width: 4px;
|
| 237 |
-
}
|
| 238 |
-
|
| 239 |
-
.main-textarea::-webkit-scrollbar-track {
|
| 240 |
-
background: transparent;
|
| 241 |
-
}
|
| 242 |
-
|
| 243 |
-
.main-textarea::-webkit-scrollbar-thumb {
|
| 244 |
-
background: var(--border-primary);
|
| 245 |
-
border-radius: 2px;
|
| 246 |
-
}
|
| 247 |
-
|
| 248 |
-
.main-textarea::-webkit-scrollbar-thumb:hover {
|
| 249 |
-
background: var(--text-tertiary);
|
| 250 |
}
|
| 251 |
|
| 252 |
/* Controls Row */
|
|
@@ -255,50 +261,47 @@
|
|
| 255 |
align-items: center;
|
| 256 |
justify-content: space-between;
|
| 257 |
padding: 8px 20px 16px 20px;
|
| 258 |
-
gap: 12px;
|
| 259 |
}
|
| 260 |
|
| 261 |
-
/* File Controls */
|
| 262 |
.file-controls {
|
| 263 |
display: flex;
|
| 264 |
align-items: center;
|
| 265 |
gap: 8px;
|
|
|
|
| 266 |
}
|
| 267 |
|
| 268 |
/* Add Documents Button */
|
| 269 |
.add-docs-btn {
|
| 270 |
display: flex;
|
| 271 |
align-items: center;
|
| 272 |
-
gap:
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
border: none;
|
| 276 |
border-radius: 8px;
|
| 277 |
-
|
| 278 |
font-size: 14px;
|
| 279 |
font-weight: 500;
|
|
|
|
| 280 |
cursor: pointer;
|
| 281 |
transition: all 0.2s ease;
|
| 282 |
-
position: relative;
|
| 283 |
}
|
| 284 |
|
| 285 |
.add-docs-btn:hover:not(:disabled) {
|
| 286 |
-
background: var(--bg-
|
|
|
|
| 287 |
color: var(--text-primary);
|
| 288 |
}
|
| 289 |
|
| 290 |
-
.add-docs-btn.active {
|
| 291 |
-
background: var(--feature-bg);
|
| 292 |
-
color: var(--accent-primary);
|
| 293 |
-
}
|
| 294 |
-
|
| 295 |
.add-docs-btn:disabled {
|
| 296 |
opacity: 0.5;
|
| 297 |
cursor: not-allowed;
|
| 298 |
}
|
| 299 |
|
| 300 |
-
.add-docs-btn
|
| 301 |
-
|
|
|
|
|
|
|
| 302 |
}
|
| 303 |
|
| 304 |
/* View Documents Button */
|
|
@@ -306,25 +309,25 @@
|
|
| 306 |
display: flex;
|
| 307 |
align-items: center;
|
| 308 |
gap: 6px;
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
border: 1px solid var(--accent-primary);
|
| 312 |
border-radius: 8px;
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
font-weight: 600;
|
| 316 |
cursor: pointer;
|
| 317 |
transition: all 0.2s ease;
|
| 318 |
position: relative;
|
| 319 |
}
|
| 320 |
|
| 321 |
.view-docs-btn:hover {
|
| 322 |
-
background: var(--
|
| 323 |
-
color:
|
|
|
|
| 324 |
}
|
| 325 |
|
| 326 |
.view-docs-btn.active {
|
| 327 |
background: var(--accent-primary);
|
|
|
|
| 328 |
color: white;
|
| 329 |
}
|
| 330 |
|
|
@@ -346,7 +349,7 @@
|
|
| 346 |
color: var(--accent-primary);
|
| 347 |
}
|
| 348 |
|
| 349 |
-
/* Send Button - FIXED
|
| 350 |
.send-button {
|
| 351 |
display: flex;
|
| 352 |
align-items: center;
|
|
@@ -361,24 +364,22 @@
|
|
| 361 |
flex-shrink: 0;
|
| 362 |
}
|
| 363 |
|
| 364 |
-
/* Enabled state -
|
| 365 |
.send-button.enabled {
|
| 366 |
-
background: #3B82F6
|
| 367 |
-
color: #FFFFFF
|
| 368 |
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
|
| 369 |
}
|
| 370 |
|
| 371 |
-
/*
|
| 372 |
-
.send-button
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
width: 16px !important;
|
| 377 |
-
height: 16px !important;
|
| 378 |
}
|
| 379 |
|
| 380 |
.send-button.enabled:hover {
|
| 381 |
-
background: #2563EB
|
| 382 |
transform: translateY(-1px);
|
| 383 |
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
|
| 384 |
}
|
|
@@ -390,29 +391,15 @@
|
|
| 390 |
|
| 391 |
/* Disabled state */
|
| 392 |
.send-button.disabled {
|
| 393 |
-
background: #E5E7EB;
|
| 394 |
-
color: #9CA3AF;
|
| 395 |
cursor: not-allowed;
|
| 396 |
box-shadow: none;
|
| 397 |
}
|
| 398 |
|
| 399 |
[data-theme="dark"] .send-button.disabled {
|
| 400 |
-
background: #374151;
|
| 401 |
-
color: #6B7280;
|
| 402 |
-
}
|
| 403 |
-
|
| 404 |
-
.send-button.disabled svg {
|
| 405 |
-
color: #9CA3AF !important;
|
| 406 |
-
fill: #9CA3AF !important;
|
| 407 |
-
stroke: #9CA3AF !important;
|
| 408 |
-
width: 16px !important;
|
| 409 |
-
height: 16px !important;
|
| 410 |
-
}
|
| 411 |
-
|
| 412 |
-
[data-theme="dark"] .send-button.disabled svg {
|
| 413 |
-
color: #6B7280 !important;
|
| 414 |
-
fill: #6B7280 !important;
|
| 415 |
-
stroke: #6B7280 !important;
|
| 416 |
}
|
| 417 |
|
| 418 |
/* Document Upload Notifications */
|
|
@@ -421,103 +408,64 @@
|
|
| 421 |
justify-content: center;
|
| 422 |
margin: 16px 0;
|
| 423 |
animation: slideUpFade 0.3s ease-out;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 424 |
}
|
| 425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 426 |
.upload-notification-content {
|
| 427 |
display: flex;
|
| 428 |
align-items: center;
|
| 429 |
gap: 8px;
|
| 430 |
padding: 12px 16px;
|
| 431 |
-
background: var(--feature-bg);
|
| 432 |
-
border: 1px solid var(--accent-primary);
|
| 433 |
border-radius: 12px;
|
| 434 |
-
color: var(--accent-primary);
|
| 435 |
font-size: 14px;
|
| 436 |
font-weight: 500;
|
| 437 |
max-width: 80%;
|
| 438 |
-
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
|
| 439 |
-
}
|
| 440 |
-
|
| 441 |
-
[data-theme="dark"] .upload-notification-content {
|
| 442 |
-
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
|
| 443 |
}
|
| 444 |
|
| 445 |
-
.upload-notification-
|
| 446 |
flex-shrink: 0;
|
| 447 |
}
|
| 448 |
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
display: flex;
|
| 452 |
-
align-items: center;
|
| 453 |
-
gap: 6px;
|
| 454 |
-
padding: 6px 12px;
|
| 455 |
-
background: var(--feature-bg);
|
| 456 |
-
border: 1px solid var(--accent-primary);
|
| 457 |
-
border-radius: 20px;
|
| 458 |
-
color: var(--accent-primary);
|
| 459 |
-
font-size: 13px;
|
| 460 |
-
font-weight: 600;
|
| 461 |
-
cursor: default;
|
| 462 |
-
transition: all 0.2s ease;
|
| 463 |
-
}
|
| 464 |
-
|
| 465 |
-
.document-indicator:hover {
|
| 466 |
-
background: var(--accent-primary);
|
| 467 |
-
color: white;
|
| 468 |
}
|
| 469 |
|
| 470 |
-
.
|
| 471 |
-
|
| 472 |
-
color: white;
|
| 473 |
-
border-radius: 10px;
|
| 474 |
-
padding: 2px 6px;
|
| 475 |
-
font-size: 11px;
|
| 476 |
-
font-weight: 700;
|
| 477 |
-
min-width: 16px;
|
| 478 |
-
text-align: center;
|
| 479 |
-
line-height: 1.2;
|
| 480 |
-
}
|
| 481 |
-
|
| 482 |
-
.document-indicator:hover .doc-count {
|
| 483 |
-
background: white;
|
| 484 |
-
color: var(--accent-primary);
|
| 485 |
}
|
| 486 |
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
background: var(--bg-primary);
|
| 490 |
-
border: 1px solid var(--border-primary);
|
| 491 |
-
border-radius: 12px;
|
| 492 |
-
padding: 12px 16px;
|
| 493 |
-
margin-bottom: 12px;
|
| 494 |
-
display: flex;
|
| 495 |
-
align-items: center;
|
| 496 |
-
justify-content: space-between;
|
| 497 |
-
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
| 498 |
-
max-width: 768px;
|
| 499 |
-
margin-left: auto;
|
| 500 |
-
margin-right: auto;
|
| 501 |
-
margin-bottom: 12px;
|
| 502 |
}
|
| 503 |
|
| 504 |
-
|
| 505 |
-
|
|
|
|
|
|
|
|
|
|
| 506 |
}
|
| 507 |
|
| 508 |
-
.
|
| 509 |
-
display: flex;
|
| 510 |
-
align-items: center;
|
| 511 |
-
gap: 8px;
|
| 512 |
color: var(--text-secondary);
|
| 513 |
-
|
|
|
|
| 514 |
}
|
| 515 |
|
| 516 |
-
.
|
| 517 |
-
|
| 518 |
-
}
|
| 519 |
|
| 520 |
-
.
|
| 521 |
background: none;
|
| 522 |
border: none;
|
| 523 |
color: var(--text-tertiary);
|
|
@@ -527,7 +475,7 @@
|
|
| 527 |
transition: all 0.2s ease;
|
| 528 |
}
|
| 529 |
|
| 530 |
-
.
|
| 531 |
background: var(--bg-secondary);
|
| 532 |
color: var(--text-secondary);
|
| 533 |
}
|
|
|
|
| 1 |
+
/* Enhanced Chat Input Styles */
|
|
|
|
|
|
|
| 2 |
.enhanced-chat-input-container {
|
| 3 |
+
position: relative;
|
|
|
|
|
|
|
| 4 |
width: 100%;
|
| 5 |
+
max-width: 800px;
|
| 6 |
margin: 0 auto;
|
| 7 |
padding: 0 16px;
|
| 8 |
}
|
| 9 |
|
| 10 |
+
/* Reply Banner */
|
| 11 |
+
.reply-banner {
|
| 12 |
+
background: var(--bg-secondary);
|
| 13 |
+
border: 1px solid var(--border-primary);
|
| 14 |
+
border-radius: 12px 12px 0 0;
|
| 15 |
+
padding: 12px 16px;
|
| 16 |
+
margin: 0 16px;
|
| 17 |
+
display: flex;
|
| 18 |
+
align-items: center;
|
| 19 |
+
justify-content: space-between;
|
| 20 |
+
font-size: 14px;
|
| 21 |
+
color: var(--text-secondary);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.reply-content {
|
| 25 |
+
display: flex;
|
| 26 |
+
align-items: center;
|
| 27 |
+
gap: 8px;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.cancel-reply {
|
| 31 |
+
background: none;
|
| 32 |
+
border: none;
|
| 33 |
+
color: var(--text-tertiary);
|
| 34 |
+
cursor: pointer;
|
| 35 |
+
padding: 4px;
|
| 36 |
+
border-radius: 6px;
|
| 37 |
+
transition: all 0.2s ease;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.cancel-reply:hover {
|
| 41 |
+
background: var(--bg-secondary);
|
| 42 |
+
color: var(--text-secondary);
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
/* Floating Upload Section */
|
| 46 |
.floating-upload-section {
|
| 47 |
background: var(--bg-primary);
|
| 48 |
border: 1px solid var(--border-primary);
|
| 49 |
border-radius: 16px;
|
| 50 |
+
margin-bottom: 12px;
|
| 51 |
padding: 20px;
|
| 52 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
| 53 |
animation: slideUpFade 0.2s ease-out;
|
| 54 |
}
|
| 55 |
|
| 56 |
[data-theme="dark"] .floating-upload-section {
|
| 57 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
| 58 |
}
|
| 59 |
|
| 60 |
/* Floating Documents Section */
|
|
|
|
| 62 |
background: var(--bg-primary);
|
| 63 |
border: 1px solid var(--border-primary);
|
| 64 |
border-radius: 16px;
|
| 65 |
+
margin-bottom: 12px;
|
| 66 |
+
max-height: 400px;
|
|
|
|
|
|
|
| 67 |
overflow: hidden;
|
| 68 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
| 69 |
+
animation: slideUpFade 0.2s ease-out;
|
| 70 |
}
|
| 71 |
|
| 72 |
[data-theme="dark"] .floating-documents-section {
|
| 73 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
| 74 |
}
|
| 75 |
|
| 76 |
.documents-header {
|
|
|
|
| 86 |
display: flex;
|
| 87 |
align-items: center;
|
| 88 |
gap: 8px;
|
| 89 |
+
font-weight: 500;
|
| 90 |
color: var(--text-primary);
|
| 91 |
font-size: 14px;
|
| 92 |
}
|
|
|
|
| 94 |
.close-documents-btn {
|
| 95 |
background: none;
|
| 96 |
border: none;
|
| 97 |
+
color: var(--text-tertiary);
|
| 98 |
cursor: pointer;
|
| 99 |
+
padding: 6px;
|
| 100 |
border-radius: 6px;
|
| 101 |
transition: all 0.2s ease;
|
| 102 |
}
|
| 103 |
|
| 104 |
.close-documents-btn:hover {
|
| 105 |
background: var(--bg-tertiary);
|
| 106 |
+
color: var(--text-secondary);
|
| 107 |
}
|
| 108 |
|
| 109 |
.documents-list {
|
|
|
|
| 119 |
justify-content: center;
|
| 120 |
padding: 40px 20px;
|
| 121 |
text-align: center;
|
| 122 |
+
color: var(--text-tertiary);
|
| 123 |
}
|
| 124 |
|
| 125 |
.no-documents svg {
|
|
|
|
| 126 |
margin-bottom: 12px;
|
| 127 |
+
opacity: 0.5;
|
| 128 |
}
|
| 129 |
|
| 130 |
.no-documents p {
|
| 131 |
+
margin: 8px 0;
|
| 132 |
font-weight: 500;
|
| 133 |
color: var(--text-primary);
|
| 134 |
}
|
|
|
|
| 242 |
max-height: 200px;
|
| 243 |
border: none;
|
| 244 |
outline: none;
|
| 245 |
+
resize: none;
|
| 246 |
background: transparent;
|
| 247 |
color: var(--text-primary);
|
| 248 |
font-size: 16px;
|
| 249 |
font-family: inherit;
|
| 250 |
line-height: 1.5;
|
|
|
|
| 251 |
overflow-y: auto;
|
|
|
|
| 252 |
}
|
| 253 |
|
| 254 |
.main-textarea::placeholder {
|
| 255 |
+
color: var(--text-tertiary);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
}
|
| 257 |
|
| 258 |
/* Controls Row */
|
|
|
|
| 261 |
align-items: center;
|
| 262 |
justify-content: space-between;
|
| 263 |
padding: 8px 20px 16px 20px;
|
|
|
|
| 264 |
}
|
| 265 |
|
| 266 |
+
/* File Controls - ensure buttons stay side by side */
|
| 267 |
.file-controls {
|
| 268 |
display: flex;
|
| 269 |
align-items: center;
|
| 270 |
gap: 8px;
|
| 271 |
+
flex-wrap: nowrap;
|
| 272 |
}
|
| 273 |
|
| 274 |
/* Add Documents Button */
|
| 275 |
.add-docs-btn {
|
| 276 |
display: flex;
|
| 277 |
align-items: center;
|
| 278 |
+
gap: 6px;
|
| 279 |
+
background: var(--bg-secondary);
|
| 280 |
+
border: 1px solid var(--border-secondary);
|
|
|
|
| 281 |
border-radius: 8px;
|
| 282 |
+
padding: 8px 12px;
|
| 283 |
font-size: 14px;
|
| 284 |
font-weight: 500;
|
| 285 |
+
color: var(--text-secondary);
|
| 286 |
cursor: pointer;
|
| 287 |
transition: all 0.2s ease;
|
|
|
|
| 288 |
}
|
| 289 |
|
| 290 |
.add-docs-btn:hover:not(:disabled) {
|
| 291 |
+
background: var(--bg-tertiary);
|
| 292 |
+
border-color: var(--border-primary);
|
| 293 |
color: var(--text-primary);
|
| 294 |
}
|
| 295 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 296 |
.add-docs-btn:disabled {
|
| 297 |
opacity: 0.5;
|
| 298 |
cursor: not-allowed;
|
| 299 |
}
|
| 300 |
|
| 301 |
+
.add-docs-btn.active {
|
| 302 |
+
background: var(--accent-primary);
|
| 303 |
+
border-color: var(--accent-primary);
|
| 304 |
+
color: white;
|
| 305 |
}
|
| 306 |
|
| 307 |
/* View Documents Button */
|
|
|
|
| 309 |
display: flex;
|
| 310 |
align-items: center;
|
| 311 |
gap: 6px;
|
| 312 |
+
background: var(--bg-secondary);
|
| 313 |
+
border: 1px solid var(--border-secondary);
|
|
|
|
| 314 |
border-radius: 8px;
|
| 315 |
+
padding: 8px 10px;
|
| 316 |
+
color: var(--text-secondary);
|
|
|
|
| 317 |
cursor: pointer;
|
| 318 |
transition: all 0.2s ease;
|
| 319 |
position: relative;
|
| 320 |
}
|
| 321 |
|
| 322 |
.view-docs-btn:hover {
|
| 323 |
+
background: var(--bg-tertiary);
|
| 324 |
+
border-color: var(--border-primary);
|
| 325 |
+
color: var(--text-primary);
|
| 326 |
}
|
| 327 |
|
| 328 |
.view-docs-btn.active {
|
| 329 |
background: var(--accent-primary);
|
| 330 |
+
border-color: var(--accent-primary);
|
| 331 |
color: white;
|
| 332 |
}
|
| 333 |
|
|
|
|
| 349 |
color: var(--accent-primary);
|
| 350 |
}
|
| 351 |
|
| 352 |
+
/* Send Button - FIXED VERSION */
|
| 353 |
.send-button {
|
| 354 |
display: flex;
|
| 355 |
align-items: center;
|
|
|
|
| 364 |
flex-shrink: 0;
|
| 365 |
}
|
| 366 |
|
| 367 |
+
/* Enabled state - clean approach */
|
| 368 |
.send-button.enabled {
|
| 369 |
+
background: #3B82F6;
|
| 370 |
+
color: #FFFFFF;
|
| 371 |
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
|
| 372 |
}
|
| 373 |
|
| 374 |
+
/* Icon styling - use currentColor for better inheritance */
|
| 375 |
+
.send-button svg {
|
| 376 |
+
width: 16px;
|
| 377 |
+
height: 16px;
|
| 378 |
+
color: currentColor;
|
|
|
|
|
|
|
| 379 |
}
|
| 380 |
|
| 381 |
.send-button.enabled:hover {
|
| 382 |
+
background: #2563EB;
|
| 383 |
transform: translateY(-1px);
|
| 384 |
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
|
| 385 |
}
|
|
|
|
| 391 |
|
| 392 |
/* Disabled state */
|
| 393 |
.send-button.disabled {
|
| 394 |
+
background: #E5E7EB;
|
| 395 |
+
color: #9CA3AF;
|
| 396 |
cursor: not-allowed;
|
| 397 |
box-shadow: none;
|
| 398 |
}
|
| 399 |
|
| 400 |
[data-theme="dark"] .send-button.disabled {
|
| 401 |
+
background: #374151;
|
| 402 |
+
color: #6B7280;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
}
|
| 404 |
|
| 405 |
/* Document Upload Notifications */
|
|
|
|
| 408 |
justify-content: center;
|
| 409 |
margin: 16px 0;
|
| 410 |
animation: slideUpFade 0.3s ease-out;
|
| 411 |
+
background: transparent;
|
| 412 |
+
box-shadow: none;
|
| 413 |
+
border: none;
|
| 414 |
+
padding: 0;
|
| 415 |
}
|
| 416 |
|
| 417 |
+
/* [data-theme="dark"] .document-upload-notification {
|
| 418 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
| 419 |
+
} */
|
| 420 |
+
|
| 421 |
.upload-notification-content {
|
| 422 |
display: flex;
|
| 423 |
align-items: center;
|
| 424 |
gap: 8px;
|
| 425 |
padding: 12px 16px;
|
| 426 |
+
background: var(--feature-bg); /* Change from fixed color */
|
| 427 |
+
border: 1px solid var(--accent-primary); /* Change from fixed color */
|
| 428 |
border-radius: 12px;
|
| 429 |
+
color: var(--accent-primary); /* Change from fixed color */
|
| 430 |
font-size: 14px;
|
| 431 |
font-weight: 500;
|
| 432 |
max-width: 80%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 433 |
}
|
| 434 |
|
| 435 |
+
.upload-notification-icon {
|
| 436 |
flex-shrink: 0;
|
| 437 |
}
|
| 438 |
|
| 439 |
+
.upload-notification-icon.success {
|
| 440 |
+
color: #10B981;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 441 |
}
|
| 442 |
|
| 443 |
+
.upload-notification-icon.error {
|
| 444 |
+
color: #EF4444;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 445 |
}
|
| 446 |
|
| 447 |
+
.upload-notification-text {
|
| 448 |
+
flex: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 449 |
}
|
| 450 |
|
| 451 |
+
.upload-notification-title {
|
| 452 |
+
font-weight: 500;
|
| 453 |
+
color: var(--text-primary);
|
| 454 |
+
margin: 0 0 2px 0;
|
| 455 |
+
font-size: 14px;
|
| 456 |
}
|
| 457 |
|
| 458 |
+
.upload-notification-message {
|
|
|
|
|
|
|
|
|
|
| 459 |
color: var(--text-secondary);
|
| 460 |
+
margin: 0;
|
| 461 |
+
font-size: 13px;
|
| 462 |
}
|
| 463 |
|
| 464 |
+
/* [data-theme="dark"] .upload-notification-content {
|
| 465 |
+
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
|
| 466 |
+
} */
|
| 467 |
|
| 468 |
+
.notification-close-btn {
|
| 469 |
background: none;
|
| 470 |
border: none;
|
| 471 |
color: var(--text-tertiary);
|
|
|
|
| 475 |
transition: all 0.2s ease;
|
| 476 |
}
|
| 477 |
|
| 478 |
+
.notification-close-btn:hover {
|
| 479 |
background: var(--bg-secondary);
|
| 480 |
color: var(--text-secondary);
|
| 481 |
}
|
phd-advisor-frontend/src/styles/components.css
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
/* components.css - General Component Styles */
|
| 2 |
-
|
| 3 |
/* CSS Custom Properties for Theming */
|
| 4 |
:root[data-theme="light"] {
|
| 5 |
/* Background Colors */
|
|
@@ -215,6 +213,7 @@
|
|
| 215 |
line-height: 1.6;
|
| 216 |
}
|
| 217 |
|
|
|
|
| 218 |
.cta-button {
|
| 219 |
display: inline-flex;
|
| 220 |
align-items: center;
|
|
@@ -241,6 +240,11 @@
|
|
| 241 |
height: 24px;
|
| 242 |
}
|
| 243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
/* Advisors Grid */
|
| 245 |
.advisors-grid {
|
| 246 |
display: grid;
|
|
@@ -623,6 +627,15 @@
|
|
| 623 |
margin: 0;
|
| 624 |
}
|
| 625 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 626 |
.thinking-dots {
|
| 627 |
display: flex;
|
| 628 |
gap: 4px;
|
|
@@ -641,7 +654,7 @@
|
|
| 641 |
margin-bottom: 0;
|
| 642 |
}
|
| 643 |
|
| 644 |
-
/* Chat Input */
|
| 645 |
.input-area {
|
| 646 |
border-top: 1px solid var(--border-primary);
|
| 647 |
padding: 16px;
|
|
@@ -675,7 +688,8 @@
|
|
| 675 |
box-shadow: var(--input-focus-shadow);
|
| 676 |
}
|
| 677 |
|
| 678 |
-
|
|
|
|
| 679 |
background: var(--accent-gradient);
|
| 680 |
color: #FFFFFF;
|
| 681 |
padding: 12px 24px;
|
|
@@ -689,23 +703,23 @@
|
|
| 689 |
gap: 8px;
|
| 690 |
}
|
| 691 |
|
| 692 |
-
.send-button:hover:not(:disabled) {
|
| 693 |
transform: translateY(-1px);
|
| 694 |
box-shadow: var(--shadow-md);
|
| 695 |
}
|
| 696 |
|
| 697 |
-
.send-button:disabled {
|
| 698 |
opacity: 0.5;
|
| 699 |
cursor: not-allowed;
|
| 700 |
transform: none;
|
| 701 |
}
|
| 702 |
|
| 703 |
-
.send-icon {
|
| 704 |
width: 20px;
|
| 705 |
height: 20px;
|
| 706 |
}
|
| 707 |
|
| 708 |
-
.send-text {
|
| 709 |
display: none;
|
| 710 |
}
|
| 711 |
|
|
@@ -755,7 +769,8 @@
|
|
| 755 |
font-size: 13px;
|
| 756 |
}
|
| 757 |
|
| 758 |
-
|
|
|
|
| 759 |
display: inline;
|
| 760 |
}
|
| 761 |
|
|
|
|
|
|
|
|
|
|
| 1 |
/* CSS Custom Properties for Theming */
|
| 2 |
:root[data-theme="light"] {
|
| 3 |
/* Background Colors */
|
|
|
|
| 213 |
line-height: 1.6;
|
| 214 |
}
|
| 215 |
|
| 216 |
+
/* CTA Button */
|
| 217 |
.cta-button {
|
| 218 |
display: inline-flex;
|
| 219 |
align-items: center;
|
|
|
|
| 240 |
height: 24px;
|
| 241 |
}
|
| 242 |
|
| 243 |
+
.cta-arrow {
|
| 244 |
+
width: 20px;
|
| 245 |
+
height: 20px;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
/* Advisors Grid */
|
| 249 |
.advisors-grid {
|
| 250 |
display: grid;
|
|
|
|
| 627 |
margin: 0;
|
| 628 |
}
|
| 629 |
|
| 630 |
+
.thinking-indicator {
|
| 631 |
+
display: flex;
|
| 632 |
+
align-items: center;
|
| 633 |
+
gap: 8px;
|
| 634 |
+
color: var(--text-secondary);
|
| 635 |
+
font-style: italic;
|
| 636 |
+
margin-bottom: 8px;
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
.thinking-dots {
|
| 640 |
display: flex;
|
| 641 |
gap: 4px;
|
|
|
|
| 654 |
margin-bottom: 0;
|
| 655 |
}
|
| 656 |
|
| 657 |
+
/* Basic Chat Input - SCOPED TO AVOID CONFLICTS */
|
| 658 |
.input-area {
|
| 659 |
border-top: 1px solid var(--border-primary);
|
| 660 |
padding: 16px;
|
|
|
|
| 688 |
box-shadow: var(--input-focus-shadow);
|
| 689 |
}
|
| 690 |
|
| 691 |
+
/* IMPORTANT: Make send button styles specific to basic ChatInput only */
|
| 692 |
+
.input-container .send-button {
|
| 693 |
background: var(--accent-gradient);
|
| 694 |
color: #FFFFFF;
|
| 695 |
padding: 12px 24px;
|
|
|
|
| 703 |
gap: 8px;
|
| 704 |
}
|
| 705 |
|
| 706 |
+
.input-container .send-button:hover:not(:disabled) {
|
| 707 |
transform: translateY(-1px);
|
| 708 |
box-shadow: var(--shadow-md);
|
| 709 |
}
|
| 710 |
|
| 711 |
+
.input-container .send-button:disabled {
|
| 712 |
opacity: 0.5;
|
| 713 |
cursor: not-allowed;
|
| 714 |
transform: none;
|
| 715 |
}
|
| 716 |
|
| 717 |
+
.input-container .send-icon {
|
| 718 |
width: 20px;
|
| 719 |
height: 20px;
|
| 720 |
}
|
| 721 |
|
| 722 |
+
.input-container .send-text {
|
| 723 |
display: none;
|
| 724 |
}
|
| 725 |
|
|
|
|
| 769 |
font-size: 13px;
|
| 770 |
}
|
| 771 |
|
| 772 |
+
/* Basic ChatInput mobile styles */
|
| 773 |
+
.input-container .send-text {
|
| 774 |
display: inline;
|
| 775 |
}
|
| 776 |
|