.chatbot-window { position: fixed; bottom: 20px; right: 20px; width: 380px; max-width: calc(100% - 40px); height: 350px; max-height: calc(100% - 40px); background: white; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: flex; flex-direction: column; z-index: 1000; overflow: hidden; transition: all 0.3s ease; } .chatbot-toggle { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #007bff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 1000; transition: all 0.3s ease; } .chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6); } .chatbot-icon { font-size: 28px; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .chatbot-window.active { opacity: 1; visibility: visible; transform: translateY(0); } .chatbot-window.minimized { height: 50px; bottom: 90px; } .chatbot-window.minimized .chatbot-messages, .chatbot-window.minimized .chatbot-input-area { display: none; } .chatbot-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 5px 10px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; } .chatbot-header h3 { margin: 0; font-size: 16px; font-weight: 600; } .chatbot-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; } .chatbot-close:hover { background: rgba(255, 255, 255, 0.2); } .chatbot-minimize { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; margin-right: 5px; } .chatbot-minimize:hover { background: rgba(255, 255, 255, 0.2); } .chatbot-messages { flex: 1; padding: 15px; overflow-y: auto; background: #f5f7fb; } .message { display: flex; margin-bottom: 15px; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .user-message { justify-content: flex-end; } .bot-message { justify-content: flex-start; } .message-content { max-width: 75%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-wrap: break-word; } .user-message .message-content { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-bottom-right-radius: 4px; } .bot-message .message-content { background: #fff; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .message-time { font-size: 11px; color: #999; margin-top: 5px; text-align: right; } .user-message .message-time { text-align: left; } .chatbot-input-area { border-top: 1px solid #e0e0e0; padding: 15px; background: #fff; flex-shrink: 0; } .quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .quick-btn { background: #f0f2f5; border: 1px solid #e0e0e0; color: #667eea; padding: 6px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; transition: all 0.2s; } .quick-btn:hover { background: #667eea; color: #fff; border-color: #667eea; } .quick-btn:disabled { opacity: 0.5; cursor: not-allowed; } .input-group { display: flex; gap: 10px; } .input-group input { flex: 1; padding: 10px 15px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 14px; outline: none; transition: border-color 0.2s; } .input-group input:focus { border-color: #667eea; } .input-group input::placeholder { color: #999; } .input-group button { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; padding: 10px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; transition: transform 0.2s, box-shadow 0.2s; } .input-group button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } .input-group button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .typing-indicator { display: flex; gap: 4px; padding: 12px 16px; } .typing-dot { width: 8px; height: 8px; background: #999; border-radius: 50%; animation: typing 1.4s infinite; } .typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-10px); opacity: 1; } } .chatbot-messages::-webkit-scrollbar { width: 6px; } .chatbot-messages::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; } .chatbot-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; } .chatbot-messages::-webkit-scrollbar-thumb:hover { background: #999; } @media (max-width: 480px) { .chatbot-window { right: 10px; left: 10px; width: auto; bottom: 80px; height: 70vh; } .chatbot-toggle { right: 15px; bottom: 15px; width: 50px; height: 50px; } .chatbot-icon { font-size: 24px; } }