Spaces:
Runtime error
Runtime error
| body { | |
| font-family: Arial, sans-serif; | |
| background: #f3f6fa; | |
| margin: 0; | |
| height: 100vh; | |
| width: 100vw; | |
| overflow: hidden; | |
| } | |
| @media (min-width: 769px) { | |
| body { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .chatbot-container { | |
| width: 650px; | |
| height: 580px; | |
| border-radius: 12px; | |
| box-shadow: 0 8px 20px rgba(0,0,0,0.15); | |
| } | |
| } | |
| @media (max-width: 700px) { | |
| body { | |
| display: block; | |
| width: 100vw; | |
| height: 100vh; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .chatbot-container { | |
| width: 100vw; | |
| height: 94vh; | |
| border-radius: 0; | |
| box-shadow: none; | |
| display: flex; | |
| flex-direction: column; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| padding-bottom: env(safe-area-inset-bottom); | |
| overflow: hidden; | |
| } | |
| .chat-header h2 { | |
| font-size: 20px; | |
| } | |
| .chat-body { | |
| font-size: 16px; | |
| padding: 12px; | |
| overflow-y: auto; | |
| flex: 1 1 auto; | |
| min-height: 0; | |
| } | |
| #user-input { | |
| font-size: 16px; | |
| padding: 12px; | |
| } | |
| #send-btn { | |
| font-size: 16px; | |
| padding: 12px 16px; | |
| } | |
| .quick-options { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: space-between; | |
| padding: 10px; | |
| background: #f4f4f9; | |
| border-top: 1px solid #ddd; | |
| position: sticky; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| max-height: 45vh; | |
| overflow-y: auto; | |
| flex-shrink: 0; | |
| } | |
| .option-btn { | |
| flex: 1 1 48%; | |
| font-size: 16px; | |
| margin: 6px 1%; | |
| padding: 14px; | |
| white-space: normal; | |
| word-break: break-word; | |
| text-align: center; | |
| box-sizing: border-box; | |
| } | |
| } | |
| @supports (-webkit-touch-callout: none) { | |
| @media (max-width: 700px) { | |
| .chatbot-container { | |
| height: 88svh; | |
| height: 88vh; | |
| } | |
| } | |
| } | |
| .chatbot-container { | |
| background: #fff; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .chat-header { | |
| background: linear-gradient(135deg, #6366f1, #3b82f6); | |
| color: white; | |
| padding: 12px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .chat-header h2 { | |
| margin: 0; | |
| font-size: 16px; | |
| } | |
| .github-btn { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-left: auto; | |
| } | |
| .github-btn img { | |
| width: 26px; | |
| height: 26px; | |
| cursor: pointer; | |
| filter: invert(1); | |
| transition: transform 0.2s ease; | |
| } | |
| .github-btn img:hover { | |
| transform: scale(1.2); | |
| } | |
| .chat-body { | |
| flex: 1 1 auto; | |
| padding: 10px; | |
| overflow-y: auto; | |
| background: #fafafa; | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 0; | |
| } | |
| .bot-msg { | |
| background: #e5edff; | |
| padding: 8px 12px; | |
| border-radius: 10px; | |
| margin: 4px 0; | |
| max-width: 90%; | |
| line-height: 1.4; | |
| display: inline-block; | |
| word-wrap: break-word; | |
| overflow-wrap: anywhere; | |
| } | |
| .user-msg { | |
| background: #d1fae5; | |
| padding: 8px 12px; | |
| border-radius: 10px; | |
| margin: 4px 0; | |
| max-width: 90%; | |
| align-self: flex-start; | |
| text-align: left; | |
| line-height: 1.4; | |
| display: inline-block; | |
| word-wrap: break-word; | |
| overflow-wrap: anywhere; | |
| } | |
| .thinking { | |
| font-style: italic; | |
| color: #666; | |
| background: #f3f4f6; | |
| animation: blink 1.2s infinite; | |
| align-self: flex-start; | |
| text-align: left; | |
| line-height: 1.3; | |
| display: inline-block; | |
| } | |
| @keyframes blink { | |
| 0% { opacity: 0.4; } | |
| 50% { opacity: 1; } | |
| 100% { opacity: 0.4; } | |
| } | |
| .chat-footer { | |
| display: flex; | |
| padding: 10px; | |
| border-top: 1px solid #ddd; | |
| background: #f9f9f9; | |
| } | |
| #user-input { | |
| flex: 1; | |
| padding: 8px; | |
| border: 1px solid #ccc; | |
| border-radius: 8px; | |
| } | |
| #send-btn { | |
| margin-left: 6px; | |
| padding: 8px 12px; | |
| background: #6366f1; | |
| color: white; | |
| border: none; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| } | |
| .quick-options { | |
| display: flex; | |
| flex-wrap: wrap; | |
| padding: 10px; | |
| background: #f4f4f9; | |
| border-top: 1px solid #ddd; | |
| } | |
| .option-btn { | |
| flex: 1 1 100%; | |
| background: #eef2ff; | |
| border: none; | |
| padding: 10px; | |
| margin: 6px 0; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: 0.2s; | |
| text-align: center; | |
| word-wrap: break-word; | |
| white-space: normal; | |
| } | |
| .option-btn:hover { | |
| background: #dbeafe; | |
| } | |