:root { --primary-bg: #111827; --secondary-bg: #1f2937; --accent-color: #4f46e5; --text-color: #f3f4f6; --bot-color: #10b981; } body { background-color: var(--primary-bg); color: var(--text-color); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.6; margin: 0; padding: 0; height: 100vh; display: flex; flex-direction: column; } .chat-container { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; display: flex; flex-direction: column; gap: 12px; padding: 16px; padding-top: 72px; padding-bottom: 84px; } .message-container { display: flex; flex-direction: column; width: 100%; } .bot-bubble, .user-bubble { border-radius: 1.25rem; padding: 12px 16px; max-width: 85%; line-height: 1.5; font-size: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); word-break: break-word; position: relative; animation: fadeIn 0.3s ease-out; } .bot-bubble { background-color: var(--secondary-bg); align-self: flex-start; border-bottom-left-radius: 0.25rem; } .user-bubble { background-color: var(--accent-color); align-self: flex-end; border-bottom-right-radius: 0.25rem; } .input-container { position: relative; flex-grow: 1; } .clear-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9CA3AF; cursor: pointer; display: none; } .input-form { background-color: rgba(31, 41, 55, 0.95); position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; border-top: 1px solid #374151; z-index: 10; } .link-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .link-btn { background-color: #4f46e5; color: white; padding: 8px 12px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; text-decoration: none; transition: background-color 0.2s; } .link-btn:hover { background-color: #4338ca; } .timestamp { font-size: 12px; color: #9CA3AF; margin-top: 4px; margin-left: 8px; align-self: flex-start; } .user-timestamp { align-self: flex-end; margin-right: 8px; } .loading-dots { display: inline-flex; align-items: center; gap: 4px; } .loading-dots span { width: 6px; height: 6px; border-radius: 50%; background-color: #4f46e5; display: inline-block; animation: bounce 1.4s infinite ease-in-out both; } .loading-dots span:nth-child(1) { animation-delay: -0.32s; } .loading-dots span:nth-child(2) { animation-delay: -0.16s; } @keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 640px) { .chat-container { padding-left: 12px; padding-right: 12px; } .bot-bubble, .user-bubble { max-width: 90%; font-size: 15px; padding: 10px 14px; } } @media (orientation: landscape) and (max-height: 500px) { .chat-container { padding-top: 64px; padding-bottom: 64px; } }