
   
        /* Floating Button */
        .chatbot-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #4a6bff;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: transform 0.3s ease;
        }

        .chatbot-btn:hover {
            transform: scale(1.05);
        }

        .chatbot-btn img {
            width: 30px;
            height: 30px;
        }

        /* Chat Window */
        .chat-window {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 350px;
            height: 500px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
            display: none;
            flex-direction: column;
            z-index: 1000;
            overflow: hidden;
        }

        /* Chat Header */
        .chat-header {
            background-color: #4a6bff;
            color: white;
            padding: 15px;
            font-weight: 600;
            font-size: 16px;
            display: flex;
            align-items: center;
        }

        .chat-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Chat Body */
        .chat-body {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* Messages */
        .message {
            max-width: 80%;
            padding: 10px 15px;
            border-radius: 18px;
            line-height: 1.4;
            word-wrap: break-word;
        }

        .user-message {
            align-self: flex-end;
            background-color: #4a6bff;
            color: white;
            border-bottom-right-radius: 5px;
        }

        .bot-message {
            align-self: flex-start;
            background-color: #f0f2f5;
            color: #333;
            border-bottom-left-radius: 5px;
        }

        /* Chat Input */
        .chat-input {
            display: flex;
            padding: 15px;
            border-top: 1px solid #e0e0e0;
            background-color: white;
        }

        .chat-input input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 24px;
            outline: none;
            font-family: 'Inter', sans-serif;
        }

        .chat-input input:focus {
            border-color: #4a6bff;
        }

        .chat-input button {
            margin-left: 10px;
            padding: 12px 20px;
            background-color: #4a6bff;
            color: white;
            border: none;
            border-radius: 24px;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
        }

        .chat-input button:hover {
            background-color: #3a5bef;
        }

        /* Typing animation */
        .typing-animation {
            overflow: hidden;
            border-right: 2px solid #4a6bff;
            white-space: nowrap;
            margin: 0 auto;
            animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
        }

        .voice-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 5px;
}

.typing {
    color: #888;
    font-style: italic;
    margin: 5px 0;
}
    
        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: #4a6bff; }
        }

        /* Responsive Design */
        @media (max-width: 480px) {
            .chat-window {
                width: calc(100% - 40px);
                right: 20px;
                left: 20px;
                height: 70vh;
            }
        }