@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Poppins:wght@200;300&display=swap");

.chat-container {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}

.chatbot-toggler {
    z-index: 999;
    position: fixed;
    right: 85px;
    /* change */
    bottom: 25px;
    /* change */
    height: 50px;
    width: 50px;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    background: #0c1c7b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;

}

.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler span {
    position: absolute;
}

.show-chatbot .chatbot-toggler span:first-child,
.chatbot-toggler span:last-child {
    opacity: 0;
}

.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot-head {
    font-size: 1rem;
    color: white;
    padding-top: 0.5rem;
}

.chatbot {
    z-index: 9999;
    /* change / add */
    position: fixed;
    right: 2rem;
    bottom: 5rem;
    width: 18rem;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    background: white;
    border-radius: 15px;
    transform-origin: bottom right;
    border-radius: 10%;
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
        0 32px 64px -48px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;

}

.show-chatbot .chatbot {

    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot header {
    background: #0c1c7b;
    padding: 0.5rem 0;
    text-align: center;
    position: relative;
}

.chatbot header h2 {
    color: white;
    font-size: 1.4rem;
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}

.chat-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    color: white;
    transform: translateY(-50%);


}

.hide-btn {
    position: absolute;
    right: 60px;
    top: 40%;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}

.chatbot .chatbox {
    height: 60vh;
    /* change */
    overflow-y: auto;
    padding: 15px 20px 100px;
}

.chatbox .chat {
    display: flex;
}

.chatbox .incoming span {
    height: 2rem;
    width: 2rem;
    color: white;
    align-self: flex-end;
    background-color: #0c1c7b;
    text-align: center;
    line-height: 2rem;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox .outgoing {
    margin: 20px 0;
    align-items: flex-end;
    display: flex;
    flex-direction: column;

}

.chatbox .outgoing p {
    margin-bottom: 0px;

}

.chatbox .chat p {
    color: white;
    font-size: 0.95rem;
    padding: 12px 16px;
    max-width: 75%;
    white-space: pre-wrap;
    border-radius: 10px 10px 0 10px;
    background-color: #0c1c7b;
    word-wrap: break-word;
}

.chatbox .incoming p {
    color: black;
    background: whitesmoke;
    border-radius: 10px 10px 10px 0;
    font-size: 0.7rem;
}

.chat-history .chat {
    display: flex;
}

.chat-history .chatbox {

    overflow-y: auto;
    padding: 30px 20px 100px;
}

.chat-history .chat {
    display: flex;
}

.chatbox .outgoing p {
    font-size: 0.7rem;
}

.chat-history .incoming span {
    height: 32px;
    width: 32px;
    color: white;
    align-self: flex-end;
    background-color: #0c1c7b;
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chat-history .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chat-history .chat p {
    color: white;
    font-size: 0.95rem;
    padding: 12px 16px;
    max-width: 75%;
    white-space: pre-wrap;
    border-radius: 10px 10px 0 10px;
    background-color: #0c1c7b;
}

.chat-history .incoming p {
    color: black;
    background: whitesmoke;
    border-radius: 10px 10px 10px 0;
}

.chatbot .chat-input {
    position: absolute;
    bottom: 0;
    border-top: 1px solid #ccc;
    width: 100%;
    background: white;
    padding-left: 2%;
    gap: 5px;
    display: flex;
    border-top: 1px solid rgb(203, 200, 200);

}

.chat-input span {
    color: #0c1c7b;
    line-height: 3rem;
    align-self: flex-end;
    font-size: 1.35rem;
    cursor: pointer;
    visibility: hidden;
}

.chat-input textarea:valid~span {
    visibility: visible;
}

@media(max-width:490px) {
    .chatbot {
        right: 0.1rem;
        bottom: 0.1rem;
        width: 98%;
        height: 99%;
        border-radius: 0;
    }

    .chatbot .chatbox {
        height: 90%;
    }

    .chatbot header span {
        display: block;
    }

    .chatbox .incoming p {

        font-size: 0.7rem;
    }

    .chat-history .chat p {
        font-size: 0.7rem;
    }

    .chatbox .outgoing p {
        font-size: 0.7rem;
    }
}


.chatBtn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: #0c1c7b;
    background-image: linear-gradient(147deg, #0c1c7b, #5963ba, #0c1c7b);
    cursor: pointer;
    padding-top: 3px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.164);
    position: relative;
    background-size: 300%;
    background-position: left;
    transition-duration: 1s;
}

.tooltip {
    position: absolute;
    top: -40px;
    opacity: 0;
    background-color: #0c1c7b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: .5s;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.chatBtn:hover .tooltip {
    opacity: 1;
    transition-duration: .5s;
}

.chatBtn:hover {
    background-position: right;
    transition-duration: 1s;
}

.headsection {
    display: flex;
    justify-content: flex-start;
}


.hide {
    visibility: hidden;
    display: none;
}



.chatInput {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.7rem;
    resize: none;
    padding: 16px 15px 16px 0;
    background-color: white;
    max-height: 180px;
}

.chatsend-btn {
    background: transparent;
    border: none;
    color: #5963ba;
    padding-right: 5%;
    cursor: pointer;
}

/* Add this to your Chatbot.scss file */

@keyframes blinkCursor {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.typing-text {
    color: black;
    font-style: italic;
    animation: blinkCursor 0.8s steps(5, start) infinite;
}

.offline-message {
    margin-top: 20%;
}

.disconnectIcons {
    width: 7rem;

}

.internetSpan {
    padding-left: 30%;

}


.blur-background {
    filter: blur(5px);
}

/* modal */


.chatbot-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed position */
    top: 50%;
    /* Center the modal vertically */
    left: 50%;
    /* Center the modal horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for exact centering */
    background-color: white;
    /* Background color */
    padding: 20px;
    /* Padding */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Box shadow for 3D effect */
    z-index: 1000;
    /* Ensure it's above other items */
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.chatbot-modal-message {
    color: grey;
}

.chatbot-modal-btns {
    display: flex;
}

.chatbot-modal-btns button {
    padding: 10px 20px;
    /* Padding */
    margin: 10px;
    /* Margin around buttons */
    border: none;
    /* No border */
    border-radius: 5px;
    /* Rounded corners */
    cursor: pointer;
    /* Cursor pointer */
    font-weight: bold;
    /* Bold font */
    transition: background-color 0.3s;
    /* Transition for hover effect */
}

.chatbot-modal-btns button:hover {
    background-color: #ddd;
    /* Color change on hover */
}


/* Styling for the prompts container */
#chat-prompts-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;

    margin: 10px 0;
    /* Spacing around the box */
}

/* Styling for individual prompt buttons */
.chat-prompts {
    padding: 5px 10px;
    margin: 4px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 0.6rem;
}

.chat-prompts:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

.chat-prompts:focus {
    outline: none;
    /* Remove outline to maintain style on focus */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
    /* Focus ring around the button */
}

.chatbot-logo {
    width: 2.5rem;
}

.chatbot-footer {
    text-align: center;
    padding: 2px;
    font-size: 0.6rem;
    color: #0c1c7b;
    /* Adjust the color to match your design */
    /* Ensures it sticks to the bottom if using flexbox */
}

.powered {
    color: #071253;
    text-decoration: underline;
}

.chat-time {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}