
        /* Chatbot Icon */
        .chatbot-icon {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background: linear-gradient(135deg, #6e8efb, #40048a);
            color: white;
            width: 60px;
            height: 60px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            cursor: pointer;
            font-size: 26px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease-in-out;
            z-index: 1000;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.03); }
            100% { transform: scale(1); }
        }

        .chatbot-icon:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        /* Chatbot Container */
        .chatbot-container {
            position: fixed;
            bottom: 100px;
            left: 25px;
            width: 380px;
            height: 520px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 1000;
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .chatbot-container.active {
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: all;
        }

        /* Header */
        .chatbot-header {
            background: linear-gradient(135deg, #3a5fd8, #440b89);
            color: white;
            padding: 18px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            font-weight: 600;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .chatbot-header .status {
            font-size: 12px;
            font-weight: normal;
            margin-left: 8px;
            color: #7cff7c;
            display: flex;
            align-items: center;
        }

        .status::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #7cff7c;
            margin-right: 5px;
            animation: statusPulse 2s infinite;
        }

        @keyframes statusPulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .chatbot-header .close-chat {
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s;
            width: 32px;
            height: 32px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
        }

        .chatbot-header .close-chat:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .theme-toggle {
            background: rgba(255, 255, 255, 0.2);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            margin-right: 10px;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        /* Chat Body */
        .chatbot-body {
            padding: 20px;
            height: 370px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            background: #f8f9fa;
            scrollbar-width: thin;
            scrollbar-color: #c1c1c1 transparent;
        }

        .chatbot-body::-webkit-scrollbar {
            width: 6px;
        }

        .chatbot-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .chatbot-body::-webkit-scrollbar-thumb {
            background-color: #c1c1c1;
            border-radius: 20px;
        }

        /* Messages */
        .bot-message, .user-message {
            max-width: 80%;
            padding: 14px 18px;
            border-radius: 20px;
            margin-bottom: 18px;
            font-size: 15px;
            line-height: 1.5;
            position: relative;
            animation: messageAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        @keyframes messageAppear {
            from {
                opacity: 0;
                transform: translateY(15px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .bot-message {
            background: white;
            align-self: flex-start;
            color: #2d3748;
            border-top-left-radius: 5px;
            border: 1px solid #eaeaea;
        }

        .user-message {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            color: white;
            align-self: flex-end;
            border-top-right-radius: 5px;
        }

        .message-time {
            display: block;
            font-size: 11px;
            margin-top: 6px;
            opacity: 0.9;
            text-align: right;
            font-weight: 500;
        }

        .user-message .message-time {
            color: rgba(255, 255, 255, 0.85);
        }

        .bot-message .message-time {
            color: rgba(0, 0, 0, 0.6);
        }

        /* Typing Indicator */
        .typing-indicator {
            display: none;
            align-items: center;
            background: white;
            border-radius: 20px;
            align-self: flex-start;
            margin-bottom: 18px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid #eaeaea;
            padding: 14px 18px;
            animation: messageAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .typing-content {
            display: flex;
            flex-direction: column;
            margin-left: 12px;
        }

        .typing-text {
            font-size: 13px;
            color: #666;
            margin-bottom: 6px;
            font-weight: 500;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dots span {
            width: 8px;
            height: 8px;
            background-color: #6e8efb;
            border-radius: 50%;
            display: inline-block;
            animation: typingAnimation 1.6s infinite ease-in-out both;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingAnimation {
            0%, 80%, 100% { 
                transform: scale(0.8);
                opacity: 0.5;
            }
            40% { 
                transform: scale(1.1);
                opacity: 1;
            }
        }

        /* Footer */
        .chatbot-footer {
            display: flex;
            border-top: 1px solid #eaeaea;
            padding: 15px;
            background: #fff;
            align-items: center;
        }

        .chatbot-footer input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #ddd;
            font-size: 14px;
            outline: none;
            border-radius: 24px;
            background: #f8f9fa;
            transition: all 0.3s;
        }

        .chatbot-footer input:focus {
            border-color: #6e8efb;
            box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.15);
        }

        .chatbot-footer button {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            border-radius: 50%;
            transition: all 0.3s;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 10px rgba(110, 142, 251, 0.3);
        }

        .chatbot-footer button:hover {
            transform: translateY(-2px) rotate(5deg);
            box-shadow: 0 6px 15px rgba(110, 142, 251, 0.4);
        }

        /* Suggestions */
        .suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding: 12px;
            background: #fff;
            border-top: 1px solid #eaeaea;
        }

        .suggestion-chip {
            background: rgba(110, 142, 251, 0.1);
            color: #6e8efb;
            padding: 6px 10px;
            border-radius: 16px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(110, 142, 251, 0.2);
            font-weight: 500;
        }

        .suggestion-chip:hover {
            background: #6e8efb;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(110, 142, 251, 0.25);
        }

        /* Link Styles */
        .message-link {
            color: #6e8efb;
            text-decoration: underline;
            font-weight: 600;
            word-break: break-all;
            transition: all 0.2s;
            padding: 2px 0;
            border-radius: 3px;
        }

        .message-link:hover {
            text-decoration: none;
            background: rgba(110, 142, 251, 0.1);
            padding: 2px 4px;
        }

        /* Dark Theme */
        .dark-theme .chatbot-container {
            background: #2d3748;
            border: 1px solid #4a5568;
        }

        .dark-theme .chatbot-body {
            background: #1a202c;
        }

        .dark-theme .bot-message {
            background: #4a5568;
            color: #e2e8f0;
            border: 1px solid #718096;
        }

        .dark-theme .user-message {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            color: white;
        }

        .dark-theme .chatbot-footer {
            background: #2d3748;
            border-top: 1px solid #4a5568;
        }

        .dark-theme .chatbot-footer input {
            background: #4a5568;
            color: #e2e8f0;
            border: 1px solid #718096;
        }

        .dark-theme .suggestions {
            background: #2d3748;
            border-top: 1px solid #4a5568;
        }

        .dark-theme .suggestion-chip {
            background: rgba(110, 142, 251, 0.2);
            color: #90cdf4;
            border: 1px solid rgba(110, 142, 251, 0.3);
        }

        .dark-theme .suggestion-chip:hover {
            background: #6e8efb;
            color: white;
        }

        .dark-theme .typing-indicator {
            background: #4a5568;
            color: #e2e8f0;
            border: 1px solid #718096;
        }

        .dark-theme .message-link {
            color: #90cdf4;
        }

        .dark-theme .message-link:hover {
            background: rgba(144, 205, 244, 0.15);
        }

        .dark-theme .bot-message .message-time {
            color: rgba(255, 255, 255, 0.7);
        }

        /* Header Actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .header-actions .theme-toggle {
            margin-right: 0;
        }

        #ttsToggle.active {
            background: rgba(124, 255, 124, 0.3);
            color: #7cff7c;
        }

        #voiceBtn.listening {
            background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
            animation: pulseMic 1.2s infinite ease-in-out;
        }

        @keyframes pulseMic {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7); }
            70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
        }

        /* Interactive Action Buttons in Bot Messages */
        .chat-actions-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px dashed rgba(0, 0, 0, 0.1);
        }

        .chat-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 16px;
            background: linear-gradient(135deg, #6e8efb, #40048a);
            color: white !important;
            font-size: 12px;
            font-weight: 500;
            text-decoration: none !important;
            transition: all 0.25s ease;
            box-shadow: 0 2px 6px rgba(110, 142, 251, 0.3);
        }

        .chat-action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(110, 142, 251, 0.5);
            color: white !important;
            opacity: 0.95;
        }

        .dark-theme .chat-actions-container {
            border-top-color: rgba(255, 255, 255, 0.15);
        }

        /* Scrollable suggestions container */
        .suggestions {
            max-height: 90px;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        /* Responsive Design */
        @media (max-width: 480px) {
            .chatbot-container {
                width: 95%;
                height: 65vh;
                left: 2.5%;
                bottom: 90px;
            }
            
            .chatbot-body {
                height: calc(85vh - 100px);
            }
            
            .chatbot-icon {
                left: 20px;
                bottom: 20px;
                width: 58px;
                height: 58px;
            }
            
            .message {
                max-width: 85%;
            }
        }