| @@ -1,6 +1,4 @@ | ||
| 1 | - | |
| 2 | - | |
| 3 | 1 | /* Core Styles */ |
| 4 | 2 | #wpcontent { |
| 5 | 3 | padding-left: 0; |
| 6 | 4 | } |
| @@ -76,8 +74,461 @@ | ||
| 76 | 74 | max-width: 1400px; |
| 77 | 75 | margin: 0 auto; |
| 78 | 76 | } |
| 79 | 77 | |
| 78 | +/* Action Buttons */ | |
| 79 | +.mxchat-action-button { | |
| 80 | + background: linear-gradient(135deg, #fa73e6, #7873f5); | |
| 81 | + color: white; | |
| 82 | + border: none; | |
| 83 | + padding: 8px 16px; | |
| 84 | + border-radius: 8px; | |
| 85 | + cursor: pointer; | |
| 86 | + font-weight: 600; | |
| 87 | + display: flex; | |
| 88 | + align-items: center; | |
| 89 | + gap: 8px; | |
| 90 | + transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| 91 | +} | |
| 92 | + | |
| 93 | +.mxchat-action-button:hover { | |
| 94 | + transform: translateY(-1px); | |
| 95 | + box-shadow: 0 4px 12px rgba(120, 115, 245, 0.2); | |
| 96 | +} | |
| 97 | + | |
| 98 | +.mxchat-action-button.loading { | |
| 99 | + opacity: 0.7; | |
| 100 | + cursor: not-allowed; | |
| 101 | +} | |
| 102 | + | |
| 103 | +.mxchat-action-button .dashicons { | |
| 104 | + font-size: 16px; | |
| 105 | + width: 16px; | |
| 106 | + height: 16px; | |
| 107 | +} | |
| 108 | + | |
| 109 | +/* Session Container - Clean and Minimal */ | |
| 110 | +.mxchat-session { | |
| 111 | + background: #ffffff; | |
| 112 | + border: 1px solid #e5e7eb; | |
| 113 | + border-radius: 8px; | |
| 114 | + margin-bottom: 16px; | |
| 115 | + overflow: hidden; | |
| 116 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); | |
| 117 | + transition: all 0.2s ease; | |
| 118 | +} | |
| 119 | + | |
| 120 | +.mxchat-session:hover { | |
| 121 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); | |
| 122 | +} | |
| 123 | + | |
| 124 | +/* Selected state for entire session */ | |
| 125 | +.mxchat-session.selected { | |
| 126 | + border: 2px solid #3b82f6; | |
| 127 | + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); | |
| 128 | +} | |
| 129 | + | |
| 130 | +.mxchat-session.selected .mxchat-session-header { | |
| 131 | + background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); | |
| 132 | +} | |
| 133 | + | |
| 134 | +/* Show trash icon when session is selected */ | |
| 135 | +.mxchat-session.selected .mxchat-hover-actions { | |
| 136 | + opacity: 1; | |
| 137 | +} | |
| 138 | + | |
| 139 | +/* Clean Hover-Action Session Header */ | |
| 140 | +.mxchat-session-header { | |
| 141 | + background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); | |
| 142 | + border-bottom: 1px solid #e2e8f0; | |
| 143 | + padding: 16px 20px; | |
| 144 | + transition: background-color 0.2s ease; | |
| 145 | + position: relative; | |
| 146 | + cursor: pointer; | |
| 147 | +} | |
| 148 | + | |
| 149 | +.mxchat-session-header:hover { | |
| 150 | + background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); | |
| 151 | +} | |
| 152 | + | |
| 153 | +/* Top-centered user pill */ | |
| 154 | +.mxchat-user-row { | |
| 155 | + color: #1e293b; | |
| 156 | + font-size: 15px; | |
| 157 | + font-weight: 600; | |
| 158 | + margin-bottom: 12px; | |
| 159 | + background: linear-gradient(135deg, #f0f9ff, #dbeafe); | |
| 160 | + padding: 6px 16px; | |
| 161 | + border-radius: 20px; | |
| 162 | + border: 1px solid #bfdbfe; | |
| 163 | + display: inline-block; | |
| 164 | + max-width: calc(100% - 40px); | |
| 165 | + overflow: hidden; | |
| 166 | + text-overflow: ellipsis; | |
| 167 | + white-space: nowrap; | |
| 168 | + text-align: center; | |
| 169 | + width: fit-content; | |
| 170 | + display: block; | |
| 171 | + margin: 0 auto 12px auto; | |
| 172 | +} | |
| 173 | + | |
| 174 | +.mxchat-header-row { | |
| 175 | + display: flex; | |
| 176 | + justify-content: flex-start; | |
| 177 | + align-items: center; | |
| 178 | + margin-bottom: 8px; | |
| 179 | +} | |
| 180 | + | |
| 181 | +.mxchat-main-info { | |
| 182 | + display: flex; | |
| 183 | + align-items: left; | |
| 184 | + flex-direction: column; | |
| 185 | + gap: 8px; | |
| 186 | +} | |
| 187 | + | |
| 188 | +.mxchat-session-id { | |
| 189 | + font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; | |
| 190 | + font-size: 14px; | |
| 191 | + font-weight: 700; | |
| 192 | + color: #475569; | |
| 193 | + background: #e2e8f0; | |
| 194 | + padding: 4px 8px; | |
| 195 | + border-radius: 6px; | |
| 196 | +} | |
| 197 | + | |
| 198 | +.mxchat-separator { | |
| 199 | + color: #94a3b8; | |
| 200 | + font-weight: 500; | |
| 201 | +} | |
| 202 | + | |
| 203 | +.mxchat-session-time { | |
| 204 | + color: #64748b; | |
| 205 | + font-size: 13px; | |
| 206 | + font-weight: 500; | |
| 207 | +} | |
| 208 | + | |
| 209 | +/* Bottom-right positioned trash can */ | |
| 210 | +.mxchat-hover-actions { | |
| 211 | + position: absolute; | |
| 212 | + bottom: 12px; | |
| 213 | + right: 16px; | |
| 214 | + opacity: 0; | |
| 215 | + transition: opacity 0.2s ease; | |
| 216 | +} | |
| 217 | + | |
| 218 | +.mxchat-session-header:hover .mxchat-hover-actions { | |
| 219 | + opacity: 1; | |
| 220 | +} | |
| 221 | + | |
| 222 | +.mxchat-delete-btn { | |
| 223 | + background: none; | |
| 224 | + border: none; | |
| 225 | + cursor: pointer; | |
| 226 | + font-size: 16px; | |
| 227 | + padding: 4px 8px; | |
| 228 | + border-radius: 4px; | |
| 229 | + transition: background-color 0.2s ease; | |
| 230 | +} | |
| 231 | + | |
| 232 | +.mxchat-delete-btn:hover { | |
| 233 | + background: rgba(239, 68, 68, 0.1); | |
| 234 | +} | |
| 235 | + | |
| 236 | +/* Content Rows */ | |
| 237 | +.mxchat-page-row, | |
| 238 | +.mxchat-links-row { | |
| 239 | + color: #64748b; | |
| 240 | + font-size: 13px; | |
| 241 | + margin-bottom: 4px; | |
| 242 | + line-height: 1.4; | |
| 243 | +} | |
| 244 | + | |
| 245 | +.mxchat-label { | |
| 246 | + font-weight: 600; | |
| 247 | + color: #475569; | |
| 248 | +} | |
| 249 | + | |
| 250 | +.mxchat-page-link { | |
| 251 | + color: #3b82f6; | |
| 252 | + text-decoration: none; | |
| 253 | + font-weight: 500; | |
| 254 | + transition: color 0.2s ease; | |
| 255 | +} | |
| 256 | + | |
| 257 | +.mxchat-page-link:hover { | |
| 258 | + color: #1d4ed8; | |
| 259 | + text-decoration: underline; | |
| 260 | +} | |
| 261 | + | |
| 262 | +.mxchat-link-item { | |
| 263 | + color: #7c3aed; | |
| 264 | + text-decoration: none; | |
| 265 | + font-weight: 500; | |
| 266 | + transition: color 0.2s ease; | |
| 267 | +} | |
| 268 | + | |
| 269 | +.mxchat-link-item:hover { | |
| 270 | + color: #5b21b6; | |
| 271 | + text-decoration: underline; | |
| 272 | +} | |
| 273 | + | |
| 274 | +/* Messages Section - Keep existing styling */ | |
| 275 | +.mxchat-messages { | |
| 276 | + padding: 16px; | |
| 277 | + background: #ffffff; | |
| 278 | +} | |
| 279 | + | |
| 280 | +.mxchat-message { | |
| 281 | + border-radius: 8px; | |
| 282 | + border-left: 4px solid transparent; | |
| 283 | +} | |
| 284 | + | |
| 285 | +.mxchat-message-header { | |
| 286 | + font-weight: 600; | |
| 287 | + font-size: 14px; | |
| 288 | + color: #374151; | |
| 289 | + margin-bottom: 6px; | |
| 290 | +} | |
| 291 | + | |
| 292 | +.mxchat-message-content { | |
| 293 | + color: #4b5563; | |
| 294 | + line-height: 1.6; | |
| 295 | + font-size: 14px; | |
| 296 | + margin-bottom: 8px; | |
| 297 | +} | |
| 298 | + | |
| 299 | +.mxchat-timestamp { | |
| 300 | + font-size: 12px; | |
| 301 | + color: #9ca3af; | |
| 302 | + font-weight: 500; | |
| 303 | +} | |
| 304 | + | |
| 305 | +/* Chat Email Notification Modal styles */ | |
| 306 | +.mxchat-chat-notification-modal-overlay { | |
| 307 | + position: fixed; | |
| 308 | + z-index: 9999; | |
| 309 | + left: 0; | |
| 310 | + top: 0; | |
| 311 | + width: 100%; | |
| 312 | + height: 100%; | |
| 313 | + background-color: rgba(0, 0, 0, 0.5); | |
| 314 | + display: flex; | |
| 315 | + align-items: center; | |
| 316 | + justify-content: center; | |
| 317 | + animation: mxchatNotificationFadeIn 0.3s ease; | |
| 318 | +} | |
| 319 | + | |
| 320 | +@keyframes mxchatNotificationFadeIn { | |
| 321 | + from { opacity: 0; } | |
| 322 | + to { opacity: 1; } | |
| 323 | +} | |
| 324 | + | |
| 325 | +.mxchat-chat-notification-modal-content { | |
| 326 | + background-color: #fff; | |
| 327 | + border-radius: 12px; | |
| 328 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); | |
| 329 | + width: 90%; | |
| 330 | + max-width: 500px; | |
| 331 | + animation: mxchatNotificationSlideIn 0.3s ease; | |
| 332 | +} | |
| 333 | + | |
| 334 | +@keyframes mxchatNotificationSlideIn { | |
| 335 | + from { transform: translateY(-20px); opacity: 0; } | |
| 336 | + to { transform: translateY(0); opacity: 1; } | |
| 337 | +} | |
| 338 | + | |
| 339 | +.mxchat-chat-notification-modal-header { | |
| 340 | + padding: 20px; | |
| 341 | + border-bottom: 1px solid #e5e7eb; | |
| 342 | + display: flex; | |
| 343 | + justify-content: space-between; | |
| 344 | + align-items: center; | |
| 345 | +} | |
| 346 | + | |
| 347 | +.mxchat-chat-notification-modal-header h2 { | |
| 348 | + margin: 0; | |
| 349 | + font-size: 20px; | |
| 350 | + font-weight: 600; | |
| 351 | + color: #1f2937; | |
| 352 | +} | |
| 353 | + | |
| 354 | +.mxchat-chat-notification-modal-close { | |
| 355 | + background: none; | |
| 356 | + border: none; | |
| 357 | + font-size: 24px; | |
| 358 | + cursor: pointer; | |
| 359 | + color: #6b7280; | |
| 360 | + padding: 0; | |
| 361 | + width: 30px; | |
| 362 | + height: 30px; | |
| 363 | + display: flex; | |
| 364 | + align-items: center; | |
| 365 | + justify-content: center; | |
| 366 | + border-radius: 50%; | |
| 367 | + transition: all 0.2s ease; | |
| 368 | +} | |
| 369 | + | |
| 370 | +.mxchat-chat-notification-modal-close:hover { | |
| 371 | + background-color: #f3f4f6; | |
| 372 | + color: #1f2937; | |
| 373 | +} | |
| 374 | + | |
| 375 | +.mxchat-chat-notification-modal-body { | |
| 376 | + padding: 20px; | |
| 377 | +} | |
| 378 | + | |
| 379 | +.mxchat-chat-notification-modal-body p { | |
| 380 | + margin-top: 0; | |
| 381 | + color: #4b5563; | |
| 382 | + line-height: 1.6; | |
| 383 | +} | |
| 384 | + | |
| 385 | +.mxchat-chat-notification-modal-footer { | |
| 386 | + padding: 20px; | |
| 387 | + border-top: 1px solid #e5e7eb; | |
| 388 | + display: flex; | |
| 389 | + justify-content: flex-end; | |
| 390 | + gap: 10px; | |
| 391 | +} | |
| 392 | + | |
| 393 | +#mxchat-chat-email-notification-btn:hover { | |
| 394 | + transform: translateY(-2px); | |
| 395 | + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); | |
| 396 | +} | |
| 397 | + | |
| 398 | +#mxchat-chat-email-notification-btn .dashicons { | |
| 399 | + font-size: 18px; | |
| 400 | + width: 18px; | |
| 401 | + height: 18px; | |
| 402 | +} | |
| 403 | + | |
| 404 | +/* Form styles within chat notification modal */ | |
| 405 | +.mxchat-chat-notification-modal-content .form-table { | |
| 406 | + margin: 0; | |
| 407 | +} | |
| 408 | + | |
| 409 | +.mxchat-chat-notification-modal-content .form-table th { | |
| 410 | + padding: 15px 10px 15px 0; | |
| 411 | + width: 180px; | |
| 412 | + font-weight: 600; | |
| 413 | + color: #374151; | |
| 414 | +} | |
| 415 | + | |
| 416 | +.mxchat-chat-notification-modal-content .form-table td { | |
| 417 | + padding: 15px 10px; | |
| 418 | +} | |
| 419 | + | |
| 420 | +.mxchat-chat-notification-modal-content .regular-text { | |
| 421 | + width: 100%; | |
| 422 | + max-width: 100%; | |
| 423 | + border: 1px solid #d1d5db; | |
| 424 | + border-radius: 6px; | |
| 425 | + padding: 8px 12px; | |
| 426 | + font-size: 14px; | |
| 427 | +} | |
| 428 | + | |
| 429 | +.mxchat-chat-notification-modal-content .description { | |
| 430 | + margin-top: 8px; | |
| 431 | + color: #6b7280; | |
| 432 | + font-size: 13px; | |
| 433 | +} | |
| 434 | + | |
| 435 | +/* Checkbox styling in chat notification modal */ | |
| 436 | +.mxchat-chat-notification-modal-content input[type="checkbox"] { | |
| 437 | + margin-right: 8px; | |
| 438 | +} | |
| 439 | + | |
| 440 | +.mxchat-chat-notification-modal-content label { | |
| 441 | + color: #374151; | |
| 442 | + font-size: 14px; | |
| 443 | +} | |
| 444 | + | |
| 445 | +/* Button styling in chat notification modal */ | |
| 446 | +.mxchat-chat-notification-modal-content .button { | |
| 447 | + padding: 8px 16px; | |
| 448 | + border-radius: 6px; | |
| 449 | + font-size: 14px; | |
| 450 | + cursor: pointer; | |
| 451 | + transition: all 0.2s ease; | |
| 452 | +} | |
| 453 | + | |
| 454 | +.mxchat-chat-notification-modal-content .button-primary { | |
| 455 | + background: linear-gradient(135deg, #3b82f6, #8b5cf6); | |
| 456 | + border: none; | |
| 457 | + color: #fff; | |
| 458 | +} | |
| 459 | + | |
| 460 | +.mxchat-chat-notification-modal-content .button-primary:hover { | |
| 461 | + transform: translateY(-1px); | |
| 462 | + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); | |
| 463 | +} | |
| 464 | + | |
| 465 | +.mxchat-chat-notification-modal-content .mxchat-chat-notification-modal-cancel { | |
| 466 | + background: #f3f4f6; | |
| 467 | + border: 1px solid #e5e7eb; | |
| 468 | + color: #374151; | |
| 469 | +} | |
| 470 | + | |
| 471 | +.mxchat-chat-notification-modal-content .mxchat-chat-notification-modal-cancel:hover { | |
| 472 | + background: #e5e7eb; | |
| 473 | +} | |
| 474 | + | |
| 475 | +/* Pagination Styles */ | |
| 476 | +.mxchat-pagination { | |
| 477 | + margin-top: 20px; | |
| 478 | + display: flex; | |
| 479 | + flex-wrap: wrap; | |
| 480 | + justify-content: space-between; | |
| 481 | + align-items: center; | |
| 482 | +} | |
| 483 | + | |
| 484 | +.mxchat-pagination-info { | |
| 485 | + margin-bottom: 10px; | |
| 486 | + color: #666; | |
| 487 | +} | |
| 488 | + | |
| 489 | +.mxchat-pagination-controls { | |
| 490 | + display: flex; | |
| 491 | + flex-wrap: wrap; | |
| 492 | + gap: 5px; | |
| 493 | +} | |
| 494 | + | |
| 495 | +.mxchat-pagination-button { | |
| 496 | + padding: 6px 12px; | |
| 497 | + background: #f7f7f7; | |
| 498 | + border: 1px solid #ddd; | |
| 499 | + border-radius: 3px; | |
| 500 | + cursor: pointer; | |
| 501 | + transition: all 0.2s ease; | |
| 502 | +} | |
| 503 | + | |
| 504 | +.mxchat-pagination-button:hover { | |
| 505 | + background: #e9e9e9; | |
| 506 | +} | |
| 507 | + | |
| 508 | +.mxchat-pagination-button.active { | |
| 509 | + background: #2271b1; | |
| 510 | + border-color: #2271b1; | |
| 511 | + color: white; | |
| 512 | + font-weight: bold; | |
| 513 | +} | |
| 514 | + | |
| 515 | +.mxchat-pagination-ellipsis { | |
| 516 | + padding: 6px 8px; | |
| 517 | + color: #666; | |
| 518 | +} | |
| 519 | + | |
| 520 | +/* No Results Styling */ | |
| 521 | +.mxchat-no-results { | |
| 522 | + text-align: center; | |
| 523 | + padding: 40px 20px; | |
| 524 | + color: #6b7280; | |
| 525 | + font-size: 16px; | |
| 526 | + background: #f9fafb; | |
| 527 | + border-radius: 8px; | |
| 528 | + border: 2px dashed #d1d5db; | |
| 529 | +} | |
| 530 | + | |
| 80 | 531 | /* Responsive Design */ |
| 81 | 532 | @media (max-width: 768px) { |
| 82 | 533 | body.wp-admin .wrap.mxchat-transcripts-wrapper { |
| 83 | 534 | padding: 0; |
| @@ -94,38 +545,79 @@ | ||
| 94 | 545 | .auto-fold #wpcontent { |
| 95 | 546 | margin-left: 0; |
| 96 | 547 | padding-left: 0px; |
| 97 | 548 | } |
| 549 | + | |
| 98 | 550 | .mxchat-action-button { |
| 99 | 551 | width: 100%; |
| 100 | 552 | } |
| 553 | + | |
| 554 | + .mxchat-session-header { | |
| 555 | + padding: 10px 12px; | |
| 556 | + flex-direction: column; | |
| 557 | + align-items: flex-start; | |
| 558 | + gap: 8px; | |
| 559 | + } | |
| 560 | + | |
| 561 | + .mxchat-session-info { | |
| 562 | + width: 100%; | |
| 563 | + gap: 8px; | |
| 564 | + } | |
| 565 | + | |
| 566 | + .mxchat-session-details { | |
| 567 | + flex-direction: column; | |
| 568 | + align-items: flex-start; | |
| 569 | + gap: 6px; | |
| 570 | + } | |
| 571 | + | |
| 572 | + .mxchat-user, | |
| 573 | + .mxchat-page, | |
| 574 | + .mxchat-links { | |
| 575 | + max-width: none; | |
| 576 | + } | |
| 577 | + | |
| 578 | + .mxchat-session-time { | |
| 579 | + align-self: flex-end; | |
| 580 | + } | |
| 581 | + | |
| 582 | + .mxchat-messages { | |
| 583 | + padding: 12px; | |
| 584 | + } | |
| 585 | + | |
| 586 | + .mxchat-pagination { | |
| 587 | + flex-direction: column; | |
| 588 | + align-items: flex-start; | |
| 589 | + } | |
| 590 | + | |
| 591 | + .mxchat-pagination-controls { | |
| 592 | + margin-top: 10px; | |
| 593 | + } | |
| 101 | 594 | } |
| 102 | 595 | |
| 103 | -.mxchat-action-button { | |
| 104 | - background: linear-gradient(135deg, #fa73e6, #7873f5); | |
| 105 | - color: white; | |
| 106 | - border: none; | |
| 107 | - padding: 8px 16px; | |
| 108 | - border-radius: 8px; | |
| 109 | - cursor: pointer; | |
| 110 | - font-weight: 600; | |
| 111 | - display: flex; | |
| 112 | - align-items: center; | |
| 113 | - gap: 8px; | |
| 114 | - transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| 596 | +/* Focus states for accessibility */ | |
| 597 | +.mxchat-checkbox:focus { | |
| 598 | + outline: 2px solid #7873f5; | |
| 599 | + outline-offset: 2px; | |
| 115 | 600 | } |
| 116 | 601 | |
| 117 | -.mxchat-action-button:hover { | |
| 118 | - transform: translateY(-1px); | |
| 119 | - box-shadow: 0 4px 12px rgba(120, 115, 245, 0.2); | |
| 602 | +.mxchat-page a:focus, | |
| 603 | +.mxchat-links a:focus { | |
| 604 | + outline: 2px solid #3b82f6; | |
| 605 | + outline-offset: 1px; | |
| 606 | + border-radius: 2px; | |
| 120 | 607 | } |
| 121 | 608 | |
| 122 | -.mxchat-action-button.loading { | |
| 123 | - opacity: 0.7; | |
| 124 | - cursor: not-allowed; | |
| 609 | +/* Animation for new sessions */ | |
| 610 | +.mxchat-session.animate-in { | |
| 611 | + animation: slideInFromTop 0.3s ease-out; | |
| 125 | 612 | } |
| 126 | 613 | |
| 127 | -.mxchat-action-button .dashicons { | |
| 128 | - font-size: 16px; | |
| 129 | - width: 16px; | |
| 130 | - height: 16px; | |
| 131 | -} | |
| 614 | +@keyframes slideInFromTop { | |
| 615 | + 0% { | |
| 616 | + opacity: 0; | |
| 617 | + transform: translateY(-10px); | |
| 618 | + } | |
| 619 | + 100% { | |
| 620 | + opacity: 1; | |
| 621 | + transform: translateY(0); | |
| 622 | + } | |
| 623 | +} | |