Spaces:
Running
Running
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 20px; | |
| } | |
| .app-container { | |
| width: 100%; | |
| max-width: 900px; | |
| height: 90vh; | |
| max-height: 800px; | |
| background: rgba(255, 255, 255, 0.95); | |
| backdrop-filter: blur(20px); | |
| border-radius: 24px; | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .header { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| padding: 20px 24px; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .header-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .app-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .app-icon { | |
| width: 48px; | |
| height: 48px; | |
| background: rgba(255, 255, 255, 0.2); | |
| border-radius: 12px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .app-icon svg { | |
| filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); | |
| } | |
| .app-info h1 { | |
| color: white; | |
| font-size: 24px; | |
| font-weight: 600; | |
| margin-bottom: 2px; | |
| } | |
| .subtitle { | |
| color: rgba(255, 255, 255, 0.8); | |
| font-size: 14px; | |
| font-weight: 400; | |
| } | |
| .built-with { | |
| color: rgba(255, 255, 255, 0.9); | |
| text-decoration: none; | |
| font-size: 12px; | |
| padding: 8px 16px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 20px; | |
| transition: all 0.3s ease; | |
| } | |
| .built-with:hover { | |
| background: rgba(255, 255, 255, 0.2); | |
| transform: translateY(-1px); | |
| } | |
| .chat-container { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 24px; | |
| background: #f8f9fa; | |
| } | |
| .messages-container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .message { | |
| display: flex; | |
| gap: 12px; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| .message-avatar { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background: #e9ecef; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 18px; | |
| flex-shrink: 0; | |
| } | |
| .message-bubble { | |
| flex: 1; | |
| max-width: 70%; | |
| padding: 12px 16px; | |
| border-radius: 18px; | |
| position: relative; | |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); | |
| } | |
| .message-bubble.user { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| align-self: flex-end; | |
| margin-left: auto; | |
| } | |
| .message-bubble.assistant { | |
| background: white; | |
| color: #333; | |
| } | |
| .message-bubble.system { | |
| background: #fff3cd; | |
| color: #856404; | |
| border: 1px solid #ffeaa7; | |
| } | |
| .message-content { | |
| font-size: 15px; | |
| line-height: 1.5; | |
| word-wrap: break-word; | |
| } | |
| .message-time { | |
| font-size: 11px; | |
| opacity: 0.7; | |
| margin-top: 4px; | |
| } | |
| .typing-indicator { | |
| animation: fadeIn 0.3s ease; | |
| } | |
| .typing-dots { | |
| display: flex; | |
| gap: 4px; | |
| padding: 8px 0; | |
| } | |
| .typing-dots span { | |
| width: 8px; | |
| height: 8px; | |
| background: #667eea; | |
| border-radius: 50%; | |
| animation: typing 1.4s infinite; | |
| } | |
| .typing-dots span:nth-child(2) { | |
| animation-delay: 0.2s; | |
| } | |
| .typing-dots span:nth-child(3) { | |
| animation-delay: 0.4s; | |
| } | |
| .input-container { | |
| background: white; | |
| border-top: 1px solid #e9ecef; | |
| padding: 20px 24px; | |
| } | |
| .input-wrapper { | |
| position: relative; | |
| } | |
| .input-group { | |
| display: flex; | |
| gap: 12px; | |
| align-items: flex-end; | |
| } | |
| .message-input { | |
| flex: 1; | |
| border: 2px solid #e9ecef; | |
| border-radius: 20px; | |
| padding: 12px 20px; | |
| font-size: 15px; | |
| font-family: inherit; | |
| resize: none; | |
| outline: none; | |
| transition: all 0.3s ease; | |
| min-height: 44px; | |
| max-height: 120px; | |
| overflow-y: auto; | |
| } | |
| .message-input:focus { | |
| border-color: #667eea; | |
| box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); | |
| } | |
| .message-input:disabled { | |
| background: #f8f9fa; | |
| cursor: not-allowed; | |
| } | |
| .send-button { | |
| width: 44px; | |
| height: 44px; | |
| border-radius: 50%; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| border: none; | |
| color: white; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); | |
| } | |
| .send-button:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); | |
| } | |
| .send-button:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .status-bar { | |
| margin-top: 12px; | |
| } | |
| .status-text { | |
| font-size: 12px; | |
| color: #6c757d; | |
| margin-bottom: 6px; | |
| } | |
| .progress-bar { | |
| height: 3px; | |
| background: #e9ecef; | |
| border-radius: 10px; | |
| overflow: hidden; | |
| display: none; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); | |
| border-radius: 10px; | |
| transition: width 0.3s ease; | |
| width: 0%; | |
| } | |
| .error-message { | |
| animation: shake 0.5s ease; | |
| } | |
| .welcome-message { | |
| text-align: center; | |
| padding: 20px; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes typing { | |
| 0%, 60%, 100% { | |
| transform: translateY(0); | |
| } | |
| 30% { | |
| transform: translateY(-10px); | |
| } | |
| } | |
| @keyframes shake { | |
| 0%, 100% { transform: translateX(0); } | |
| 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } | |
| 20%, 40%, 60%, 80% { transform: translateX(5px); } | |
| } | |
| @media (max-width: 640px) { | |
| .app-container { | |
| height: 100vh; | |
| max-height: 100vh; | |
| border-radius: 0; | |
| } | |
| .message-bubble { | |
| max-width: 85%; | |
| } | |
| .header { | |
| padding: 16px; | |
| } | |
| .app-info h1 { | |
| font-size: 20px; | |
| } | |
| .built-with { | |
| display: none; | |
| } | |
| } |