/* Chat Widget Styles */
:root {
    --chat-primary: #83C423;
    --chat-bg: #ffffff;
    --chat-text: #333333;
    --chat-bot-bubble: #f1f1f1;
    --chat-user-bubble: #83C423;
    --chat-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#lx-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', 'Roboto', sans-serif;
}

#lx-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--chat-primary);
    box-shadow: var(--chat-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

#lx-chat-prompt {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    color: var(--chat-text);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: var(--chat-shadow);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

#lx-chat-prompt::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 2px rgba(0,0,0,0.03);
}

#lx-chat-prompt.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#lx-chat-toggle:hover {
    transform: scale(1.1);
}

#lx-chat-toggle i {
    color: white;
    font-size: 24px;
}

#lx-chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--chat-bg);
    border-radius: 20px;
    box-shadow: var(--chat-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#lx-chat-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.lx-chat-header {
    padding: 20px;
    background: var(--chat-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lx-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lx-chat-close {
    cursor: pointer;
    opacity: 0.8;
}

.lx-chat-close:hover {
    opacity: 1;
}

#lx-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fcfcfc;
}

.lx-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lx-message.bot {
    align-self: flex-start;
    background: var(--chat-bot-bubble);
    color: var(--chat-text);
    border-bottom-left-radius: 2px;
}

.lx-message.user {
    align-self: flex-end;
    background: var(--chat-user-bubble);
    color: white;
    border-bottom-right-radius: 2px;
}

.lx-chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#lx-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

#lx-chat-input:focus {
    border-color: var(--chat-primary);
}

#lx-chat-send {
    background: var(--chat-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

#lx-chat-send:hover {
    background: #6ea31d;
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 4px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing span:nth-child(1) { animation-delay: -0.32s; }
.typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
