Spaces:
Sleeping
Sleeping
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Roboto', sans-serif; | |
| background-color: #f8f9fa; | |
| color: #202124; | |
| line-height: 1.6; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 20px; | |
| } | |
| /* Header */ | |
| .header { | |
| text-align: center; | |
| margin-bottom: 40px; | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| } | |
| .logo .material-icons { | |
| font-size: 32px; | |
| color: #4285f4; | |
| } | |
| .logo h1 { | |
| color: #202124; | |
| font-weight: 400; | |
| font-size: 28px; | |
| } | |
| /* Search Section */ | |
| .search-section { | |
| background: white; | |
| border-radius: 8px; | |
| padding: 40px; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| margin-bottom: 30px; | |
| } | |
| .search-container h2 { | |
| text-align: center; | |
| margin-bottom: 30px; | |
| color: #202124; | |
| font-weight: 400; | |
| } | |
| .search-form { | |
| max-width: 600px; | |
| margin: 0 auto; | |
| } | |
| .input-group { | |
| position: relative; | |
| margin-bottom: 20px; | |
| } | |
| .input-group input { | |
| width: 100%; | |
| padding: 16px 50px 16px 16px; | |
| border: 2px solid #dadce0; | |
| border-radius: 24px; | |
| font-size: 16px; | |
| outline: none; | |
| transition: border-color 0.3s; | |
| } | |
| .input-group input:focus { | |
| border-color: #4285f4; | |
| } | |
| .input-group .material-icons { | |
| position: absolute; | |
| right: 16px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| color: #5f6368; | |
| } | |
| .threshold-group { | |
| display: flex; | |
| align-items: center; | |
| gap: 15px; | |
| margin-bottom: 30px; | |
| justify-content: center; | |
| } | |
| .threshold-group label { | |
| font-weight: 500; | |
| color: #5f6368; | |
| } | |
| .threshold-group input[type="range"] { | |
| width: 200px; | |
| accent-color: #4285f4; | |
| } | |
| #threshold-value { | |
| font-weight: 500; | |
| color: #4285f4; | |
| min-width: 30px; | |
| } | |
| .search-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background: #4285f4; | |
| color: white; | |
| border: none; | |
| padding: 12px 24px; | |
| border-radius: 24px; | |
| font-size: 16px; | |
| cursor: pointer; | |
| margin: 0 auto; | |
| transition: background-color 0.3s; | |
| } | |
| .search-btn:hover { | |
| background: #3367d6; | |
| } | |
| /* Results Section */ | |
| .results-section { | |
| background: white; | |
| border-radius: 8px; | |
| padding: 30px; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| margin-bottom: 30px; | |
| } | |
| .results-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| flex-wrap: wrap; | |
| gap: 15px; | |
| } | |
| .results-header h3 { | |
| color: #202124; | |
| font-weight: 500; | |
| } | |
| .selection-controls { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .control-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| background: #f8f9fa; | |
| border: 1px solid #dadce0; | |
| padding: 8px 16px; | |
| border-radius: 20px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| transition: background-color 0.3s; | |
| } | |
| .control-btn:hover { | |
| background: #e8f0fe; | |
| } | |
| .results-container { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); | |
| gap: 20px; | |
| margin-bottom: 30px; | |
| } | |
| .result-card { | |
| border: 1px solid #dadce0; | |
| border-radius: 8px; | |
| padding: 20px; | |
| background: white; | |
| transition: all 0.3s; | |
| cursor: pointer; | |
| } | |
| .result-card:hover { | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.15); | |
| transform: translateY(-2px); | |
| } | |
| .result-card.selected { | |
| border-color: #4285f4; | |
| background: #e8f0fe; | |
| } | |
| .card-header { | |
| display: flex; | |
| justify-content: between; | |
| align-items: flex-start; | |
| margin-bottom: 15px; | |
| } | |
| .card-info { | |
| flex: 1; | |
| } | |
| .card-id { | |
| font-size: 12px; | |
| color: #5f6368; | |
| font-weight: 500; | |
| } | |
| .card-title { | |
| font-size: 16px; | |
| font-weight: 500; | |
| color: #202124; | |
| margin: 5px 0; | |
| } | |
| .card-section { | |
| font-size: 14px; | |
| color: #5f6368; | |
| margin-bottom: 10px; | |
| } | |
| .similarity-score { | |
| background: #e8f0fe; | |
| color: #4285f4; | |
| padding: 4px 8px; | |
| border-radius: 12px; | |
| font-size: 12px; | |
| font-weight: 500; | |
| margin-left: 10px; | |
| } | |
| .card-actions { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-top: 15px; | |
| } | |
| .view-btn { | |
| background: #4285f4; | |
| color: white; | |
| border: none; | |
| padding: 8px 16px; | |
| border-radius: 16px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| } | |
| .view-btn:hover { | |
| background: #3367d6; | |
| } | |
| .select-checkbox { | |
| width: 20px; | |
| height: 20px; | |
| accent-color: #4285f4; | |
| } | |
| .chat-launch { | |
| text-align: center; | |
| } | |
| .chat-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| background: #34a853; | |
| color: white; | |
| border: none; | |
| padding: 16px 32px; | |
| border-radius: 24px; | |
| font-size: 16px; | |
| cursor: pointer; | |
| margin: 0 auto; | |
| transition: background-color 0.3s; | |
| } | |
| .chat-btn:hover:not(:disabled) { | |
| background: #2d8f47; | |
| } | |
| .chat-btn:disabled { | |
| background: #dadce0; | |
| cursor: not-allowed; | |
| } | |
| /* Chat Section */ | |
| .chat-section { | |
| background: white; | |
| border-radius: 8px; | |
| padding: 30px; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| height: 75vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .chat-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| padding-bottom: 15px; | |
| border-bottom: 1px solid #dadce0; | |
| } | |
| .back-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| background: #f8f9fa; | |
| border: 1px solid #dadce0; | |
| padding: 8px 16px; | |
| border-radius: 20px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| } | |
| .chat-container { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 20px 0; | |
| border-bottom: 1px solid #dadce0; | |
| margin-bottom: 20px; | |
| } | |
| .message { | |
| margin-bottom: 15px; | |
| padding: 12px 16px; | |
| border-radius: 18px; | |
| max-width: 80%; | |
| } | |
| .message.user { | |
| background: #4285f4; | |
| color: white; | |
| margin-left: auto; | |
| } | |
| .message.bot { | |
| background: #f1f3f4; | |
| color: #202124; | |
| } | |
| .chat-input-group { | |
| display: flex; | |
| gap: 10px; | |
| align-items: center; | |
| } | |
| .chat-input-group input { | |
| flex: 1; | |
| padding: 12px 16px; | |
| border: 1px solid #dadce0; | |
| border-radius: 24px; | |
| outline: none; | |
| } | |
| .chat-input-group select { | |
| padding: 12px; | |
| border: 1px solid #dadce0; | |
| border-radius: 20px; | |
| outline: none; | |
| } | |
| .chat-input-group button { | |
| background: #4285f4; | |
| color: white; | |
| border: none; | |
| padding: 12px; | |
| border-radius: 50%; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| /* Modal */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0,0,0,0.5); | |
| z-index: 1000; | |
| } | |
| .modal-content { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| background: white; | |
| border-radius: 8px; | |
| max-width: 800px; | |
| max-height: 80vh; | |
| width: 90%; | |
| overflow: hidden; | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px; | |
| border-bottom: 1px solid #dadce0; | |
| } | |
| .modal-close { | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| padding: 5px; | |
| border-radius: 50%; | |
| } | |
| .modal-body { | |
| padding: 20px; | |
| max-height: 60vh; | |
| overflow-y: auto; | |
| line-height: 1.6; | |
| } | |
| /* Loading */ | |
| .loading { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(255,255,255,0.9); | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 999; | |
| } | |
| .spinner { | |
| width: 40px; | |
| height: 40px; | |
| border: 4px solid #f3f3f3; | |
| border-top: 4px solid #4285f4; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| margin-bottom: 20px; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| /* Utility classes */ | |
| .hidden { | |
| display: none ; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 10px; | |
| } | |
| .search-section { | |
| padding: 20px; | |
| } | |
| .results-container { | |
| grid-template-columns: 1fr; | |
| } | |
| .results-header { | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .selection-controls { | |
| justify-content: center; | |
| } | |
| .threshold-group { | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| } |