 :root {
     --primary-color: #040c8e;
     --secondary-color: #be1502;
 }

 /* Chat UI Styles */
 /*#chat-box {*/
 /*    width: 350px;*/
 /*    height: 450px;*/
 /*    position: fixed;*/
 /*    bottom: 0px;*/
 /*    left: 0px;*/
 /*    right: auto;*/
 /*    background-color: #f9f9f9;*/
 /*    border: 1px solid #ddd;*/
 /*    border-radius: 12px;*/
 /*    display: none;*/
 /*    overflow-y: auto;*/
 /*    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
 /*    z-index: 9999;*/
 /*}*/
 
 #chat-box {
    width: 350px;
    height: 450px;
    position: fixed;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: none;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;

    /* Desktop & Tablet */
    bottom: 10px;
    left: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    #chat-box {
        left: 0;
        bottom: 0;
    }
}

 #chat-box .heading-area {
     background-color: #fff;
     color: white;
     padding: 4px 15px;
     border-radius: 12px 12px 0 0;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 1px solid #ddd;
 }

 #chat-box .heading-area i {
     color: red;
 }

 #chat-box .heading-area .logo-area {
     display: flex;
 }

 #chat-box .heading-area .logo-area img {
     width: 3rem;
     height: 3rem;
     align-items: center;
 }

 #chat-box .chatbot-heading {
     margin-top: 11px;
     /* animation: bounce 1.5s ease-in-out infinite; */
 }

 #chat-box .chatbot-heading p {
     font-size: 10px;
     font-weight: 900;
     margin-bottom: 0px !important;
     margin-top: -6px !important;
     text-align: end;
     color: var(--secondary-color);
 }

 #chat-box h3 {
     font-size: 15px;
     margin: 0;
     font-weight: 900;
     color: var(--primary-color);
 }

 @keyframes bounce {
     0% {
         transform: translateY(0);
     }

     20% {
         transform: translateY(-10px);
     }

     40% {
         transform: translateY(0);
     }

     60% {
         transform: translateY(-5px);
     }

     80% {
         transform: translateY(0);
     }

     100% {
         transform: translateY(0);
     }
 }

 #chat-box i {
     font-size: 20px;
     cursor: pointer;
 }

 #chat-messages {
     padding: 10px;
     max-height: 309px;
     overflow-y: auto;
 }

 #chat-messages p {
     margin-bottom: 0px !important;
     font-size: 14px !important;
     line-height: 1.5 !important;
 }

 #chat-messages::-webkit-scrollbar {
     width: 4px;
 }

 #chat-messages::-webkit-scrollbar-thumb {
     background-color: #ccc;
     border-radius: 10px;
 }

 #chat-messages::-webkit-scrollbar-track {
     background-color: #ecf0f1;
     border-radius: 10px;
 }

 /* Welcome container */
 .chat-welcome {
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     /* height: 20rem; */
 }

 /* Welcome bot message */
 .chat-welcome .bot-message {
     background: transparent !important;
     box-shadow: none !important;
     margin: 0 auto 0 auto !important;
     text-align: center;
     max-width: 100%;
 }

 .chat-welcome img {
     margin-top: 0px !important;
 }

 .bot-message {
     background-color: #e6f7ff !important;
     padding: 10px;
     border-radius: 10px;
     max-width: 80%;
     margin-right: auto !important;
     word-wrap: break-word;
     margin: 5px 0;
 }


 .bot-message button {
     margin: 3px;
     border: 1px solid var(--primary-color);
     background: #fff;
     border-radius: 50px;
     font-size: 11px;
     padding: 5px 10px;
     color: var(--primary-color);
     cursor: pointer;
 }

 .chat-welcome button {
     margin: 3px;
     border: 1px solid var(--primary-color);
     background: #fff;
     border-radius: 50px;
     font-size: 11px;
     padding: 1px 10px;
     color: var(--primary-color);
     cursor: pointer;
 }

 .user-message {
     background-color: #d4edda;
     padding: 10px;
     border-radius: 10px;
     max-width: 80%;
     margin-left: auto !important;
     word-wrap: break-word;
     margin: 5px 0;
 }

 .chatbot-input {
     width: 100%;
     display: flex;
     border-top: 1px solid #ddd;
     padding: 0px 8px 0px 8px;
     position: absolute;
     left: 0px;
     bottom: 27px;
 }

 #user-input {
     border: none !important;
     width: 90%;
     outline: none;
     font-size: 14px;
     background: transparent;
 }

 #send-btn {
     background-color: transparent;
     color: #000;
     padding: 5px 9px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 18px;
     margin-left: 10px;
     border: none;
     margin: 3px 0;
 }

 #send-btn i {
     color: var(--secondary-color);
 }

 #toggle-chat {
     position: fixed;
     width: 4rem;
     bottom: 10px;
     left: 15px;
     cursor: pointer;
     border: none;
     z-index: 9;
 }

 #chat-box.fadeIn {
     animation: fadeIn 0.5s forwards;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 #toggle-chat::after {
     content: "";
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(to right, transparent, #fff, transparent);
     animation: scanning 2s linear infinite;
 }

 @keyframes scanning {
     0% {
         left: -100%;
     }

     50% {
         left: 100%;
     }

     100% {
         left: 100%;
     }
 }

 /* Typing indicator styling */
 .typing-indicator {
     display: flex;
     align-items: center;
     margin-top: 10px;
 }

 .typing-indicator span {
     display: inline-block;
     width: 5px;
     height: 5px;
     margin: 0 3px;
     border-radius: 50%;
     background-color: #000;
     animation: typingAnimation 1.5s infinite ease-in-out;
 }

 .typing-indicator span:nth-child(1) {
     animation-delay: 0s;
 }

 .typing-indicator span:nth-child(2) {
     animation-delay: 0.3s;
 }

 .typing-indicator span:nth-child(3) {
     animation-delay: 0.6s;
 }

 /* Animation for typing dots */
 @keyframes typingAnimation {
     0% {
         opacity: 0;
         transform: scale(0);
     }

     50% {
         opacity: 1;
         transform: scale(1);
     }

     100% {
         opacity: 0;
         transform: scale(0);
     }
 }

 /* Chat Bot Images */
 .chatbot-web {
     overflow-x: auto;
     white-space: nowrap;
     padding: 5px 0;
     max-width: 80%;
     margin-right: auto;
 }

 .web-track {
     display: flex;
     gap: 4px;
 }

 .chatbot-web .img {
     display: inline-block;
     background: transparent;
     border-radius: 10px;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
     width: 140px;
     text-align: center;
 }

 .chatbot-web .img img {
     width: 100%;
     height: 50px;
     border-radius: 4px;
     border: 1px solid #ddd;
 }



 /* for activating dark mode ChatBot */
 #chat-box .toggle-dark {
     position: absolute;
     top: 22px;
     right: 45px;
     z-index: 1000;
     cursor: pointer;
 }

 #chat-box .form-check-input:checked {
     background-color: #000 !important;
     border-color: #000 !important;
 }

 #chat-box .form-check-input:focus {
     border-color: transparent !important;
     box-shadow: none !important;
 }


 /* Default Light Mode */
 #chat-box {
     background: #fff;
     color: #000;
     transition: all 0.3s ease;
 }

 /* Input */
 #user-input {
     background: #fff;
     color: #000;
     border: 1px solid #ddd;
     transition: all 0.3s ease;
 }

 /* Welcome Message */
 .chat-welcome .bot-message {
     color: #000;
     background: transparent !important;
     transition: all 0.3s ease;
 }

 /* DARK MODE */
 #chat-box.chatbot-darkmode {
     background: #121212 !important;
     color: #fff !important;
 }

 /* Input Dark */
 #chat-box.chatbot-darkmode #user-input {
     background: #1e1e1e !important;
     color: #fff !important;
     border-color: #333 !important;
 }

 /* Welcome Text Dark */
 #chat-box.chatbot-darkmode .chat-welcome .bot-message,
 #chat-box.chatbot-darkmode i {
     color: #fff !important;
 }

 #chat-box.chatbot-darkmode .heading-area i {
     color: red !important;
 }

 #chat-box.chatbot-darkmode .bot-message,
 #chat-box.chatbot-darkmode .user-message {
     color: #000 !important;
 }

 .chatbot-footer {
     position: absolute;
     bottom: 0;
     font-size: 11px;
     padding: 0px;
     background: #fff;
     border-top: 1px solid #eee;
     color: #666;
     display: flex;
     justify-content: center;
     width: 100%;
 }

 .chatbot-footer a {
     color: #000;
     font-weight: 600;
     text-decoration: none;
 }

 /* Dark Mode */
 #chat-box.chatbot-darkmode .chatbot-footer {
     background: #121212;
     border-top: 1px solid #2a2a2a;
     color: #aaa;
 }

 #chat-box.chatbot-darkmode .chatbot-footer a {
     color: #fff;
 }