﻿
#chatBotIcon {
    position: fixed;
    bottom: 55px;
    right: 65px;
    font-size: 40px;
    cursor: pointer;
    z-index: 100000 !important;
    transition: transform 0.2s;
    border: 8px solid #006045; /* Border added */
    border-radius: 100%; /* Make it circular */
    padding: 19px; /* Space around icon */
}

    #chatBotIcon:hover {
        transform: scale(1.1);
        border: 8px solid #ffc107;
    }

#chatContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 331px;
    border-radius: 20px 20px 5px 5px;
    border: 1px solid #006045;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 99999 !important;
}

.main_heading {
    display: flex;
    align-items: center;
    background: #006045;
    color: white;
    padding: 8px;
}

.close_button {
    margin-left: auto; /* Push only Close button to the right */
    color: white;
    margin-right: 10px;
}

    .close_button:hover {
        color: #ffc107;
    }

.heading-text {
    margin-left: 8px;
    text-align: left;
    line-height: 15px;
}

    .heading-text div:last-child {
        font-size: 12px;
        color: #d4d4d4;
    }

.logo-container img {
    width: 40px;
    height: 40px;
    border-radius: 20%;
    margin-right: 8px;
}

.chat-content {
    max-height: 700px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
}

.question-item {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #006045;
    margin-bottom: 2px;
}

    .question-item:hover {
        background: #006045;
        color: white;
    }

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-msg {
    background: #ffc107;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    align-self: flex-end;
    max-width: 80%;
    word-wrap: break-word;
    color: #0b4e3d;
}

.bot-msg {
    background: #006045;
    padding: 8px 10px;
    border-radius: 15px 15px 15px 0;
    align-self: flex-start;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 10px;
    color: white;
    font-weight: lighter;
}

#actionBtnContainer {
    display: flex;
    justify-content: center; /* center horizontally */
    gap: 10px; /* space between buttons */
    margin-top: 10px;
}

.back-btn {
    background: #ffc107;
    color: #0b4e3d;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

    .back-btn:hover {
        background: #006045;
        color: white;
    }

.reset-btn {
    background: red;
    color: #0b4e3d;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.reser-btn:hover {
    color: white;
}

.bot-msg.welcome {
    background: #006045;
    padding: 10px 5px;
    border-radius: 10px; /* rectangular with slightly rounded corners */
    color: white;
    font-size: 13px;
    text-align: center; /* center text */
    align-self: center; /* center align in chat */
    max-width: 100%;
    width: 90%; /* rectangular wider message */
    margin-bottom: 10px;
}

.lang-btn {
    background: #ffc107;
    border: none;
    padding: 6px 14px;
    margin: 4px;
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    color: #0b4e3d;
}

    .lang-btn:hover {
        color: white;
    }

.send-btn {
    background: #ffc107;
    border: none;
    padding: 6px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    color: #0b4e3d;
}

    .send-btn:hover {
        background: #006045;
        color: #fff;
    }





.chat-header {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    color: #006045;
    padding: 12px;
    text-align: center;
    font-weight: 100;
    z-index: 10;
    font-size: smaller;
}

.chat-messages {
    padding: 10px;
    max-height: 350px;
    overflow-y: auto;
    text-align: right;
}

.user-msg.left {
    background: #f7e5ad;
    color: #000;
    padding: 8px 12px;
    border-radius: 15px;
    margin: 6px 0;
    
    align-self: flex-end;
}

.bot-msg.right {
    background: #0b5e4a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 15px;
    margin: 6px 0;
    
    margin-left: auto;
}

.chat-search {
    position: sticky;
    bottom: 0;
    padding: 8px;
    display: flex;
    gap: 6px;
}

#searchInput {
    color: black;
    background-color: none;
}
