/* Chat AI Floating Button */
        .ai-chat-trigger {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
            border-radius: 50%;
            border: none;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(30, 136, 229, 0.4);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }

        .ai-chat-trigger:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(30, 136, 229, 0.6);
        }

        .ai-chat-trigger.active {
            background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
        }

        /* Chat Modal */
        .ai-chat-modal {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 350px;
            height: 500px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            z-index: 1001;
            display: none;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        .ai-chat-modal.show {
            display: flex;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Chat Header */
        .ai-chat-header {
            background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
            color: white;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .ai-chat-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .ai-chat-close {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Chat Messages Area */
        .ai-chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f8f9fa;
        }

        .ai-chat-message {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }

        .ai-chat-message.user {
            flex-direction: row-reverse;
        }

        .ai-chat-message .message-bubble {
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.4;
        }

        .ai-chat-message.user .message-bubble {
            background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
            color: white;
            margin-left: 10px;
        }

        .ai-chat-message.ai .message-bubble {
            background: white;
            color: #333;
            border: 1px solid #e0e0e0;
            margin-right: 10px;
        }

        .ai-chat-message .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        .ai-chat-message.user .avatar {
            background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
            color: white;
        }

        .ai-chat-message.ai .avatar {
            background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
            color: white;
        }

        /* Action Buttons */
        .ai-action-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 12px;
        }

        .ai-action-btn {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border: 1px solid #2196f3;
            color: #1565c0;
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ai-action-btn:hover {
            background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
            transform: translateY(-1px);
        }

        .ai-action-btn i {
            font-size: 14px;
        }

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

        .ai-chat-input-form {
            display: flex;
            gap: 10px;
        }

        .ai-chat-input input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 25px;
            outline: none;
            font-size: 14px;
        }

        .ai-chat-input input:focus {
            border-color: #1e88e5;
        }

        .ai-chat-send {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .ai-chat-send:hover {
            transform: scale(1.05);
        }

        .ai-chat-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Loading indicator */
        .ai-typing {
            display: none;
            align-items: center;
            gap: 5px;
            color: #666;
            font-style: italic;
            font-size: 13px;
            margin-bottom: 15px;
        }

        .ai-typing.show {
            display: flex;
        }

        .typing-dots {
            display: flex;
            gap: 3px;
        }

        .typing-dots span {
            width: 4px;
            height: 4px;
            background: #1e88e5;
            border-radius: 50%;
            animation: typing 1.5s infinite;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing {
            0%, 60%, 100% { opacity: 0.3; }
            30% { opacity: 1; }
        }

        /* Dark mode support */
        [data-bs-theme="dark"] .ai-chat-modal {
            background: #2a2d31;
            border-color: #404549;
        }

        [data-bs-theme="dark"] .ai-chat-messages {
            background: #36393f;
        }

        [data-bs-theme="dark"] .ai-chat-message.ai .message-bubble {
            background: #40444b;
            color: #dcddde;
            border-color: #404549;
        }

        [data-bs-theme="dark"] .ai-chat-input {
            background: #2a2d31;
            border-color: #404549;
        }

        [data-bs-theme="dark"] .ai-chat-input input {
            background: #40444b;
            color: #dcddde;
            border-color: #404549;
        }

        [data-bs-theme="dark"] .ai-action-btn {
            background: linear-gradient(135deg, #263238 0%, #37474f 100%);
            border-color: #546e7a;
            color: #81d4fa;
        }

        [data-bs-theme="dark"] .ai-action-btn:hover {
            background: linear-gradient(135deg, #37474f 0%, #455a64 100%);
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .ai-chat-modal {
                width: calc(100vw - 40px);
                height: 70vh;
                bottom: 90px;
                right: 20px;
                left: 20px;
            }
        }