File size: 3,077 Bytes
c33bcd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
CUSTOM_CSS_FOR_INTERFACE = """
#title {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
}
#title h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}
#subtitle {
    margin-top: 10px;
    opacity: 0.95;
    font-size: 1.1em;
}
.input-section {
    background: #f7fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
#calc-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    transition: transform 0.2s ease !important;
}
#calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3) !important;
}
.add-btn {
    background: #48bb78 !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
}
.add-btn:hover {
    background: #38a169 !important;
}
.comparison-box {
    margin-bottom: 8px;
}
"""

SIMILARITY_BARS = """
<style>
    .similarity-container {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    .similarity-item {
        margin-bottom: 24px;
        padding: 16px;
        background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
        border-radius: 12px;
        border-left: 4px solid #667eea;
        transition: transform 0.2s ease;
    }
    .similarity-item:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }
    .sentence-text {
        font-size: 15px;
        color: #2d3748;
        margin-bottom: 12px;
        line-height: 1.6;
        font-weight: 500;
    }
    .bar-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .progress-bar {
        flex: 1;
        height: 28px;
        background: #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        position: relative;
    }
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 14px;
        transition: width 0.6s ease;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 10px;
    }
    .score-badge {
        background: #667eea;
        color: white;
        padding: 6px 16px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 14px;
        min-width: 70px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    .rank-badge {
        display: inline-block;
        background: #f7fafc;
        color: #4a5568;
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        margin-right: 8px;
    }
</style>
<div class="similarity-container">
"""