| 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"> | |
| """ |