| :root { |
| --bg-color: #0f172a; |
| --chat-bg: #1e293b; |
| --text-color: #f8fafc; |
| --accent: #3b82f6; |
| --accent-hover: #2563eb; |
| --msg-user: #3b82f6; |
| --msg-ai: #334155; |
| } |
|
|
| * { |
| box-sizing: border-box; |
| margin: 0; |
| padding: 0; |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; |
| } |
|
|
| body { |
| background-color: var(--bg-color); |
| color: var(--text-color); |
| display: flex; |
| justify-content: center; |
| height: 100vh; |
| } |
|
|
| .app-container { |
| width: 100%; |
| max-width: 800px; |
| display: flex; |
| flex-direction: column; |
| height: 100%; |
| background-color: var(--chat-bg); |
| box-shadow: 0 0 20px rgba(0,0,0,0.5); |
| } |
|
|
| .header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| padding: 20px; |
| border-bottom: 1px solid #334155; |
| } |
|
|
| .logo { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| } |
|
|
| .logo-circle { |
| width: 20px; |
| height: 20px; |
| background-color: var(--accent); |
| border-radius: 50%; |
| box-shadow: 0 0 10px var(--accent); |
| } |
|
|
| .status { |
| display: flex; |
| align-items: center; |
| font-size: 0.9em; |
| color: #94a3b8; |
| } |
|
|
| .status-dot { |
| width: 8px; |
| height: 8px; |
| background-color: #10b981; |
| border-radius: 50%; |
| margin-right: 8px; |
| } |
|
|
| .chat-container { |
| flex-grow: 1; |
| overflow-y: auto; |
| padding: 20px; |
| display: flex; |
| flex-direction: column; |
| gap: 15px; |
| } |
|
|
| .message { |
| max-width: 80%; |
| padding: 12px 16px; |
| border-radius: 12px; |
| line-height: 1.5; |
| } |
|
|
| .system-message { |
| align-self: center; |
| background-color: transparent; |
| color: #94a3b8; |
| font-size: 0.9em; |
| text-align: center; |
| border: 1px solid #334155; |
| } |
|
|
| .user-message { |
| align-self: flex-end; |
| background-color: var(--msg-user); |
| border-bottom-right-radius: 4px; |
| } |
|
|
| .ai-message { |
| align-self: flex-start; |
| background-color: var(--msg-ai); |
| border-bottom-left-radius: 4px; |
| } |
|
|
| .input-area { |
| padding: 20px; |
| display: flex; |
| gap: 10px; |
| border-top: 1px solid #334155; |
| } |
|
|
| input[type="text"] { |
| flex-grow: 1; |
| background-color: #0f172a; |
| border: 1px solid #334155; |
| border-radius: 24px; |
| padding: 12px 20px; |
| color: var(--text-color); |
| font-size: 1em; |
| outline: none; |
| transition: border-color 0.3s; |
| } |
|
|
| input[type="text"]:focus { |
| border-color: var(--accent); |
| } |
|
|
| button { |
| background-color: var(--accent); |
| border: none; |
| border-radius: 50%; |
| width: 48px; |
| height: 48px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| color: white; |
| cursor: pointer; |
| transition: background-color 0.3s; |
| } |
|
|
| button:hover { |
| background-color: var(--accent-hover); |
| } |
|
|