| :root { |
| --brand-blue: #17428f; |
| --brand-orange: #f39719; |
| --text-dark: #111827; |
| --text-gray: #4B5563; |
| color-scheme: only light; |
| } |
|
|
| |
| body, .gradio-container { |
| |
| background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-orange) 100%); |
| min-height: 100vh; |
| color: var(--text-dark); |
| } |
|
|
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| |
| #topbar { background: transparent !important; } |
|
|
| |
| #header h1, #header h2, #header h3, #header h4, #header h5, #header h6, |
| #header p { |
| color: #ffffff; |
| text-align: center; |
| } |
|
|
| #header2 h1, #header2 h2, #header2 h3, #header2 h4, #header2 h5, #header2 h6, |
| #header2 p { |
| color: #ffffff; |
| text-align: center; |
| } |
|
|
| |
| #chatbot { |
| height: 100%; |
| border-radius: 14px; |
| border: 2px solid var(--brand-blue); |
| background-color: #ffffff; |
| padding: 8px; |
| overflow-y: auto; |
|
|
| |
| --icon-light: #9CA3AF; |
| --icon-hover: #6B7280; |
| } |
|
|
| |
| |
| |
|
|
| |
| |
| #chatbot .message { |
| color: var(--text-gray); |
| } |
|
|
| |
| #chatbot .message.user { |
| background: #fff4e1; |
| border-radius: 10px; |
| padding: 6px 12px; |
| text-align: right; |
| } |
| #chatbot .message.bot { |
| background: #f0f0f0; |
| border-radius: 10px; |
| padding: 6px 12px; |
| text-align: left; |
| } |
|
|
| |
| #chatbot hr { |
| margin: 6px 0; |
| border: none; |
| border-top: 1px solid #d1d5db; |
| } |
|
|
| |
| #chatbot [data-testid*="message"] { |
| border-radius: 10px; |
| padding: 6px 12px; |
| } |
| #chatbot [data-testid="user-message"] { |
| background: #fff4e1; |
| text-align: right; |
| } |
| #chatbot [data-testid="assistant-message"] { |
| background: #f0f0f0; |
| text-align: left; |
| } |
|
|
| |
| |
| |
|
|
| |
| |
| #chatbot pre, |
| #chatbot pre code, |
| #chatbot code[class*="language-"], |
| #chatbot pre[class*="language-"], |
| #chatbot code.hljs { |
| background: #f8fafc; |
| border-radius: 8px; |
| padding: 10px 12px; |
| display: block; |
| overflow-x: auto; |
| |
| } |
|
|
| |
| #chatbot :not(pre) > code { |
| background: #f1f5f9; |
| padding: 0.15rem 0.35rem; |
| border-radius: 6px; |
| |
| } |
|
|
| |
| |
| |
| input[type="text"], textarea, .gr-text-input input, .gr-textbox textarea { |
| border-radius: 10px; |
| padding: 10px; |
| font-size: 16px; |
| border: 2px solid var(--brand-orange); |
| } |
| input:focus, textarea:focus, .gr-text-input input:focus, .gr-textbox textarea:focus { |
| border-color: var(--brand-blue); |
| outline: none; |
| box-shadow: 0 0 6px rgba(23, 66, 143, 0.5); |
| } |
|
|
| |
| |
| |
| .gr-button, button { |
| border-radius: 10px; |
| font-weight: 600; |
| background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange)); |
| color: white; |
| border: none; |
| } |
| .gr-button:hover, button:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 4px 8px rgba(0,0,0,0.2); |
| } |
|
|
| |
| |
| |
|
|
| |
| #chatbot button svg, |
| #chatbot [role="button"] svg, |
| #chatbot .icon svg, |
| #chatbot [class*="icon"] svg, |
| #chatbot [data-testid*="icon"] svg, |
| #chatbot [data-testid*="message"] .tools svg, |
| #chatbot .message-tools svg { |
| color: var(--icon-light) !important; |
| fill: var(--icon-light) !important; |
| stroke: var(--icon-light) !important; |
| opacity: 0.95; |
| } |
|
|
| |
| #chatbot :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient) { |
| background: transparent !important; |
| background-image: none !important; |
| border: none !important; |
| box-shadow: none !important; |
| padding: 6px !important; |
| border-radius: 8px !important; |
| color: var(--icon-light) !important; |
| } |
|
|
| |
| #chatbot :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient):hover { |
| background-color: rgba(0,0,0,0.05) !important; |
| } |
| #chatbot :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient):focus-visible { |
| outline: none !important; |
| box-shadow: 0 0 0 2px rgba(23, 66, 143, 0.35) !important; |
| background-color: rgba(0,0,0,0.06) !important; |
| } |
| #chatbot :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient):active { |
| background-color: rgba(0,0,0,0.08) !important; |
| } |
|
|
| |
| #chatbot .danger svg { |
| color: var(--icon-light) !important; |
| fill: var(--icon-light) !important; |
| stroke: var(--icon-light) !important; |
| } |
| #chatbot .danger:hover svg { |
| color: #ef4444 !important; |
| fill: #ef4444 !important; |
| stroke: #ef4444 !important; |
| } |
|
|
| |
| |
| |
| #topbar { background: transparent !important; } |
| #topbar { --icon-light: #9CA3AF; --icon-hover: #6B7280; } |
|
|
| #topbar .gr-button.keep-gradient, |
| #topbar .gr-button:not(:has(svg)) { |
| background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange)) !important; |
| color: #fff !important; |
| } |
|
|
| |
| #topbar :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient) { |
| background: transparent !important; |
| border: none !important; |
| box-shadow: none !important; |
| padding: 6px !important; |
| border-radius: 8px !important; |
| color: var(--icon-light) !important; |
| } |
|
|
| |
| #topbar :is(button,[role="button"]):has(> svg) > svg { |
| color: var(--icon-light) !important; |
| fill: var(--icon-light) !important; |
| stroke: var(--icon-light) !important; |
| opacity: 0.95; |
| } |
|
|
| |
| #topbar :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient):hover { |
| background-color: rgba(0,0,0,0.05) !important; |
| } |
| #topbar :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient):focus-visible { |
| outline: none !important; |
| box-shadow: 0 0 0 2px rgba(23, 66, 143, 0.35) !important; |
| background-color: rgba(0,0,0,0.06) !important; |
| } |
| #topbar :is(button,[role="button"]):is([aria-label],[title], :has(> svg)):not(.keep-gradient):active { |
| background-color: rgba(0,0,0,0.08) !important; |
| } |
|
|
|
|
|
|
|
|
|
|
| |
| #message-box { |
| width: 100%; |
| border-radius: 9999px; |
| border: 2px solid var(--brand-orange); |
| font-size: 16px; |
| outline: none; |
| position: relative; |
| } |
|
|
| #message-box:focus { |
| border-color: var(--brand-blue); |
| box-shadow: 0 0 6px rgba(23, 66, 143, 0.3); |
| } |
|
|
| |
| #send-button { |
| position: absolute; |
| |
| right: 34px; |
| top: 48px; |
|
|
| transform: translateY(-16%); |
| width: 36px; |
| height: 36px; |
| min-width: 0 !important; |
| padding: 0 !important; |
| border-radius: 50%; |
| background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange)); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| border: none; |
| color: white; |
| font-size: 18px; |
| cursor: pointer; |
| z-index: 2; |
| } |
|
|
| #send-button:hover { |
| transform: translateY(-16%) scale(1.05); |
| box-shadow: 0 4px 12px rgba(0,0,0,0.2); |
| } |
|
|
| #send-button:active { |
| transform: translateY(-16%) scale(0.95); |
| } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| #file-upload .upload-box, |
| #file-upload .file-wrap, |
| #file-upload .wrap { |
| min-height: 80px; |
| padding: 8px 12px; |
| color: #666 !important; |
| background: transparent !important; |
| border: none !important; |
| } |
|
|
| |
| #file-upload .upload-box div, |
| #file-upload .upload-box span { |
| background: transparent !important; |
| } |
|
|
| |
| #file-upload .upload-box, |
| #file-upload .file-wrap, |
| #file-upload .wrap { |
| color: #666 !important; |
| fill: #666 !important; |
| stroke: #666 !important; |
| } |
|
|
| |
| #file-upload button, |
| #file-upload [role="button"] { |
| background: transparent !important; |
| border: none !important; |
| box-shadow: none !important; |
| border-radius: 0 !important; |
| padding: 4px !important; |
| color: #666 !important; |
| } |
|
|
| |
| #file-upload button svg, |
| #file-upload [role="button"] svg { |
| color: #666 !important; |
| fill: #666 !important; |
| stroke: #666 !important; |
| background: none !important; |
| } |
|
|
| |
| #file-upload button:hover svg, |
| #file-upload [role="button"]:hover svg { |
| color: #2a5db0 !important; |
| fill: #2a5db0 !important; |
| stroke: #2a5db0 !important; |
| } |
|
|
|
|
|
|
|
|
| |
| #topbar .gr-button, |
| #topbar [role="button"], |
| #header-container .gr-button, |
| #header-container [role="button"] { |
| display: none !important; |
| } |
|
|
|
|
|
|
| #upload-note, #upload-note * { |
| color: #ffffff !important; |
| } |
|
|
|
|
|
|
|
|
| .gradio-container [id="left-column"] { |
| min-width: 40px !important; |
| max-width: 320px !important; |
| width: 180px !important; |
| flex: 0 0 220px !important; |
| padding-right: 12px !important; |
| } |
|
|
| .gradio-container [id="right-column"] { |
| flex: 1 1 0 !important; |
| width: auto !important; |
| min-width: 0 !important; |
| padding-left: 0 !important; |
| } |
|
|
|
|
|
|
|
|
|
|
| |
| #branding { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| justify-content: center; |
| } |
|
|
| |
| #brand-text { |
| font-size: 1.6rem; |
| font-weight: 700; |
| color: white; |
| line-height: 1; |
| } |
|
|
| |
| #company-logo { |
| width: 40px; |
| height: auto; |
| display: block; |
| object-fit: contain; |
| } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| html, body, .gradio-container { |
| height: 100dvh; |
| min-height: 100dvh; |
| } |
|
|
| |
| .gradio-container .gr-row, |
| .gradio-container .gr-row > .gr-column, |
| .gradio-container > .gr-row, |
| .gradio-container .gr-column, |
| #right-column, |
| #chat-area { |
| min-height: 0 !important; |
| } |
|
|
| |
| #chatbot { |
| box-sizing: border-box; |
| flex: 1 1 auto; |
| min-height: 0 !important; |
| height: auto !important; |
| max-height: calc(100dvh - var(--topbar-offset, 0px) - 120px) !important; |
| overflow-y: auto !important; |
| } |
|
|
| |
| |
| #chatbot .wrap, |
| #chatbot .message-wrap, |
| #chatbot [data-testid="chatbot"] { |
| max-height: 100%; |
| overflow-y: auto; |
| min-height: 0; |
| } |
|
|
| |
| |
| #input-row { |
| flex: 0 0 auto; |
| } |
|
|
| |
| #chat-area > *:not(#chatbot) { |
| flex: 0 0 auto; |
| } |