:root{
    --primary-light-color: #eefffe;
    --primary-color: #0cdcd1;
    --primary-dark-color: #0ecec4;
}
/* Entire scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

/* Track (the background of the scrollbar) */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the track */
}

/* Handle (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
    background-color: #a5a5a5; /* Color of the thumb */
    border-radius: 0px; /* Rounded corners */
    border: 3px solid #f1f1f1; /* Adds padding around the thumb */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Color when hovered */
}


body{
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
}
.website{
    width: 100%;
    height: 100vh;
}
/* Base styles for the chatbot container */
.chatbot-parent-div {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 320px;
    max-width: 100%;
    z-index: 1000;
}

.chatbot-container {
    position: relative;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(100%); /* Hidden initially by placing it off-screen */
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
    z-index: 10000;
}

/* Header styling */
.chatbot-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    color: #fff;
}

.chatbot-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    background-color: var(--primary-color);
    margin-right: 10px;
}
.chatbot-logo img{
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.chatbot-title{
    color: black;
}
.chatbot-title h3 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.chatbot-title p {
    margin: 0;
    font-size: 0.6rem;
    opacity: 0.8;
    color: #0cdc21;
}

#chatbot-popup-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #242424;
    font-size: 20px;
    cursor: pointer;
}

/* Chat area styling */
.chatbot-chat {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    background-color: #ececec;
    border-top: 1px solid #eee;
}

/* Input area styling */
.chatbot-inputs {
    display: flex;
    border-top: 1px solid #eee;
}

.chatbot-inputs textarea {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    resize: none;
    font-size: 0.8rem;
    border-radius: 0;
    box-shadow: none;
    font-family: "Poppins", sans-serif;
}

.chatbot-inputs button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0;
}
.chatbot-inputs button:hover{
    background-color: var(--primary-dark-color);
}

/* Popup button styling */
.chatbot-btns {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#chatbot-popup-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

#chatbot-popup-btn i {
    margin-top: 6px;
    display: inline-block;
}

/* Show the chatbot container when the button is clicked */
.chatbot-container.active {
    transform: translateY(0); /* Bring into view */
    opacity: 1;
    pointer-events: auto; /* Allow interaction */
}

/* Styles for the AI message box container */
.ai-box,
.user-box,
.loader-box {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin-bottom: 1rem;
}
.user-box{
    align-items: end;
}

/* Styles for the AI message box header */
.ai-box-header,
.user-box-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.user-box-header{
    justify-content: right;
}
.ai-box-logo{
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}
.ai-box-logo img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.ai-box-header h4,
.user-box-header h4 {
    margin: 0;
    font-size: 0.7rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
}

/* Styles for the AI message content */
.ai-box-msg,
.user-box-msg,
.loader-box-msg {
    width: fit-content;
    min-width: 60px;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    background-color: white;
}
.ai-box-msg{
    margin-right: 1rem;
}
.user-box-msg{
    margin-left: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.ai-box-msg p,
.user-box-msg p,
.loader-box-msg p {
    margin: 0;
    font-size: 0.75rem;
}

/* Styles for the AI message options (buttons) */
.ai-box-msg-options,
.user-box-msg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.user-box-msg-options{
    justify-content: end;
}

.ai-box-msg-options button,
.user-box-msg-options button {
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: var(--primary-light-color);
    border: 1px solid var(--primary-color);
}
.user-box-msg-options button{
    background-color: #d9d9d9;
    border: 1px solid #bcbcbc;
    color: #111;
}

.ai-box-msg-options button:hover,
.user-box-msg-options button:hover {
    color: white;
    background-color: var(--primary-dark-color);
}

.loader-box-msg {
    font-family: Arial, sans-serif;
}

.dot {
    line-height: 0;
    font-size: 1.5rem;
    animation: blink 1s infinite steps(4, start);
}

@keyframes blink {
    0%, 20% {
        color: transparent;
    }
    25%, 100% {
        color: var(--primary-color);
    }
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}
