Spaces:
Runtime error
Runtime error
| .app-container { | |
| background: linear-gradient(135deg, #e6f3ff 0%, #e8f5e9 100%); | |
| background-size: cover; | |
| background-attachment: fixed; | |
| min-height: 100vh; | |
| padding: 20px; | |
| /* Uncomment below to use a medical-themed background image */ | |
| /* background-image: url('file=gradio_app/static/medical-bg.png'); */ | |
| /* background-blend-mode: overlay; */ | |
| } | |
| /* .intro-container { | |
| max-width: 900px; | |
| padding: 5px; | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: 12px; | |
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); | |
| text-align: center; | |
| animation: fadeIn 0.8s ease-in-out; | |
| margin: 0 auto; | |
| } */ | |
| .intro-container { | |
| width: 90%; /* Scales dynamically with page width */ | |
| /* max-width: 1200px; /* Optional: sets an upper limit to prevent excessive stretching */ */ | |
| padding: 5px; | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: 12px; | |
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); | |
| text-align: center; | |
| animation: fadeIn 0.8s ease-in-out; | |
| margin: 0 auto; | |
| } | |
| h1 { | |
| font-size: 2.2em; | |
| color: #005566; | |
| font-weight: 700; | |
| letter-spacing: 0.5px; | |
| margin-bottom: 15px; | |
| } | |
| h2 { | |
| font-size: 1.2em; | |
| color: #34495e; | |
| font-weight: 300; | |
| margin-bottom: 20px; | |
| } | |
| .intro-icon { | |
| font-size: 1.1em; | |
| margin-right: 5px; | |
| } | |
| .intro-highlight { | |
| font-size: 1.1em; | |
| background-color: rgba(230, 243, 255, 0.9); | |
| padding: 12px; | |
| border-radius: 6px; | |
| margin-bottom: 15px; | |
| border-left: 4px solid #1e90ff; | |
| } | |
| .intro-disclaimer { | |
| font-size: 1em; | |
| background-color: rgba(255, 248, 225, 0.9); | |
| padding: 12px; | |
| border-radius: 6px; | |
| margin-bottom: 15px; | |
| border-left: 4px solid #ffb300; | |
| } | |
| .intro-purpose { | |
| color: #5d6d7e; | |
| } | |
| .intro-alert { | |
| color: #d32f2f; | |
| font-size: 1.2em; | |
| font-weight: 600; | |
| } | |
| @keyframes fadeIn { | |
| 0% { opacity: 0; transform: translateY(-15px); } | |
| 100% { opacity: 1; transform: translateY(0); } | |
| } | |
| /* Start of button css */ | |
| .chat-send-button { | |
| border-radius: 20px; | |
| padding: 8px 16px; | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| } | |
| chat-send-button:hover { | |
| transform: translateY(-2px); | |
| } | |
| .chat-send-button:focus { | |
| outline: 2px solid #4a90e2; | |
| outline-offset: 2px; | |
| } | |
| .chat-send-button::after { | |
| content: '📤'; | |
| font-size: 1.1em; | |
| margin-left: 6px; | |
| } | |
| .clear-button { | |
| border-radius: 25px; | |
| padding: 10px 20px; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background-color: #adb5bd; /* Changed from #6c757d */ | |
| color: white; | |
| font-weight: 500; | |
| transition: background-color 0.3s, transform 0.2s; | |
| } | |
| .clear-button:hover { | |
| background-color: #9aa4ad; /* Changed from #5a6268 */ | |
| transform: translateY(-2px); | |
| } | |
| .clear-button:focus { | |
| outline: 2px solid #c3c8cf; /* Lighter shade to complement #adb5bd */ | |
| outline-offset: 2px; | |
| } | |
| .clear-button::after { | |
| content: '🗑️'; | |
| font-size: 1.1em; | |
| margin-left: 6px; | |
| } | |
| .stop-button { | |
| border-radius: 25px; | |
| padding: 10px 20px; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background-color: #d32f2f; | |
| color: white; | |
| font-weight: 500; | |
| transition: background-color 0.3s, transform 0.2s; | |
| } | |
| .stop-button:hover { | |
| background-color: #b71c1c; | |
| transform: translateY(-2px); | |
| } | |
| .stop-button:focus { | |
| outline: 2px solid #ef5350; | |
| outline-offset: 2px; | |
| } | |
| .stop-button::after { | |
| content: '⏹️'; | |
| font-size: 1.1em; | |
| margin-left: 6px; | |
| } | |
| /* End of button css */ | |
| .enhanced-checkbox { | |
| font-weight: bold; | |
| color: #2c3e50; | |
| } | |
| .spinner { | |
| animation: spin 1s linear infinite; | |
| display: inline-block; | |
| margin-right: 8px; | |
| } | |
| @keyframes spin { | |
| from { transform: rotate(0deg); } | |
| to { transform: rotate(360deg); } | |
| } | |
| .thinking-summary { | |
| cursor: pointer; | |
| padding: 8px; | |
| background: #f5f5f5; | |
| border-radius: 4px; | |
| margin: 4px 0; | |
| } | |
| .thought-content { | |
| padding: 10px; | |
| background: none; | |
| border-radius: 4px; | |
| margin: 5px 0; | |
| } | |
| .thinking-container { | |
| border-left: 3px solid #facc15; | |
| padding-left: 10px; | |
| margin: 8px 0; | |
| background: none; | |
| } | |
| .thinking-container:empty { | |
| background: #e0e0e0; | |
| } | |
| details:not([open]) .thinking-container { | |
| border-left-color: #290c15; | |
| } | |
| details { | |
| border: 1px solid #e0e0e0 ; | |
| border-radius: 8px ; | |
| padding: 12px ; | |
| margin: 8px 0 ; | |
| transition: border-color 0.2s; | |
| } | |
| .think-section { | |
| background-color: #e6f3ff; | |
| border-left: 4px solid #4a90e2; | |
| padding: 15px; | |
| margin: 10px 0; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| } | |
| .final-answer { | |
| background-color: #f0f4f8; | |
| border-left: 4px solid #2ecc71; | |
| padding: 15px; | |
| margin: 10px 0; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| } | |
| #output-container { | |
| position: relative; | |
| } | |
| .copy-button { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| padding: 5px 10px; | |
| background-color: #4a90e2; | |
| color: white; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| .copy-button:hover { | |
| background-color: #357abd; | |
| } | |
| .chatbot .message.assistant { | |
| position: relative; | |
| } | |
| .chatbot .message.assistant::after { | |
| content: 'Copy'; | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| padding: 5px 10px; | |
| background-color: #4a90e2; | |
| color: white; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| .chatbot .message.assistant:hover::after { | |
| background-color: #357abd; | |
| } |