  /* 🔥 CHAT BUTTON */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chat-header{padding:10px 20px;background-color: var(--primary);color: #fff}

#chatbot-toggle:hover {
    transform: scale(1.1);
}


/* 🔥 CHAT BOX */
#chatbot-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
     height: 400px;   /* 🔥 fixed height */
    max-height: 60vh; /* mobile safety */
    background: #fff;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    overflow: hidden;

    /* 🔥 animation */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

#chatbot-box.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}


/* 🔥 HEADER */
#chatbot-box .header {
    background: var(--primary);
    color: #fff;
    padding: 12px;
    font-weight: bold;
    text-align: center;
}


/* 🔥 MESSAGES AREA */
#chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f5f5;
}


/* 🔥 MESSAGE BASE */
#chat-messages div {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 10px; /* 🔥 GAP BETWEEN MESSAGES */
    line-height: 1.4;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}


/* 🔥 USER MESSAGE */
.user {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
    text-align: right;
}


/* 🔥 BOT MESSAGE */
.bot {
    background: #fff;
    color: #333;
    margin-right: auto;
}


/* 🔥 INPUT AREA */
#chat-input-box {
    /*display: flex;*/
    border-top: 1px solid #ddd;
}

#chat-input {
    /*flex: 1;*/
    padding: 15px 10px;
    border: none;
    outline: none;
    float: left;
    width: 75%;
    font-size: 15px;

}

.chat-button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 16px;
    cursor: pointer;
        float: right;
    margin-top: 10px;
    margin-right: 20px;
    width: 15%;
}


/* 🔥 LINKS */
#chat-messages a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}

#chat-messages a:hover {
    text-decoration: underline;
}


/* 🔥 ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chatbot-toggle {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}