/* agent-demo.html demo */
body.lc-page.page-agent-demo {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            height: 100vh;
            display: flex;
            flex-direction: column;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            position: fixed;
            width: 100%;
        }

        body.lc-page.page-agent-demo main {
            flex: 1;
            padding: 0.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }

        .chat-container {
            width: 100%;
            max-width: 900px;
            height: calc(100vh - 1rem);
            min-height: 500px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-sizing: border-box;
        }

        .chat-header {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%) !important;
            color: white !important;
            padding: 1.5rem 2rem !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            flex-shrink: 0 !important;
            box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3) !important;
            position: relative !important;
            z-index: 10 !important;
            width: 100% !important;
        }

        .chat-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
            pointer-events: none;
        }

        .chat-header-left {
            display: flex !important;
            align-items: center !important;
            gap: 16px !important;
            z-index: 2 !important;
            position: relative !important;
        }

        .chat-header img {
            width: 40px !important;
            height: 40px !important;
            border-radius: 50% !important;
            background: white !important;
            padding: 6px !important;
            display: block !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        }

        .chat-header h1,
        .chat-header h3 {
            margin: 0 !important;
            font-size: 1.3rem !important;
            font-weight: 700 !important;
            color: white !important;
            display: block !important;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        }

        .chat-header-right {
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            z-index: 2 !important;
            position: relative !important;
        }

        .header-btn {
            background: rgba(255,255,255,0.2) !important;
            border: 1px solid rgba(255,255,255,0.3) !important;
            color: white !important;
            padding: 8px 16px !important;
            border-radius: 12px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            backdrop-filter: blur(10px) !important;
            text-decoration: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .header-btn:hover {
            background: rgba(255,255,255,0.3) !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
            color: white !important;
            text-decoration: none !important;
        }

        .chat-messages {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            min-height: 0;
            scroll-behavior: smooth;
            background: linear-gradient(180deg, rgba(249,250,251,0.5) 0%, rgba(243,244,246,0.3) 100%);
        }
        
        /* Custom scrollbar styling */
        .chat-messages::-webkit-scrollbar {
            width: 8px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: rgba(243,244,246,0.5);
            border-radius: 10px;
        }
        
        .chat-messages::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #4f46e5, #7c3aed);
            border-radius: 10px;
        }
        
        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #3730a3, #5b21b6);
        }

        .message {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            max-width: 85%;
            animation: messageSlideIn 0.3s ease-out;
        }

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

        .message.user {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .message.bot {
            align-self: flex-start;
        }

        .message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .message.user .message-avatar {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
        }

        .message.bot .message-avatar {
            background: white;
            border: 2px solid #e5e7eb;
            padding: 6px;
        }

        .message.bot .message-avatar img {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            object-position: center;
        }

        .message-content {
            padding: 1rem 1.5rem;
            border-radius: 20px;
            line-height: 1.6;
            word-wrap: break-word;
            font-size: 15px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            position: relative;
        }

        .message.user .message-content {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            border-bottom-right-radius: 8px;
        }

        .message.bot .message-content {
            background: white;
            color: #374151;
            border: 1px solid #f3f4f6;
            border-bottom-left-radius: 8px;
        }

        .chat-input {
            padding: 1.5rem 2rem;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(229,231,235,0.5);
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-shrink: 0;
        }

        .input-container {
            flex: 1;
            display: flex;
            align-items: center;
            position: relative;
        }

        .chat-input input {
            flex: 1;
            padding: 1rem 1.5rem;
            border: 2px solid #e5e7eb;
            border-radius: 25px;
            font-size: 15px;
            outline: none;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .chat-input input:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .send-btn {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .send-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
        }

        .send-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .typing-indicator {
            display: none;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0;
            margin-left: 2rem;
        }

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

        .typing-dots {
            display: flex;
            gap: 6px;
            background: white;
            padding: 12px 20px;
            border-radius: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            border: 1px solid #f3f4f6;
        }

        .typing-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #9ca3af;
            animation: typing 1.4s infinite ease-in-out;
        }

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

        @keyframes typing {
            0%, 80%, 100% { 
                transform: scale(0.8); 
                opacity: 0.5; 
                background: #d1d5db;
            }
            40% { 
                transform: scale(1.2); 
                opacity: 1; 
                background: #4f46e5;
            }
        }

        .welcome-message {
            text-align: center;
            color: #4b5563;
            margin: 1rem 0 2rem 0;
            font-style: normal;
            font-size: 17px;
            font-weight: 500;
            background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(249,250,251,0.8));
            backdrop-filter: blur(10px);
            padding: 2rem 2.5rem;
            border-radius: 20px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            border: 1px solid rgba(255,255,255,0.6);
            line-height: 1.6;
            position: relative;
            overflow: hidden;
        }

        .welcome-message::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
            border-radius: 20px 20px 0 0;
        }

        @media (max-width: 768px) {
            body.lc-page.page-agent-demo {
                position: fixed;
                height: 100vh;
                overflow: hidden;
            }
            
            body.lc-page.page-agent-demo main {
                padding: 0.25rem;
                height: 100vh;
            }
            
            .chat-container {
                height: calc(100vh - 0.5rem);
                max-width: 100%;
                border-radius: 16px;
                margin: 0;
            }
            
            .message {
                max-width: 85%;
                gap: 0.75rem;
            }
            
            .message-avatar {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }

            .message.bot .message-avatar img {
                width: 20px;
                height: 20px;
                object-fit: cover;
                object-position: center;
            }
            
            .message-content {
                padding: 0.75rem 1rem;
                font-size: 14px;
                line-height: 1.5;
            }
            
            .chat-header {
                padding: 1rem 1.25rem !important;
            }
            
            .chat-header h1,
        .chat-header h3 {
                font-size: 1.1rem !important;
            }
            
            .chat-header img {
                width: 32px !important;
                height: 32px !important;
                padding: 4px !important;
            }
            
            .header-btn {
                padding: 6px 12px !important;
                font-size: 12px !important;
                border-radius: 8px !important;
            }
            
            .chat-messages {
                padding: 1rem;
                gap: 1rem;
            }

            .welcome-message {
                margin: 0.5rem 0 1.5rem 0;
                padding: 1.5rem;
                font-size: 15px;
            }
            
            .chat-input {
                padding: 1rem;
                gap: 0.75rem;
            }
            
            .chat-input input {
                padding: 0.75rem 1rem;
                font-size: 14px;
                border-radius: 20px;
            }
            
            .send-btn {
                padding: 0.75rem 1.25rem;
                font-size: 14px;
                border-radius: 20px;
            }
            
            .typing-indicator {
                margin-left: 1rem;
            }
            
            .typing-dots {
                padding: 8px 15px;
                border-radius: 15px;
            }
        }
        
        @media (max-width: 480px) {
            main {
                padding: 0.1rem;
            }

            .chat-container {
                height: calc(100vh - 0.2rem);
                border-radius: 12px;
            }
            
            .chat-header {
                padding: 0.75rem 1rem !important;
            }
            
            .chat-header h1,
        .chat-header h3 {
                font-size: 1rem !important;
            }
            
            .header-btn {
                padding: 4px 8px !important;
                font-size: 11px !important;
                gap: 8px !important;
            }
            
            .chat-messages {
                padding: 0.75rem;
            }
            
            .welcome-message {
                margin: 0.25rem 0 1rem 0;
                padding: 1rem;
                font-size: 14px;
            }
            
            .chat-input {
                padding: 0.75rem;
            }
            
            .message {
                max-width: 90%;
            }
        }
    

