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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 590 |
/* Hide scrollbar but keep functionality */
|
| 591 |
.chat-messages::-webkit-scrollbar {
|
| 592 |
width: 0.25rem;
|
|
|
|
| 587 |
}
|
| 588 |
}
|
| 589 |
|
| 590 |
+
/* OCR Modal Styles */
|
| 591 |
+
.modal {
|
| 592 |
+
position: fixed;
|
| 593 |
+
z-index: 1000;
|
| 594 |
+
left: 0;
|
| 595 |
+
top: 0;
|
| 596 |
+
width: 100%;
|
| 597 |
+
height: 100%;
|
| 598 |
+
background-color: rgba(0, 0, 0, 0.8);
|
| 599 |
+
backdrop-filter: blur(5px);
|
| 600 |
+
}
|
| 601 |
+
|
| 602 |
+
.modal-content {
|
| 603 |
+
background-color: var(--bg-secondary);
|
| 604 |
+
margin: 5% auto;
|
| 605 |
+
padding: 0;
|
| 606 |
+
border-radius: 12px;
|
| 607 |
+
width: 90%;
|
| 608 |
+
max-width: 800px;
|
| 609 |
+
max-height: 80vh;
|
| 610 |
+
overflow: hidden;
|
| 611 |
+
box-shadow: var(--shadow);
|
| 612 |
+
border: 1px solid var(--border-color);
|
| 613 |
+
}
|
| 614 |
+
|
| 615 |
+
.modal-header {
|
| 616 |
+
display: flex;
|
| 617 |
+
justify-content: space-between;
|
| 618 |
+
align-items: center;
|
| 619 |
+
padding: 20px;
|
| 620 |
+
border-bottom: 1px solid var(--border-color);
|
| 621 |
+
background: var(--gradient-primary);
|
| 622 |
+
}
|
| 623 |
+
|
| 624 |
+
.modal-header h3 {
|
| 625 |
+
color: var(--text-primary);
|
| 626 |
+
font-size: 18px;
|
| 627 |
+
font-weight: 600;
|
| 628 |
+
}
|
| 629 |
+
|
| 630 |
+
.close {
|
| 631 |
+
color: var(--text-primary);
|
| 632 |
+
font-size: 28px;
|
| 633 |
+
font-weight: bold;
|
| 634 |
+
cursor: pointer;
|
| 635 |
+
transition: opacity 0.3s ease;
|
| 636 |
+
}
|
| 637 |
+
|
| 638 |
+
.close:hover {
|
| 639 |
+
opacity: 0.7;
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
+
.modal-body {
|
| 643 |
+
padding: 20px;
|
| 644 |
+
max-height: 60vh;
|
| 645 |
+
overflow-y: auto;
|
| 646 |
+
}
|
| 647 |
+
|
| 648 |
+
.ocr-preview {
|
| 649 |
+
margin-bottom: 20px;
|
| 650 |
+
text-align: center;
|
| 651 |
+
border: 2px dashed var(--border-color);
|
| 652 |
+
border-radius: 8px;
|
| 653 |
+
padding: 20px;
|
| 654 |
+
background-color: var(--bg-tertiary);
|
| 655 |
+
}
|
| 656 |
+
|
| 657 |
+
.ocr-preview img {
|
| 658 |
+
border-radius: 8px;
|
| 659 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
| 660 |
+
}
|
| 661 |
+
|
| 662 |
+
.ocr-results {
|
| 663 |
+
margin-bottom: 20px;
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
.ocr-success {
|
| 667 |
+
background-color: rgba(34, 197, 94, 0.1);
|
| 668 |
+
border: 1px solid rgba(34, 197, 94, 0.3);
|
| 669 |
+
border-radius: 8px;
|
| 670 |
+
padding: 15px;
|
| 671 |
+
}
|
| 672 |
+
|
| 673 |
+
.ocr-success h4 {
|
| 674 |
+
color: #22c55e;
|
| 675 |
+
margin-bottom: 10px;
|
| 676 |
+
font-size: 14px;
|
| 677 |
+
font-weight: 600;
|
| 678 |
+
}
|
| 679 |
+
|
| 680 |
+
.extracted-text {
|
| 681 |
+
background-color: var(--bg-tertiary);
|
| 682 |
+
border-radius: 6px;
|
| 683 |
+
padding: 12px;
|
| 684 |
+
font-family: 'Courier New', monospace;
|
| 685 |
+
font-size: 13px;
|
| 686 |
+
line-height: 1.5;
|
| 687 |
+
white-space: pre-wrap;
|
| 688 |
+
word-wrap: break-word;
|
| 689 |
+
border: 1px solid var(--border-color);
|
| 690 |
+
color: var(--text-secondary);
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
.ocr-error {
|
| 694 |
+
background-color: rgba(239, 68, 68, 0.1);
|
| 695 |
+
border: 1px solid rgba(239, 68, 68, 0.3);
|
| 696 |
+
border-radius: 8px;
|
| 697 |
+
padding: 15px;
|
| 698 |
+
}
|
| 699 |
+
|
| 700 |
+
.ocr-error h4 {
|
| 701 |
+
color: #ef4444;
|
| 702 |
+
margin-bottom: 10px;
|
| 703 |
+
font-size: 14px;
|
| 704 |
+
font-weight: 600;
|
| 705 |
+
}
|
| 706 |
+
|
| 707 |
+
.ocr-error p {
|
| 708 |
+
color: var(--text-secondary);
|
| 709 |
+
font-size: 13px;
|
| 710 |
+
}
|
| 711 |
+
|
| 712 |
+
.loading {
|
| 713 |
+
text-align: center;
|
| 714 |
+
color: var(--text-muted);
|
| 715 |
+
font-style: italic;
|
| 716 |
+
padding: 20px;
|
| 717 |
+
}
|
| 718 |
+
|
| 719 |
+
.ocr-actions {
|
| 720 |
+
display: flex;
|
| 721 |
+
gap: 10px;
|
| 722 |
+
justify-content: center;
|
| 723 |
+
flex-wrap: wrap;
|
| 724 |
+
}
|
| 725 |
+
|
| 726 |
+
.btn {
|
| 727 |
+
padding: 10px 20px;
|
| 728 |
+
border: none;
|
| 729 |
+
border-radius: 6px;
|
| 730 |
+
font-size: 14px;
|
| 731 |
+
font-weight: 500;
|
| 732 |
+
cursor: pointer;
|
| 733 |
+
transition: all 0.3s ease;
|
| 734 |
+
text-decoration: none;
|
| 735 |
+
display: inline-block;
|
| 736 |
+
}
|
| 737 |
+
|
| 738 |
+
.btn-primary {
|
| 739 |
+
background: var(--gradient-primary);
|
| 740 |
+
color: white;
|
| 741 |
+
}
|
| 742 |
+
|
| 743 |
+
.btn-primary:hover {
|
| 744 |
+
transform: translateY(-2px);
|
| 745 |
+
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
.btn-secondary {
|
| 749 |
+
background: var(--gradient-secondary);
|
| 750 |
+
color: white;
|
| 751 |
+
}
|
| 752 |
+
|
| 753 |
+
.btn-secondary:hover {
|
| 754 |
+
transform: translateY(-2px);
|
| 755 |
+
box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
|
| 756 |
+
}
|
| 757 |
+
|
| 758 |
+
.btn-danger {
|
| 759 |
+
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
| 760 |
+
color: white;
|
| 761 |
+
}
|
| 762 |
+
|
| 763 |
+
.btn-danger:hover {
|
| 764 |
+
transform: translateY(-2px);
|
| 765 |
+
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
|
| 766 |
+
}
|
| 767 |
+
|
| 768 |
+
/* Responsive Design for Modal */
|
| 769 |
+
@media (max-width: 768px) {
|
| 770 |
+
.modal-content {
|
| 771 |
+
width: 95%;
|
| 772 |
+
margin: 10% auto;
|
| 773 |
+
}
|
| 774 |
+
|
| 775 |
+
.modal-body {
|
| 776 |
+
padding: 15px;
|
| 777 |
+
}
|
| 778 |
+
|
| 779 |
+
.ocr-actions {
|
| 780 |
+
flex-direction: column;
|
| 781 |
+
}
|
| 782 |
+
|
| 783 |
+
.btn {
|
| 784 |
+
width: 100%;
|
| 785 |
+
}
|
| 786 |
+
}
|
| 787 |
+
|
| 788 |
/* Hide scrollbar but keep functionality */
|
| 789 |
.chat-messages::-webkit-scrollbar {
|
| 790 |
width: 0.25rem;
|