Spaces:
Sleeping
Sleeping
| /* ====================== | |
| GLOBAL | |
| ====================== */ | |
| body, .gradio-container { | |
| font-family: "Inter","Segoe UI",Roboto,Arial,sans-serif; | |
| font-size: 16px; | |
| background: #f8fafc; | |
| color: #0f172a; | |
| } | |
| .gradio-container { | |
| max-width: 1250px; | |
| margin: auto; | |
| } | |
| /* ====================== | |
| STICKY HEADER FIX | |
| ====================== */ | |
| #header-bar { | |
| position: sticky; | |
| top: 0; | |
| z-index: 1000; | |
| background: white; | |
| padding: 12px; | |
| border-bottom: 1px solid #e2e8f0; | |
| } | |
| /* ====================== | |
| CHAT CONTAINER | |
| ====================== */ | |
| #chatbot { | |
| border: 2px solid #4f46e5; | |
| border-radius: 12px; | |
| padding-top: 10px; | |
| padding: 15px; | |
| background: #f8fafc; | |
| scroll-behavior: smooth; | |
| overflow-y: auto ; | |
| height: 480px; | |
| } | |
| /* ====================== | |
| MESSAGE STRUCTURE FIX | |
| ====================== */ | |
| /* make message row full width */ | |
| #chatbot .message-row { | |
| width: 100% ; | |
| } | |
| /* message container */ | |
| #chatbot .wrap { | |
| width: 100% ; | |
| max-width: 100% ; | |
| display: flex; | |
| } | |
| /* assistant alignment */ | |
| #chatbot .message.assistant { | |
| background: lightblue; /* #f1f5f9;*/ | |
| border: 2px solid #4f46e5; | |
| color: #1e293b; | |
| max-width: 90% ; | |
| width: 100% ; | |
| } | |
| /* user alignment */ | |
| #chatbot .message.user { | |
| background: #4f46e5; | |
| margin-left: auto; | |
| max-width: 90% ; | |
| width: 100% ; | |
| } | |
| /* actual bubble */ | |
| #chatbot .message { | |
| width: 100% ; | |
| max-width: 100% ; | |
| padding: 12px 16px; | |
| border-radius: 14px; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| word-break: break-word; | |
| } | |
| /* ====================== | |
| ASSISTANT | |
| ====================== */ | |
| /* | |
| #chatbot .message.assistant { | |
| background: lightblue; | |
| border: 2px solid #4f46e5; | |
| color: #1e293b; | |
| max-width: 90% !important; | |
| width: 100% !important; | |
| } | |
| */ | |
| #chatbot .message.assistant { | |
| background: lightblue; /* #f1f5f9;*/ | |
| border: 2px solid #4f46e5; | |
| max-width: 95% ; | |
| width: fit-content; | |
| margin-right: auto; | |
| color: #1e293b; | |
| } | |
| /* ensure text visible */ | |
| #chatbot .message.user, | |
| #chatbot .message.user * { | |
| color: white ; | |
| } | |
| /* ====================== | |
| REMOVE EXTRA TEXT WRAP | |
| ====================== */ | |
| #chatbot p { | |
| margin: 0; | |
| white-space: normal; | |
| } | |
| /* ====================== | |
| INPUT | |
| ====================== */ | |
| /* ====================== | |
| QUESTION INPUT CONTAINER | |
| ====================== */ | |
| #question-box { | |
| border: 1px solid #4f46e5 ; | |
| border-radius: 12px; | |
| padding: 10px 14px; | |
| background: white; | |
| } | |
| #question-box textarea { | |
| border: 1px solid gray ; | |
| outline: none ; | |
| box-shadow: none ; | |
| resize: none; | |
| overflow-y: auto ; | |
| min-height: 28px; | |
| line-height: 1.5; | |
| font-size: 14px; | |
| width: 100%; | |
| } | |
| #question-box [data-testid="block-info"] { | |
| font-weight: 700; | |
| color: #1e293b; | |
| margin-bottom: 6px; | |
| } | |
| #question-box:focus-within { | |
| border-color: #4338ca ; | |
| box-shadow: 0 0 0 2px rgba(79,70,229,0.15); | |
| } | |
| /* ====================== | |
| FOLLOWUP BUTTONS | |
| ====================== */ | |
| #followups { | |
| margin-top: 10px; | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| } | |
| #followups button { | |
| border-radius: 18px ; | |
| border: 1px solid #4f46e5 ; | |
| background: white ; | |
| color: #4f46e5 ; | |
| padding: 6px 12px; | |
| font-size: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| #followups button:hover { | |
| background: #4f46e5 ; | |
| color: white ; | |
| transform: translateY(-2px); | |
| } |