File size: 2,955 Bytes
1691ca8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
CSS styles for TextLens OCR interface.
"""

def get_custom_css():
    """Return custom CSS for the Gradio interface."""
    return """
    .gradio-container {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        max-width: 1200px;
        margin: 0 auto;
        background-color: #ffffff;
    }
    .header {
        text-align: center;
        margin-bottom: 30px;
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        color: white !important;
    }
    .header h1 {
        color: white !important;
        margin: 10px 0;
    }
    .header p {
        color: white !important;
        margin: 10px 0;
    }
    .status-box {
        background-color: #f8f9fa !important;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        margin: 10px 0;
        color: #212529 !important;
    }
    .status-box p, .status-box div, .status-box * {
        color: #212529 !important;
    }
    .upload-box {
        border: 2px dashed #007bff;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        background-color: #f8f9ff;
        color: #333333 !important;
    }
    .markdown-text {
        color: #212529 !important;
    }
    .markdown-text h1, .markdown-text h2, .markdown-text h3, .markdown-text h4, .markdown-text h5, .markdown-text h6 {
        color: #1a1a1a !important;
    }
    .markdown-text p, .markdown-text li, .markdown-text div {
        color: #333333 !important;
    }
    .markdown-text strong {
        color: #000000 !important;
    }
    .tips-section {
        background-color: #e3f2fd !important;
        border: 1px solid #90caf9;
        border-radius: 8px;
        padding: 15px;
        margin: 10px 0;
        color: #0d47a1 !important;
    }
    .tips-section p, .tips-section ul, .tips-section li {
        color: #0d47a1 !important;
    }
    .tips-section strong {
        color: #01579b !important;
    }
    .instructions-section {
        background-color: #f3e5f5 !important;
        border: 1px solid #ce93d8;
        border-radius: 8px;
        padding: 15px;
        margin: 10px 0;
        color: #4a148c !important;
    }
    .instructions-section p, .instructions-section ul, .instructions-section li {
        color: #4a148c !important;
    }
    .instructions-section strong {
        color: #2e0051 !important;
    }
    .primary-button {
        background-color: #007bff !important;
        color: white !important;
        border: none !important;
    }
    .gradio-container .markdown {
        color: #212529 !important;
    }
    .gradio-container .markdown p {
        color: #333333 !important;
    }
    .gradio-container .markdown h1, 
    .gradio-container .markdown h2, 
    .gradio-container .markdown h3 {
        color: #1a1a1a !important;
    }
    .textbox-container {
        color: #212529 !important;
    }
    """