/* Apply font-family only to the chatbot elements */
.chat-container, .chatbot-widget, .options-container, .chat-box, .input-container, .message, .chat-header, .bot-message {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue, Icons16, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.chatbot-widget {
	display:none !important;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    position: fixed;
    right: 2%;
    bottom: 4%;
    background: #3c3c3c;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.chatbot-widget i {
    font-size: 24px;
    color: white;
}

.chat-container {
    z-index: 10000;
    width: 398px; 
    background: #fff; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    right: 18px;
    bottom: 18px;
    /* height: 84vh !important; */
    display: none; /* Initially hidden */
}

.chat-header { 
    background: #6675fa;
    color: #fff; 
    padding: 8px; 
    text-align: center; 
    font-weight: bold; 
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure space between elements */
}

.chat-header i { /* Icon for the header */
    font-size: 20px;
}

.fa-xmark {
    cursor: pointer;
    font-size: 18px;
    color: #fff;
}

.fa-refresh {
    font-size: 18px;
    color: #fff;
    cursor: pointer;
}

.chat-box { 
    padding: 8px 8px 8px 8px; 
    height: 435px;
    overflow-y: auto; 
    background-color: #fff; 
    display: flex;
    flex-direction: column; 
}

.messageAppended { 
    margin: 6px 0;
    padding: .6rem .8rem; 
    border-radius: 12px; 
    max-width: 75%; 
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.user-message { 
	word-break: break-word;					
    background: #6675fa; /* Lighter user message color */
    color: #fff;
    align-self: flex-end;
	font-size: 13px;
}

.bot-message { 
    background: #f5f5f5; /* Accent color for bot messages */
    color: rgba(0, 0, 0, .8);; 
    align-self: flex-start; 
    border-radius: 12px;
    line-height: normal !important;
	font-size: 13px;
}

.input-container { 
    display: flex; 
    padding: 15px 15px 0px 15px;
    background: #fff; 
    width: 100%;
    position: relative; /* For positioning the send button */
}

#chatbotmessage { 
    width: 100%;
	resize: none;		  
    /*padding-right: 40px; /* Add some space for the button */
    /*padding-left: 10px;*/
    height: 45px; /* Adjust input height */
    box-sizing: border-box;
    /*flex: 1; */ 
    /*padding: 14px 15px; /* Adjust padding to accommodate button */
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff; 
    margin-right: 0;
    font-size: 13px !important;
	padding: 4px 38px 4px 4px;
}

.send-btn { 
    display: flex;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: 1px solid white;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    outline: none;
    background: #2196F3;
    padding: 7px;
    border-radius: 50%;

}
/* .send-btn { 
    background: #2196F3;
    color: #fff; 
    border: none; 
    padding: 10px; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: background 0.3s; 
    position: absolute;
    right: 25px; 
    top: 50%;
    transform: translateY(-50%);
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s; 
} */

.send-btn i {
    font-size: 16px;
    pointer-events: none; 
}

#chatbotmessage:not(:placeholder-shown) + .send-btn { /* Show button when input has text */
    opacity: 1;
    pointer-events: auto;
    font-size: 14px !important;
}

.send-btn:hover {
    background: #1976d2; /* Darker shade on hover */
}
/* 
.send-btn:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
}

.send-btndisabled { 
    background: #ccc !important; 
    cursor: not-allowed !important; 
} */

/* Style for the options container */
.options-container {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap if they overflow */
    gap: 4px; /* Space between option buttons */
    margin-top: 3px; /* Add space above the buttons */
    align-self: auto;
}

/* Style for individual option buttons */
.options-container button {
    background: #fff; /* Match the bot message color */
    color: #6675fa;
    border: 1px solid #6675fa;
    border-radius: 12px;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth hover effect */
    font-size: 13px;
    /* white-space: nowrap; Prevent text wrapping in buttons */
    margin:0px !important;
    text-align: left;
}

.options-container button:hover {
    background: color-mix(in srgb, #6675fa 5%, transparent);
}

.options-container button:focus {
    outline: none; /* Remove focus outline */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Add subtle focus shadow */
}

/* Typing dots style */
.typing {
    font-style: italic;
    color: rgba(0, 0, 0, .8);
}

/* Typing dots animation */
.dots::after {
    content: '';
    display: inline-block;
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

.chat-box::-webkit-scrollbar {
  width: 8px;  /* width of the vertical scrollbar */
}

.chat-box::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 10px;
}

/* Styling the scrollbar thumb (the draggable part) */
.chat-box::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

/* Styling the scrollbar thumb on hover */
.chat-box::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/*disable chatbot for mobile views*/
@media screen and (max-width: 768px) {
    #chatbot-widget {
        display: none;
    }
}