 /* Design system */
        :root {
            --primary: #0f6b4a;
            --primary-dark: #114b36;
            --primary-light: #e8f5f0;
            --text: #1a1a1a;
            --text-light: #666;
            --bg: #ffffff;
            --bg-alt: #f8f9fa;
            --border: #e6e6e6;
            --shadow: 0 8px 20px rgba(8, 10, 12, 0.18);
            --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
            --radius: 12px;
            --radius-sm: 8px;
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --z-chat: 9999;
        }

        /* Floating container */
        .chat-floating {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: var(--z-chat);
            display: grid;
            gap: 12px;
            align-items: end;
            justify-items: end;
            touch-action: none;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        /* Main bubble */
        .chat-bubble {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            transition: var(--transition);
            outline: none;
            border: none;
            position: relative;
            overflow: hidden;
        }
            #chatBubble{
            /* position:absolute; */
            right: 0;
        }

    
        .chat-bubble:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(8, 10, 12, 0.22);
        }

        .chat-bubble:active {
            transform: scale(0.96);
        }

        .chat-bubble:focus {
            box-shadow: 0 0 0 4px rgba(16, 120, 85, 0.3);
        }

        .chat-bubble .icon {
            font-size: 24px;
            line-height: 1;
            transition: transform 0.3s ease;
        }

        .chat-bubble.active .icon {
            transform: rotate(15deg);
        }

        /* Pulse animation */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(15, 107, 74, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(15, 107, 74, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(15, 107, 74, 0);
            }
        }

        .chat-bubble.pulse {
            animation: pulse 2s infinite;
        }

        /* Action buttons */
        .chat-actions {
            display: flex;
            flex-direction: column-reverse;
            gap: 10px;
            align-items: end;
            pointer-events: auto;
        }

        .chat-action {
            width: 44px;
            height: 44px;
            border-radius: var(--radius);
            background: var(--bg);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-light);
            font-size: 18px;
            cursor: pointer;
            transform-origin: 100% 100%;
            transition: var(--transition);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px) scale(0.9);
            border: none;
            outline: none;
        }

        .chat-action:hover {
            transform: translateY(-2px) scale(1);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        }

        .chat-action.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        /* Chat window */
        .chat-window {
            width: 380px;
            max-width: calc(100vw - 48px);
            height: 520px;
            background: var(--bg);
            border-radius: var(--radius);
            box-shadow: 0 18px 40px rgba(12, 14, 18, 0.18);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform-origin: 100% 100%;
            opacity: 0;
            transform: translateY(10px) scale(0.98);
            pointer-events: none;
            transition: var(--transition);
            border: 1px solid var(--border);
        }

        .chat-window.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        /* Header */
        .chat-window .cw-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
        }

        .cw-header .cw-title {
            font-weight: 600;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cw-header .cw-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #4ade80;
            position: relative;
        }

        .cw-header .cw-status::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: #4ade80;
            animation: pulse 2s infinite;
        }

        .cw-header .cw-close {
            margin-left: auto;
            border: none;
            font-size: 18px;
            background: transparent;
            color: inherit;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .cw-header .cw-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Conversation area */
        .chat-window .cw-body {
            padding: 16px;
            flex: 1;
            overflow: auto;
            background: var(--bg-alt);
            display: flex;
            flex-direction: column;
            scroll-behavior: smooth;
        }

        .cw-body::-webkit-scrollbar {
            width: 6px;
        }

        .cw-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .cw-body::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 3px;
        }

        /* Message styles */
        .cw-message {
            margin: 8px 0;
            display: flex;
            align-items: flex-end;
            gap: 8px;
            max-width: 100%;
        }

        .cw-message.user {
            flex-direction: row-reverse;
        }

        .cw-message .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .cw-message.bot .avatar {
            background: var(--primary);
            color: white;
        }

        .cw-message.user .avatar {
            background: var(--primary-light);
            color: var(--primary);
        }

        .cw-message .bubble {
            padding: 12px 16px;
            border-radius: 18px;
            max-width: 75%;
            line-height: 1.4;
            font-size: 14px;
            position: relative;
            word-wrap: break-word;
        }

        .cw-message.bot .bubble {
            background: white;
            color: var(--text);
            border-bottom-left-radius: 6px;
            box-shadow: var(--shadow-light);
        }

        .cw-message.user .bubble {
            background: var(--primary);
            color: white;
            border-bottom-right-radius: 6px;
        }

        .cw-message .timestamp {
            font-size: 11px;
            color: var(--text-light);
            margin-top: 4px;
            text-align: right;
        }

        .cw-message.bot .timestamp {
            text-align: left;
        }

        /* Quick questions */
        .cw-quick {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .quick-q {
            border: 1px solid var(--border);
            background: white;
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            text-align: left;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(12, 14, 18, 0.04);
            transition: var(--transition);
            border: none;
            outline: none;
        }

        .quick-q:hover {
            background: var(--primary-light);
            border-color: var(--primary);
            transform: translateY(-1px);
            color: #000;
            box-shadow: 0 4px 8px rgba(12, 14, 18, 0.08);
        }

        .quick-q:active {
            transform: scale(0.995);
        }

        .quick-q:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Input area */
        .chat-window .cw-input {
            display: flex;
            gap: 8px;
            padding: 16px;
            border-top: 1px solid var(--border);
            background: white;
        }

        .cw-input input {
            flex: 1;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            outline: none;
            font-size: 14px;
            transition: var(--transition);
        }

        .cw-input input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(15, 107, 74, 0.1);
        }

        .cw-input button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cw-input button:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        .cw-input button:active {
            transform: scale(0.98);
        }

        .cw-input button:disabled {
            background: var(--text-light);
            cursor: not-allowed;
            transform: none;
        }

        /* Typing indicator */
        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: white;
            border-radius: 18px;
            border-bottom-left-radius: 6px;
            max-width: 75%;
            box-shadow: var(--shadow-light);
        }

        .typing-indicator .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--text-light);
            animation: typing 1.4s infinite ease-in-out;
        }

        .typing-indicator .dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .typing-indicator .dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        @keyframes typing {
            0%, 80%, 100% {
                transform: scale(0.8);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Responsive design */
        @media (max-width: 520px) {
            .chat-floating {
                left: 0;
                right: 0;
                bottom: 0;
                align-items: center;
                justify-items: center;
            }

            .chat-bubble {
                position: absolute;
                right: 18px;
                bottom: 86px;
            }

            .chat-window {
                width: 100%;
                height: 70vh;
                border-radius: var(--radius) var(--radius) 0 0;
                max-width: 100%;
            }

            .cw-message .bubble {
                max-width: 85%;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            :root {
                --text: #f0f0f0;
                --text-light: #aaa;
                --bg: #1a1a1a;
                --bg-alt: #222;
                --border: #444;
            }

            .cw-message.bot .bubble {
                background: #2a2a2a;
                color: var(--text);
            }

            .quick-q {
                background: #2a2a2a;
                color: var(--text);
            }

            .cw-input {
                background: #2a2a2a;
            }

            .cw-input input {
                background: #1a1a1a;
                color: var(--text);
                border-color: #444;
            }
        }