        .chat-widget {
            position: fixed; /* Changed from absolute to fixed */
            bottom: 20px;
            right: 20px;
            width: 350px;
            background-color: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s, transform 0.5s;
            z-index: 1001; /* Ensure it's above other content */
        }
        .chat-widget.active {
            opacity: 1;
            transform: translateY(0);
        }
        .chat-header {
            background-color: #8A2BE2;
            color: white;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .chat-header-title {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .chat-header-title img {
            width: 30px; /* Updated size */
            height: 30px; /* Updated size */
            border-radius: 50%;
            margin-right: 10px; /* Added margin */
            object-fit: cover; /* Ensure image covers the area */
        }
        .chat-header-actions {
            display: flex;
            gap: 10px;
        }
        .chat-header-actions button {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 16px;
        }
        .chat-body {
            height: 300px;
            padding: 15px;
            overflow-y: auto;
            background-color: #f5f5f5;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .message {
            max-width: 80%;
            padding: 10px 15px;
            border-radius: 18px;
            margin-bottom: 5px;
            animation: fadeIn 0.3s forwards;
            opacity: 0;
            color: #333; /* Default text color */
        }
        .bot-message {
            background-color: #e6e6e6;
            color: #333;
            align-self: flex-start;
            border-bottom-left-radius: 5px;
        }
        .user-message {
            background-color: #8A2BE2;
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 5px;
        }
        .chat-input {
            display: flex;
            padding: 10px;
            background-color: #fff;
            border-top: 1px solid #eee;
        }
        .chat-input input {
            flex: 1;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 20px;
            outline: none;
        }
        .chat-input button {
            background-color: #8A2BE2;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            margin-left: 10px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .chat-button {
            position: fixed; /* Changed from absolute to fixed */
            bottom: 20px;
            right: 20px;
            background-color: #8A2BE2;
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000; /* Ensure it's above other content but below widget */
            transition: opacity 0.5s, transform 0.5s;
        }
        .typing-indicator {
            display: inline-block;
            padding: 10px 15px;
            background-color: #e6e6e6;
            border-radius: 18px;
            border-bottom-left-radius: 5px;
            color: #333;
            align-self: flex-start;
            margin-bottom: 5px;
        }
        .typing-indicator span {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #888;
            border-radius: 50%;
            margin-right: 5px;
            animation: typing 1s infinite;
        }
        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }
        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
            margin-right: 0;
        }
        @keyframes typing {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .hidden {
            opacity: 0; /* Use opacity for transition */
            pointer-events: none; /* Prevent interaction when hidden */
        }



        .chat-header-title video {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
            object-fit: cover;
        }
