:root { --chatbot-purple: #A020F0; --chatbot-black: #000000; --chatbot-white: #F7F5F2; --chatbot-grey: #DFDFDE; } /* Floating Chat Button */ .leo-chat-button { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--chatbot-purple); color: var(--chatbot-white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(160, 32, 240, 0.4); z-index: 1000; transition: transform 0.3s, box-shadow 0.3s; } .leo-chat-button:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(160, 32, 240, 0.5); } .leo-chat-button:active { transform: scale(0.95); } .leo-chat-button.leo-chat-button-hidden { display: none; } /* Chat Button Tooltip */ .leo-chat-tooltip { position: fixed; bottom: 90px; right: 20px; padding: 10px 14px; background: var(--chatbot-purple); color: var(--chatbot-white); border-radius: 12px; box-shadow: 0 8px 22px rgba(160, 32, 240, 0.35); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(10px); pointer-events: none; z-index: 1000; white-space: nowrap; } .leo-chat-tooltip.leo-chat-tooltip-show { animation: leo-tooltipPop 4.5s ease forwards; } @keyframes leo-tooltipPop { 0% { opacity: 0; transform: translateY(10px); } 18% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } } /* Chat Container */ .leo-chat-container { position: fixed; bottom: 20px; right: 20px; width: 380px; max-width: calc(100vw - 40px); height: 600px; max-height: calc(100vh - 40px); background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; overflow: hidden; z-index: 1001; transform: translateY(100px) scale(0.8); opacity: 0; pointer-events: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; border: 1px solid rgba(160, 32, 240, 0.3); } .leo-chat-container.leo-chat-container-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; } .leo-chat-header { background: rgba(160, 32, 240, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px; color: var(--chatbot-white); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); display: flex; justify-content: space-between; align-items: center; position: relative; } .leo-chat-header-content { display: flex; align-items: center; gap: 15px; flex: 1; } .leo-chat-close-button { background: rgba(255, 255, 255, 0.2); border: none; width: 32px; height: 32px; border-radius: 50%; color: var(--chatbot-white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; flex-shrink: 0; } .leo-chat-close-button:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); } .leo-chat-close-button:active { transform: rotate(90deg) scale(0.9); } .leo-chat-header-avatar { width: 50px; height: 50px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.3); object-fit: cover; } .leo-chat-header-info h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; } .leo-chat-status { font-size: 13px; opacity: 0.9; display: flex; align-items: center; gap: 6px; } .leo-chat-status::before { content: ''; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; display: inline-block; } .leo-chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: transparent; display: flex; flex-direction: column; gap: 12px; } .leo-chat-messages::-webkit-scrollbar { width: 6px; } .leo-chat-messages::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); } .leo-chat-messages::-webkit-scrollbar-thumb { background: var(--chatbot-purple); border-radius: 3px; } .leo-chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(160, 32, 240, 0.8); } .leo-chat-message { display: flex; align-items: flex-end; gap: 8px; animation: leo-fadeIn 0.3s ease-in; max-width: 80%; } @keyframes leo-fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .leo-chat-message.leo-chat-message-user { align-self: flex-end; flex-direction: row-reverse; } .leo-chat-message.leo-chat-message-bot { align-self: flex-start; } .leo-chat-message-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(160, 32, 240, 0.3); } .leo-chat-message.leo-chat-message-user .leo-chat-message-avatar { display: none; } .leo-chat-message-bubble { padding: 12px 16px; border-radius: 18px; word-wrap: break-word; line-height: 1.4; font-size: 15px; position: relative; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .leo-chat-message.leo-chat-message-user .leo-chat-message-bubble { background: var(--chatbot-purple); color: var(--chatbot-white); border-bottom-right-radius: 4px; } .leo-chat-message.leo-chat-message-bot .leo-chat-message-bubble { background: rgba(160, 32, 240, 0.25); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); color: var(--chatbot-white); border-bottom-left-radius: 4px; border: 1px solid rgba(160, 32, 240, 0.4); } .leo-chat-message-time { font-size: 11px; opacity: 0.6; margin-top: 4px; padding: 0 4px; } .leo-chat-typing-indicator { padding: 0 20px 10px 20px; display: none; } .leo-chat-typing-indicator.leo-chat-typing-indicator-active { display: block; } .leo-chat-typing-dots { display: flex; gap: 4px; padding: 12px 16px; background: rgba(160, 32, 240, 0.25); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border-radius: 18px; border-bottom-left-radius: 4px; width: fit-content; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); border: 1px solid rgba(160, 32, 240, 0.4); } .leo-chat-typing-dots span { width: 8px; height: 8px; background: var(--chatbot-purple); border-radius: 50%; animation: leo-typing 1.4s infinite; } .leo-chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; } .leo-chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; } @keyframes leo-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.7; } 30% { transform: translateY(-10px); opacity: 1; } } .leo-chat-input-container { padding: 15px 20px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(160, 32, 240, 0.2); display: flex; gap: 10px; align-items: center; } .leo-chat-user-input { flex: 1; padding: 12px 16px; border: 2px solid rgba(160, 32, 240, 0.3); border-radius: 24px; font-size: 16px; outline: none; transition: border-color 0.2s; background: rgba(160, 32, 240, 0.15); color: var(--chatbot-white); -webkit-text-size-adjust: 100%; } .leo-chat-user-input:focus { border-color: var(--chatbot-purple); background: rgba(160, 32, 240, 0.2); } .leo-chat-user-input::placeholder { color: var(--chatbot-grey); } .leo-chat-send-button { width: 44px; height: 44px; border: none; background: var(--chatbot-purple); color: var(--chatbot-white); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(160, 32, 240, 0.3); } .leo-chat-send-button:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(160, 32, 240, 0.4); } .leo-chat-send-button:active { transform: scale(0.95); } .leo-chat-send-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .leo-chat-message-bubble strong { font-weight: 600; } .leo-chat-message.leo-chat-message-user .leo-chat-message-bubble strong { color: var(--chatbot-white); } .leo-chat-message.leo-chat-message-bot .leo-chat-message-bubble strong { color: var(--chatbot-purple); } .leo-chat-message-bubble ul { margin: 8px 0; padding-left: 20px; list-style: none; } .leo-chat-message-bubble ul li { margin: 4px 0; padding-left: 8px; position: relative; } .leo-chat-message-bubble ul li::before { content: '•'; position: absolute; left: -12px; color: inherit; font-weight: bold; } .leo-chat-message.leo-chat-message-user .leo-chat-message-bubble ul li::before { color: var(--chatbot-white); } .leo-chat-message.leo-chat-message-bot .leo-chat-message-bubble ul li::before { color: var(--chatbot-purple); } @media (max-width: 600px) { .leo-chat-container { width: 100vw; height: 100vh; max-height: 100vh; max-width: 100vw; bottom: 0; right: 0; border-radius: 0; } .leo-chat-button { bottom: 15px; right: 15px; width: 56px; height: 56px; } .leo-chat-message { max-width: 85%; } }