/* ityes_chat_demo.html demo */
body.lc-page.page-ityes_chat_demo {
            margin: 0;
            padding: 0;
            min-height: 100svh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior-y: auto;
            background: #f8fafc;
            font-family: 'Inter', sans-serif;
        }

        .header {
            background: #ffffff;
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border-bottom: 1px solid #e2e8f0;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .header h1 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-right {
            display: flex;
            gap: 1rem;
        }

        .header-btn {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .header-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
            color: white;
            text-decoration: none;
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 2rem;
            min-height: 0;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }

        .chatbot-container {
            flex: 0 0 auto;
            width: 100%;
            height: clamp(560px, 72dvh, 760px);
            min-height: 560px;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            border: 1px solid #e2e8f0;
            overflow: hidden;
        }

        .page-ityes_chat_demo flowise-fullchatbot {
            display: block;
            width: 100%;
            height: 100%;
            min-height: inherit;
        }

        .footer {
            background: #ffffff;
            padding: 1rem 2rem;
            text-align: center;
            border-top: 1px solid #e2e8f0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        }

        .footer p {
            margin: 0;
            color: #4b5563;
            font-size: 14px;
        }

        .footer a {
            color: #4f46e5;
            text-decoration: none;
            font-weight: 600;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .header {
                padding: 1rem;
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .header h1 {
                font-size: 1.25rem;
            }

            .header-right {
                justify-content: center;
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .header-btn {
                padding: 0.4rem 0.8rem;
                font-size: 13px;
            }

            .main-content {
                padding: 1rem;
            }

            .chatbot-container {
                border-radius: 12px;
                height: max(560px, calc(100svh - 150px));
                height: max(560px, calc(100dvh - 150px));
            }

            .footer {
                padding: 1rem;
            }

            .footer p {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 0.75rem;
            }

            .header h1 {
                font-size: 1.1rem;
            }

            .header img {
                width: 32px;
                height: 32px;
            }

            .header-btn {
                padding: 0.3rem 0.6rem;
                font-size: 12px;
            }

            .main-content {
                padding: 0.5rem;
            }

            .chatbot-container {
                border-radius: 8px;
            }
        }
