/* chat_style.css - LISA for Conectiv */
:root {
    --lisa-red: #E62E2D;
    --lisa-gray: #1D1D1F;
    --lisa-light: #F5F5F7;
}

#lisa-chat-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#lisa-chat-trigger {
    width: 75px; height: 75px; background: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    position: relative; transition: 0.3s;
    filter: drop-shadow(0 5px 15px rgba(230, 46, 45, 0.5));
}

#lisa-chat-trigger:hover { transform: scale(1.1) rotate(5deg); }

#lisa-avatar { width: 100%; height: 100%; object-fit: contain; }

#lisa-badge {
    position: absolute; top: 0; right: 0; background: var(--lisa-red);
    color: white; font-size: 12px; font-weight: bold; width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 3px solid white;
}

#lisa-chat-window {
    width: 380px; height: 600px; background: white; border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); position: absolute; bottom: 90px; right: 0;
    display: none; flex-direction: column; overflow: hidden;
    animation: lisaFadeIn 0.3s ease-out;
}

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

#lisa-chat-window.active { display: flex; }

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

#lisa-close-btn { background: none; border: none; color: white; font-size: 30px; cursor: pointer; }

#lisa-chat-messages {
    flex: 1; padding: 20px; overflow-y: auto; background: var(--lisa-light);
    display: flex; flex-direction: column; gap: 15px;
}

.lisa-msg {
    max-width: 85%; padding: 12px 18px; border-radius: 18px; font-size: 14px; line-height: 1.5;
}

.lisa-msg.bot { background: white; color: var(--lisa-gray); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.lisa-msg.user { background: var(--lisa-red); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

#lisa-chat-input-area {
    padding: 15px; background: white; border-top: 1px solid #eee;
    display: flex; gap: 10px; align-items: center;
}

#lisa-user-input {
    flex: 1; border: 1px solid #eee; padding: 12px 15px; border-radius: 20px;
    outline: none; font-size: 14px; background: #fafafa;
}

#lisa-send-btn {
    background: var(--lisa-red); border: none; width: 45px; height: 45px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}

#lisa-send-btn:hover { background: #c22524; }

#lisa-chat-footer {
    padding: 10px; text-align: center; font-size: 10px; color: #aaa; background: white;
}

/* WhatsApp Buttons */
.wa-btn {
    display: flex; align-items: center; gap: 10px; background: #25D366; color: white;
    text-decoration: none; padding: 12px; border-radius: 12px; font-weight: 700;
    margin-top: 10px; transition: 0.3s; justify-content: center;
}
.wa-btn:hover { background: #128C7E; transform: scale(1.02); }

.hidden-view { display: none !important; }

/* Pre-Chat Form Styles */
#lisa-pre-chat {
    flex: 1; padding: 30px; background: white;
    display: flex; flex-direction: column; justify-content: center;
}

.pre-chat-intro { text-align: center; margin-bottom: 25px; }
.pre-chat-intro p { font-size: 15px; color: #555; line-height: 1.4; }

.pre-chat-field { margin-bottom: 20px; }
.pre-chat-field label { display: block; font-size: 13px; font-weight: 700; color: #333; margin-bottom: 8px; }
.pre-chat-field input {
    width: 100%; padding: 12px 15px; border-radius: 12px;
    border: 1px solid #ddd; background: #f9f9f9; outline: none; font-size: 14px;
    transition: 0.3s;
}
.pre-chat-field input:focus { border-color: var(--lisa-red); background: white; box-shadow: 0 0 10px rgba(230, 46, 45, 0.1); }

#pre-chat-submit {
    background: var(--lisa-red); color: white; border: none; padding: 15px;
    border-radius: 12px; font-weight: 800; font-size: 16px; cursor: pointer;
    transition: 0.3s; margin-top: 10px;
}
#pre-chat-submit:hover { background: #c22524; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230, 46, 45, 0.3); }

@media (max-width: 480px) {
    #lisa-chat-window { width: calc(100vw - 40px); height: 80vh; bottom: 85px; }
}
