* { box-sizing: border-box; } body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 20px; display: flex; justify-content: center; min-height: 100vh; align-items: center; } .container { background: white; width: 500px; max-width: 95vw; padding: 25px; border-radius: 25px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); display: flex; flex-direction: column; height: 700px; position: relative; backdrop-filter: blur(10px); } .version-badge { position: absolute; top: 15px; right: 15px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); z-index: 10; } h1 { text-align: center; margin-bottom: 20px; color: #333; font-size: 1.8rem; font-weight: 600; margin-top: 10px; } .header-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .reset-btn { padding: 8px 15px !important; font-size: 0.9rem !important; min-width: auto !important; background: linear-gradient(135deg, #64748b, #475569) !important; } .reset-btn:hover { background: linear-gradient(135deg, #475569, #334155) !important; } .chatbox { flex-grow: 1; border: 2px solid #e0e6ed; padding: 20px; overflow-y: auto; border-radius: 15px; background: #f8fafc; margin-bottom: 20px; font-size: 1rem; } .message { margin-bottom: 15px; padding: 12px 16px; border-radius: 18px; max-width: 85%; word-wrap: break-word; line-height: 1.5; font-size: 1rem; animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message strong { display: block; margin-bottom: 5px; font-size: 0.9rem; opacity: 0.7; } .message.user { background: #667eea; color: white; margin-left: auto; border-bottom-right-radius: 5px; } .message.bot { background: #e2e8f0; color: #334155; margin-right: auto; border-bottom-left-radius: 5px; border-left: 4px solid #667eea; } form { display: flex; gap: 12px; align-items: center; } input[type="text"] { flex-grow: 1; padding: 15px 20px; font-size: 1rem; border-radius: 25px; border: 2px solid #e2e8f0; outline: none; transition: border-color 0.2s ease; background: #f8fafc; } input[type="text"]:focus { border-color: #667eea; background: white; } input[type="text"]::placeholder { color: #94a3b8; } button { padding: 15px 25px; background: linear-gradient(135deg, #667eea, #764ba2); border: none; border-radius: 25px; color: white; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 1rem; min-width: 80px; } button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } button:active { transform: translateY(0); } footer { margin-top: 15px; text-align: center; font-size: 0.9rem; color: #64748b; font-weight: 500; } .chatbox::-webkit-scrollbar { width: 6px; } .chatbox::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; } .chatbox::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; } .chatbox::-webkit-scrollbar-thumb:hover { background: #94a3b8; } @media (max-width: 600px) { .container { width: 100%; height: 80vh; padding: 20px; margin: 0; border-radius: 0; } .version-badge { top: 10px; right: 10px; font-size: 0.75rem; padding: 3px 10px; } h1 { font-size: 1.5rem; } .message { font-size: 0.95rem; max-width: 90%; } }