:root {
            /* WBTS Theme Colors */
            --chat-bg: #ffffff;
            --chat-sidebar-bg: #f8fafc;
            --chat-input-bg: #ffffff;
            --chat-text: #334155;
            --chat-text-secondary: #64748b;
            --chat-border: #e2e8f0;
            --chat-hover: #f1f5f9;
            --chat-primary: #061497;
            --chat-primary-light: #667eea;
            --chat-primary-hover: #1e40af;
            --chat-secondary: #e8b537;
            --chat-accent: #667eea;
        }

        /* Override base platform styles for chatbot */
        body {
            background: var(--chat-bg) !important;
            color: var(--chat-text) !important;
            overflow: hidden;
        }

        .main-content {
            background: var(--chat-bg) !important;
            color: var(--chat-text) !important;
            padding: 0 !important;
            margin: 0 !important;
            min-height: calc(100vh - 180px);
            height: calc(100vh - 180px);
            overflow: hidden;
            position: relative;
        }

        .chatbot-container {
            display: flex;
            height: 100%;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        /* Sidebar */
        .chat-sidebar {
            width: 260px;
            background: var(--chat-sidebar-bg);
            border-right: 1px solid var(--chat-border);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
        }

        .sidebar-header {
            padding: 1rem;
            border-bottom: 1px solid var(--chat-border);
            background: white;
        }

        .new-chat-btn {
            width: 100%;
            padding: 0.75rem;
            background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-light) 100%);
            border: none;
            color: white;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
            font-size: 0.875rem;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(6, 20, 151, 0.2);
        }

        .new-chat-btn:hover {
            background: linear-gradient(135deg, var(--chat-primary-hover) 0%, var(--chat-primary) 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(6, 20, 151, 0.3);
        }

        .conversations-list {
            flex: 1;
            overflow-y: auto;
            padding: 0.5rem;
        }

        .conversation-item {
            padding: 0.75rem;
            margin-bottom: 0.25rem;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background 0.2s;
            position: relative;
        }

        .conversation-item:hover {
            background: var(--chat-hover);
        }

        .conversation-item.active {
            background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
            border-left: 3px solid var(--chat-primary);
            padding-left: calc(0.75rem - 3px);
        }

        .conversation-title {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 0.875rem;
            color: var(--chat-text);
        }

        .conversation-delete {
            opacity: 0;
            transition: opacity 0.2s;
            padding: 0.25rem;
            cursor: pointer;
            color: var(--chat-text-secondary);
        }

        .conversation-item:hover .conversation-delete {
            opacity: 1;
        }

        /* Main Chat Area */
        .chat-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            align-items: center;
            justify-content: space-between;
            padding: 0;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            width: 100%;
            max-width: 768px;
            margin: 0 auto;
        }

        .message {
            display: flex;
            gap: 1rem;
            padding: 1.5rem 0;
            animation: fadeIn 0.3s;
        }

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

        .message.user {
            background: transparent;
        }

        .message.assistant {
            background: rgba(255, 255, 255, 0.03);
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.875rem;
            flex-shrink: 0;
        }

        .message.user .message-avatar {
            background: var(--chat-primary);
            color: white;
        }

        .message.assistant .message-avatar {
            background: #5436da;
            color: white;
        }

        .message-content {
            flex: 1;
            line-height: 1.75;
            color: var(--chat-text);
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .message-content p {
            margin: 0.5rem 0;
        }

        .message-content p:first-child {
            margin-top: 0;
        }

        .message-content p:last-child {
            margin-bottom: 0;
        }

        /* Input Area - Centered */
        .chat-input-container {
            padding: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            width: 100%;
            max-width: 768px;
            margin: 0 auto;
        }

        .chat-input-wrapper {
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        
        /* Force hide all resize handles - comprehensive rules */
        textarea.chat-input,
        .chat-input-wrapper textarea,
        #chatInput,
        textarea#chatInput {
            resize: none !important;
            -webkit-resize: none !important;
            -moz-resize: none !important;
            -ms-resize: none !important;
            overflow-y: auto !important;
        }
        
        /* Hide resize handles with multiple selectors */
        textarea.chat-input::-webkit-resizer,
        #chatInput::-webkit-resizer,
        .chat-input-wrapper textarea::-webkit-resizer {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
        }
        
        textarea.chat-input::-moz-resizer,
        #chatInput::-moz-resizer {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
        }

        .chat-input {
            width: 100%;
            padding: 0.625rem 2.75rem 0.625rem 1rem;
            background: var(--chat-input-bg);
            border: 2px solid var(--chat-border);
            border-radius: 10px;
            color: var(--chat-text);
            font-size: 0.95rem;
            resize: none !important;
            min-height: 44px;
            max-height: 150px;
            height: 44px;
            line-height: 1.5;
            font-family: inherit;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: height 0.2s ease;
            overflow-y: auto;
            overflow-x: hidden;
            /* Remove resize handle completely */
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
        }
        
        /* Hide resize handle in all browsers */
        .chat-input::-webkit-resizer {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }
        
        .chat-input::-moz-resizer {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }
        
        /* Additional browser-specific hiding */
        .chat-input::-ms-resizer {
            display: none !important;
        }
        
        textarea.chat-input {
            resize: none !important;
        }

        .chat-input:focus {
            outline: none;
            border-color: var(--chat-primary-light);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        }

        .chat-input::placeholder {
            color: var(--chat-text-secondary);
        }

        .send-button {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-light) 100%);
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            box-shadow: 0 2px 6px rgba(6, 20, 151, 0.3);
            font-size: 0.75rem;
            flex-shrink: 0;
        }

        .send-button:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--chat-primary-hover) 0%, var(--chat-primary) 100%);
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 3px 10px rgba(6, 20, 151, 0.4);
        }

        .send-button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: translateY(-50%);
        }

        .empty-state {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
        }

        .empty-state h1 {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--chat-primary);
            background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .empty-state p {
            color: var(--chat-text-secondary);
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            max-width: 600px;
        }

        .suggestion-btn {
            padding: 0.75rem 1.25rem;
            background: white;
            border: 2px solid var(--chat-border);
            border-radius: 8px;
            color: var(--chat-text);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.875rem;
            font-weight: 500;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .suggestion-btn:hover {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(232, 181, 55, 0.1) 100%);
            border-color: var(--chat-primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
        }

        .loading-indicator {
            display: none;
            padding: 1rem;
            text-align: center;
            color: var(--chat-text-secondary);
        }

        .loading-indicator.active {
            display: block;
        }

        .typing-indicator {
            display: inline-flex;
            gap: 0.25rem;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: var(--chat-primary-light);
            border-radius: 50%;
            animation: typing 1.4s infinite;
        }

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

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

        @keyframes typing {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-10px); }
        }

        /* Hide scrollbars */
        .chat-messages,
        .chat-sidebar,
        .conversations-list {
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
        }

        .chat-messages::-webkit-scrollbar,
        .chat-sidebar::-webkit-scrollbar,
        .conversations-list::-webkit-scrollbar {
            display: none; /* WebKit browsers (Chrome, Safari, Edge) */
            width: 0;
            height: 0;
        }

        /* Anonymous user - full width chat */
        .chatbot-container:not(:has(.chat-sidebar)) .chat-main {
            width: 100%;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .chat-sidebar {
                display: none;
            }
        }

        /* Development Modal */
        .dev-modal-overlay {
            display: none !important;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }

        .dev-modal-overlay.active {
            display: flex !important;
        }

        .dev-modal {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
            position: relative;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .dev-modal-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .dev-modal-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-light) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        .dev-modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--chat-primary);
            margin: 0;
        }

        .dev-modal-body {
            margin-bottom: 1.5rem;
        }

        .dev-modal-message {
            color: var(--chat-text);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .dev-modal-links {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .dev-modal-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(232, 181, 55, 0.1) 100%);
            border: 2px solid var(--chat-border);
            border-radius: 10px;
            text-decoration: none;
            color: var(--chat-text);
            transition: all 0.2s;
            font-weight: 500;
        }

        .dev-modal-link:hover {
            border-color: var(--chat-primary-light);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(232, 181, 55, 0.15) 100%);
            transform: translateX(5px);
            color: var(--chat-primary);
        }

        .dev-modal-link i {
            font-size: 1.25rem;
            color: var(--chat-primary-light);
        }

        .dev-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 32px;
            height: 32px;
            border: none;
            background: var(--chat-hover);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--chat-text-secondary);
            transition: all 0.2s;
        }

        .dev-modal-close:hover {
            background: var(--chat-border);
            color: var(--chat-text);
        }

        @media (max-width: 480px) {
            .dev-modal {
                padding: 1.5rem;
            }

            .dev-modal-title {
                font-size: 1.25rem;
            }
        }
