body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
}

/* Set default font for all elements */
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chatbot Icon */
#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7fbff;
    border: 2px solid #0078d4;
    color: #0078d4;
    border-radius: 30px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 1000;
    font-weight: 600;
    width: auto !important; /* ✅ override inline width issue */
}

#chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Chatbot Popup */
#chatbot-popup { 
    position: fixed; 
    bottom: 90px; 
    right: 40px; 
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: #fff; 
    padding: 12px 16px; 
    border-radius: 18px; 
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); 
    display: none; 
    cursor: pointer; 
    z-index: 1000; 
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Chatbot Window */
#chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 90vw;
    max-width: 350px;
    height: 70vh;
    max-height: 90vh;
    background: #fff;
    border: 3px solid #0078d4;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.3s ease, borderGlow 3s ease-in-out infinite;
}

#chatbot-window > div:nth-child(2) {
    flex: 1;
    overflow-y: auto !important; /* Only ONE scroll here */
    overflow-x: hidden;
}


/* Chatbot Header */
#chatbot-header { 
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: #fff; 
    padding: 16px 20px; 
    display: flex; 
    justify-content: space-between; 
    border-top-left-radius: 12px; 
    border-top-right-radius: 12px;
}

#close-button:hover {
    background-color: rgba(255,255,255,0.2);
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: visible !important; /* No scrolling here */
}





/* Message Bubbles */
.message-container { display: flex; flex-direction: column; max-width: 100%; }
.user-message-container { align-items: flex-end; }
.bot-message-container { align-items: flex-start; }

.message { 
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    animation: fadeIn 0.2s ease;
    line-height: 1.5;
}

.user-message { 
    background: #0078d4; 
    color: #fff;
    border-bottom-right-radius: 4px;
}

/*.bot-message { */
/*    background: #fff; */
/*    color: #333;*/
/*    border: 1px solid #e0e0e0;*/
/*    border-bottom-left-radius: 4px;*/
/*}*/

/* Input Area */
#chatbot-input { 
    display: flex; 
    padding: 16px; 
    gap: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

#user-input { 
    flex: 1; 
    padding: 12px 16px; 
    border: 1px solid #ddd;
    border-radius: 24px; 
}

/* BOT MESSAGE CONTAINER - show avatar + message side by side */
.bot-message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* BOT AVATAR - small circle logo */
.bot-avatar {
    width: 32px;               /* size of the logo */
    height: 32px;
    border-radius: 50%;        /* makes it round */
    margin-right: 8px;         /* space between logo and message */
    object-fit: cover;         /* prevents stretching */
    flex-shrink: 0;            /* prevents shrinking on small screens */
}

/* BOT MESSAGE - nice bubble next to logo */
.bot-message {
    background-color: #f1f4f9;
    border-radius: 15px;
    padding: 10px 14px;
    color: #000;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

/* ✅ Remove any unwanted images appearing INSIDE bot message text */
.bot-message img,
.bot-message-container img:not(.bot-avatar) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}



#send-button { 
    width: 46px;
    height: 46px;
    background: #0078d4; 
    color: #fff; 
    cursor: pointer;
}

/* ✅ Default Questions - No scroll */
#default-questions-container {
    overflow: visible !important;
}


@media (max-width: 600px) {

    #chatbot-icon {
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;

        padding: 10px 18px !important;
        border-radius: 30px !important;

        display: flex !important;
        align-items: center !important;
        gap: 8px !important;

        width: auto !important;
        height: auto !important;
        background: #f7fbff !important;
        border: 2px solid #0078d4 !important;
        color: #0078d4 !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15) !important;
    }
    
    #chatbot-icon.chatbot-open {
        display: none !important;
    }


    #chatbot-icon img {
        width: 26px !important;
        height: 26px !important;
    }

    .chatbot-icon-text {
        display: inline-block !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }
}

