        /* Base styles */
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px black inset !important;
            -webkit-text-fill-color: white !important;
        }

        .chatbot-container {
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            max-width: 550px;
            max-height: 70vh;
            min-height: 72vh;
            margin: 0 auto; /* Center the container */
            background-color: #d3d3d3;
            border-radius: 15px;
            position: relative; /* Enable positioning for the close button */
        }

        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 18px;
            color: #888;
            cursor: pointer;
            padding: 0;
            text-decoration: none;
        }

        .close-button:hover {
            color: black;
        }

        .chat-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 10px;
        }

        .message {
            display: flex;
            flex-direction: column;
            margin: 5px 0 0 10px;
        }

        .bot {
            align-items: flex-start;
        }

        .user {
            align-items: flex-end;
        }

        .title {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: .8rem;
        }

        .message-box {
            max-width: 70%;
            padding: 10px;
            word-wrap: break-word;
        }

        .bot .message-box {
            background-color: white;
            line-height: 1.4;
            border-radius: 10px 10px 10px 0;
            color: black;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);  /* Soft black drop-shadow */
            font-size: .8em;
        }

        .user .message-box {
            background-color: #8e82fc;
            border-radius: 10px 10px 0 10px;
            color: white;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);  /* Soft black drop-shadow */
            font-size: .8em;
        }

        .timestamp {
            font-size: 0.7em;
            color: #888;
            margin-top: 2px;
        }

        .input-container {
            display: flex;
            padding: 10px;
            position: relative;
            background: #f1f1f1;
            border-radius: 15px;
        }

        .input-container input {
            width: 100%;
            padding: 10px;
            background-color: #ffffff;
            border: 1px solid #f1f3f4;
            border-radius: 25px;
            padding-right: 50px; /* Space for the button */
            color: black;
        }

        .send-button {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            padding: 5px 10px;
            margin-right: 7px;
            border: none;
            background-color: #8e82fc;
            color: white;
            border-radius: 25px;
            cursor: pointer;
        }

        /* Responsive styles */
        @media (max-width: 480px) { /* Mobile */
            .chatbot-container {
                max-width: 95%;
                max-height: 70vh;
                min-height: 70vh;
    
            }
        }
        
        @media (max-width: 600px) { /* Mobile */
            .chatbot-container {
                max-width: 96%;
                max-height: 68.5vh;
                min-height: 68.5vh;
    
            }
            .message-box {
                max-width: 90%;
            }
        }

        @media (min-width: 601px) and (max-width: 900px) { /* Tablet */
            .chatbot-container {
                max-width: 85%;
            }
            .message-box {
                max-width: 80%;
            }
        }

        @media (min-width: 901px) and (max-width: 1200px) { /* Small Desktop */
            .chatbot-container {
                max-width: 40%;
                max-height: 40.5vh;
                min-height: 40.5vh;
            }
            .message-box {
                max-width: 75%;
            }
        }

        @media (min-width: 1201px) and (max-width: 1600px) { /* Medium Desktop */
            .chatbot-container {
                max-width: 50%;
            }
        }

        @media (min-width: 1601px) { /* Large Desktop */
            .chatbot-container {
                max-width: 65%;
            }
        }

        ::-webkit-scrollbar {
            border-radius: 10px;
            overflow: hidden;
        }

        .loader {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 10px 0;
        }

        .dot {
            width: 10px;
            height: 10px;
            margin: 0 5px;
            border-radius: 50%;
            background-color: #000000;
            opacity: 0;
            animation: blink 1.5s infinite;
        }

        @keyframes blink {
            0%, 20% {
                opacity: 0;
            }
            40% {
                opacity: 1;
            }
            100% {
                opacity: 0;
            }
        }

        .dot:nth-child(1) { animation-delay: 0s; }
        .dot:nth-child(2) { animation-delay: 0.2s; }
        .dot:nth-child(3) { animation-delay: 0.4s; }
        .dot:nth-child(4) { animation-delay: 0.6s; }
        .dot:nth-child(5) { animation-delay: 0.8s; }
