/* =========================
   CHATBOT ICON
========================= */

#chatbot-icon {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--main-purple);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(156, 4, 218, 0.4);
    z-index: 9999;
    transition: 0.3s;
}

#chatbot-icon:hover {
    background: var(--dark-purple-gradient);
    transform: scale(1.05);
}

/* =========================
   CHAT WINDOW
========================= */

#chatbot {
    position: fixed;
    right: 25px;
    bottom: 100px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 9999;
}

/* =========================
   HEADER
========================= */

.chat-header {
    background: var(--main-purple);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header button {
    border: none;
    background: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

/* =========================
   BODY
========================= */

#chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--light-purple-bg);
}

/* BOT MESSAGE */
.bot-message {
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    width: 80%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* USER MESSAGE */
.user-message {
    background: var(--main-purple);
    color: var(--white);
    padding: 10px;
    border-radius: 12px;
    margin-left: auto;
    margin-bottom: 10px;
    width: 80%;
}

/* =========================
   FOOTER INPUT
========================= */

.chat-footer {
    display: flex;
    border-top: 1px solid var(--gray-border);
    background: var(--white);
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
}

.chat-footer button {
    background: var(--main-purple);
    color: var(--white);
    border: none;
    width: 90px;
    cursor: pointer;
    transition: 0.3s;
}

.chat-footer button:hover {
    background: var(--dark-purple-gradient);
}

#chatbot {
    animation: pop 0.2s ease-in-out;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}