:root {
            /* Mastech Theme (Default) - matching BrickLabs index */
            --primary: #4A7BF7;
            --primary-dark: #3A62C4;
            --primary-light: #6B93F9;
            --accent: #4A7BF7;
            --header-bg: #153D64;
            --sidebar-bg: #ffffff;
            --nav-active-bg: #e8f4fc;
            --nav-hover-color: #4A7BF7;
            --gray-50: #f8f9fb;
            --gray-100: #f1f3f5;
            --gray-200: #e8eaed;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1a1a2e;
            --gray-900: #111827;
            --border-light: #e8eaed;
            --sidebar-width: 280px;
        }

        /* Databricks Theme */
        [data-theme="databricks"] {
            --primary: #FF3621;
            --primary-dark: #E62E1A;
            --primary-light: #FF6B4A;
            --accent: #FF3621;
            --header-bg: #1B3139;
            --nav-active-bg: #FFF5F3;
            --nav-hover-color: #FF3621;
        }

        [data-theme="databricks"] .header {
            background: linear-gradient(135deg, #1B3139 0%, #FF3621 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            background: white;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--gray-50);
            color: var(--gray-800);
            line-height: 1.6;
            margin: 0;
            height: calc(100vh / 0.9);
            overflow: hidden;
            zoom: 0.9;
        }

        /* Header - matching BrickLabs */
        .header {
            background: #153D64;
            color: #ffffff;
            padding: 0 40px;
            height: 80px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background 0.3s ease;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo {
            height: 45px;
            filter: brightness(0) invert(1);
        }

        .header-center {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-center h1 {
            font-size: 1.75rem;
            font-weight: 600;
            color: #ffffff;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        /* Instance Selector in Header - Rich UI */
        .instance-selector {
            position: relative;
        }

        .instance-trigger {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 10px;
            padding: 8px 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .instance-trigger:hover {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.3);
        }

        .instance-trigger.open {
            background: rgba(255,255,255,0.25);
            border-color: rgba(255,255,255,0.4);
        }

        .instance-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .instance-env {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .instance-name {
            font-size: 13px;
            font-weight: 600;
            color: white;
        }

        .instance-badge {
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            padding: 2px 6px;
            border-radius: 4px;
            letter-spacing: 0.5px;
        }

        .instance-badge.dev {
            background: #10B981;
            color: white;
        }

        .instance-badge.qa {
            background: #F59E0B;
            color: white;
        }

        .instance-badge.demo {
            background: #8B5CF6;
            color: white;
        }

        .instance-url {
            font-size: 10px;
            color: rgba(255,255,255,0.6);
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .instance-arrow {
            color: rgba(255,255,255,0.7);
            font-size: 10px;
            transition: transform 0.2s;
        }

        .instance-trigger.open .instance-arrow {
            transform: rotate(180deg);
        }

        .instance-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            min-width: 280px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            z-index: 100;
            overflow: hidden;
        }

        .instance-dropdown.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .instance-dropdown-header {
            padding: 12px 16px;
            background: var(--gray-50);
            border-bottom: 1px solid var(--border-light);
        }

        .instance-dropdown-header h4 {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .instance-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            cursor: pointer;
            transition: background 0.15s;
            border-bottom: 1px solid var(--border-light);
        }

        .instance-option:last-child {
            border-bottom: none;
        }

        .instance-option:hover {
            background: var(--gray-50);
        }

        .instance-option.selected {
            background: rgba(74, 123, 247, 0.08);
        }

        [data-theme="databricks"] .instance-option.selected {
            background: rgba(255, 54, 33, 0.08);
        }

        .instance-option-details {
            flex: 1;
        }

        .instance-option-name {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }

        .instance-option-name span {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800);
        }

        .instance-option-url {
            font-size: 11px;
            color: var(--gray-500);
        }

        .instance-option-check {
            color: var(--primary);
            font-size: 16px;
            opacity: 0;
        }

        .instance-option.selected .instance-option-check {
            opacity: 1;
        }

        /* Theme Toggle */
        .theme-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toggle-switch {
            position: relative;
            width: 40px;
            height: 22px;
            background: rgba(255,255,255,0.2);
            border-radius: 11px;
            border: none;
            cursor: pointer;
            padding: 0;
            transition: background 0.3s ease;
        }

        .toggle-switch:hover {
            background: rgba(255,255,255,0.3);
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

        [data-theme="databricks"] .toggle-switch::after {
            transform: translateX(18px);
        }

        [data-theme="databricks"] .toggle-switch {
            background: rgba(255,255,255,0.4);
        }

        .container {
            display: flex;
            margin-top: 80px;
            height: calc((100vh / 0.9) - 110px);
        }

        .footer {
            height: 30px;
            line-height: 30px;
            text-align: center;
            color: var(--gray-500);
            font-size: 0.75rem;
            border-top: 1px solid var(--border-light);
            background: white;
        }

        /* Left Sidebar - matching BrickLabs index */
        .sidebar {
            width: 280px;
            background: var(--gray-50);
            border-right: 1px solid var(--border-light);
            padding: 0;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .sidebar-back {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 16px 20px;
            color: var(--gray-600);
            text-decoration: none;
            font-size: 0.85rem;
            border-bottom: 1px solid var(--border-light);
            transition: background 0.2s, color 0.2s;
            background: white;
            flex-shrink: 0;
        }

        .sidebar-back:hover {
            background: var(--gray-100);
            color: var(--accent);
        }

        .sidebar-back svg {
            width: 16px;
            height: 16px;
        }

        .sidebar-section {
            margin-bottom: 0;
            padding: 16px 20px;
            background: white;
        }

        .sidebar-section:last-child {
            margin-bottom: 0;
        }

        .sidebar-section-label {
            font-size: 10px;
            font-weight: 600;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }

        /* Agent Selector in Sidebar */
        .agent-selector {
            position: relative;
            width: 100%;
        }

        .agent-trigger {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--gray-100);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            padding: 10px 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            overflow: hidden;
        }

        .agent-trigger:hover {
            background: var(--gray-200);
            border-color: var(--gray-300);
        }

        .agent-trigger.open {
            background: var(--gray-100);
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(74, 123, 247, 0.1);
        }

        [data-theme="databricks"] .agent-trigger.open {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 54, 33, 0.1);
        }

        .agent-trigger-icon {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .agent-trigger-icon svg {
            width: 18px;
            height: 18px;
        }

        .agent-trigger-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .agent-trigger-label {
            font-size: 9px;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 1px;
        }

        .agent-trigger-name {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray-800);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .agent-arrow {
            color: var(--gray-400);
            font-size: 9px;
            transition: transform 0.2s;
            flex-shrink: 0;
        }

        .agent-trigger.open .agent-arrow {
            transform: rotate(180deg);
        }

        .agent-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            width: 240px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            max-height: 400px;
            overflow-y: auto;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            z-index: 1000;
            border: 1px solid var(--border-light);
        }

        .agent-dropdown.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .agent-dropdown-header {
            padding: 10px 12px;
            background: var(--gray-50);
            border-bottom: 1px solid var(--border-light);
            position: sticky;
            top: 0;
        }

        .agent-dropdown-header h4 {
            font-size: 10px;
            font-weight: 600;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .agent-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            cursor: pointer;
            transition: background 0.15s;
            border-bottom: 1px solid var(--border-light);
        }

        .agent-option:last-child {
            border-bottom: none;
        }

        .agent-option:hover {
            background: var(--gray-50);
        }

        .agent-option.selected {
            background: rgba(74, 123, 247, 0.08);
        }

        [data-theme="databricks"] .agent-option.selected {
            background: rgba(255, 54, 33, 0.08);
        }

        .agent-option-icon {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .agent-option-icon svg {
            width: 16px;
            height: 16px;
        }

        .agent-option-details {
            flex: 1;
            min-width: 0;
        }

        .agent-option-name {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .agent-option-desc {
            font-size: 10px;
            color: var(--gray-500);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .agent-option-check {
            color: var(--primary);
            font-size: 12px;
            opacity: 0;
            flex-shrink: 0;
        }

        .agent-option.selected .agent-option-check {
            opacity: 1;
        }


        /* Sidebar Views */
        .sidebar-landing {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: visible;
            background: white;
        }

        .sidebar-landing.hidden {
            display: none;
        }

        .sidebar-chat {
            display: none;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow: hidden;
            background: white;
            padding: 16px 20px;
        }

        .sidebar-chat.active {
            display: flex;
        }

        /* Active Agent Display */
        .active-agent-card {
            background: var(--gray-100);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 16px;
            flex-shrink: 0;
        }

        .active-agent-header {
            font-size: 9px;
            font-weight: 600;
            color: var(--gray-400);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }

        .active-agent-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .active-agent-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .active-agent-icon svg {
            width: 20px;
            height: 20px;
        }

        .active-agent-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-800);
        }

        /* Sidebar Menu Items */
        .sidebar-menu {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-bottom: 20px;
            flex-shrink: 0;
        }

        .sidebar-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            color: var(--gray-600);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }

        .sidebar-menu-item:hover {
            background: var(--gray-100);
            color: var(--nav-hover-color);
        }

        .sidebar-menu-item.active {
            background: var(--nav-active-bg);
            color: var(--nav-hover-color);
        }

        .sidebar-menu-item svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        /* Recent Chats */
        .recent-chats-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        .recent-chats-header {
            font-size: 10px;
            font-weight: 600;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
            flex-shrink: 0;
        }

        .recent-chats {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }

        .new-chat-btn {
            flex-shrink: 0;
        }

        .chat-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            margin-bottom: 4px;
            position: relative;
        }

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

        .chat-item.active {
            background: var(--nav-active-bg);
        }

        .chat-item-icon {
            color: var(--gray-400);
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
        }

        .chat-item-icon svg {
            width: 14px;
            height: 14px;
        }

        .chat-item-details {
            flex: 1;
            min-width: 0;
        }

        .chat-item-title {
            font-size: 12px;
            font-weight: 500;
            color: var(--gray-700);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .chat-item-time {
            font-size: 10px;
            color: var(--gray-400);
        }

        .chat-item-menu {
            opacity: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: var(--gray-400);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .chat-item:hover .chat-item-menu {
            opacity: 1;
        }

        .chat-item-menu:hover {
            background: var(--gray-200);
            color: var(--gray-600);
        }

        .chat-item-dropdown {
            position: absolute;
            right: 0;
            top: 100%;
            background: white;
            border: 1px solid var(--border-light);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            min-width: 120px;
            z-index: 100;
            display: none;
        }

        .chat-item-dropdown.open {
            display: block;
        }

        .chat-item-dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            font-size: 12px;
            color: var(--gray-700);
            cursor: pointer;
            transition: background 0.15s;
        }

        .chat-item-dropdown-item:hover {
            background: var(--gray-50);
        }

        .chat-item-dropdown-item.delete {
            color: #EF4444;
        }

        .chat-item-dropdown-item.delete:hover {
            background: #FEF2F2;
        }

        .new-chat-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px;
            margin-top: auto;
            padding-top: 12px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .new-chat-btn:hover {
            background: var(--primary-dark);
        }

        /* In Development State */
        .agent-option.in-development {
            opacity: 0.5;
            pointer-events: none;
        }

        .agent-option.in-development .agent-option-name::after {
            content: ' (Coming Soon)';
            font-size: 9px;
            font-weight: 400;
            color: var(--gray-400);
        }

        /* Main Content */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 0;
        }

        /* Welcome Section - matching BrickLabs */
        .welcome-section {
            background: white;
            color: var(--gray-800);
            padding: 40px;
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-light);
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .welcome-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(74, 123, 247, 0.03) 0%, transparent 70%);
        }

        [data-theme="databricks"] .welcome-section::before {
            background: radial-gradient(circle at 50% 50%, rgba(255, 54, 33, 0.03) 0%, transparent 70%);
        }

        .welcome-section h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--gray-800);
        }

        .welcome-section h2 .tagline {
            font-size: 0.85rem;
            font-weight: 400;
            color: var(--gray-500);
            margin-left: 10px;
        }

        .welcome-header p {
            font-size: 0.95rem;
            color: var(--gray-600);
            line-height: 1.7;
            max-width: 800px;
            margin: 0;
        }

        /* Welcome Content Layout */
        .welcome-content {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .welcome-header {
            margin-bottom: 30px;
        }

        /* Feature Cards */
        .feature-cards {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

        .feature-card {
            background: var(--gray-50);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 24px;
            transition: all 0.2s;
        }

        .feature-card:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .feature-card-icon {
            width: 44px;
            height: 44px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 16px;
            transition: background 0.3s;
        }

        .feature-card-icon svg {
            width: 22px;
            height: 22px;
            stroke: white;
        }

        .feature-card h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 8px;
        }

        .feature-card p {
            font-size: 12px;
            color: var(--gray-500);
            line-height: 1.5;
            margin: 0;
        }

        /* Start Chat Button */
        .start-chat-container {
            display: flex;
            justify-content: center;
            padding-top: 20px;
            margin-top: auto;
        }

        .start-chat-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 16px 50px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 280px;
        }

        .start-chat-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .start-chat-btn span {
            display: inline-flex;
            align-items: center;
        }

        .start-chat-btn span svg {
            width: 20px;
            height: 20px;
        }

        .message-avatar svg {
            width: 18px;
            height: 18px;
        }

        .chat-item-dropdown-item span {
            display: inline-flex;
            align-items: center;
        }

        .chat-item-dropdown-item span svg {
            width: 14px;
            height: 14px;
        }

        /* Chat View */
        .chat-view {
            flex: 1;
            display: none;
            flex-direction: column;
            background: white;
            overflow: hidden;
        }

        .chat-view.active {
            display: flex;
        }

        .landing-view {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
        }

        .landing-view.hidden {
            display: none;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
        }

        .message {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            max-width: 800px;
        }

        .message.user {
            flex-direction: row-reverse;
            margin-left: auto;
        }

        .message-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .message.assistant .message-avatar {
            background: var(--primary);
            color: white;
            transition: background 0.3s ease;
        }

        .message.user .message-avatar {
            background: var(--gray-600);
            color: white;
        }

        .message-content {
            background: var(--gray-50);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 15px 20px;
            max-width: 600px;
        }

        .message.user .message-content {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .message-content p {
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .message-content h1, .message-content h2, .message-content h3 {
            margin: 12px 0 6px;
            font-size: 1rem;
            font-weight: 600;
        }

        .message-content ul, .message-content ol {
            margin: 6px 0;
            padding-left: 20px;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .message-content li { margin: 2px 0; }

        .message-content strong { font-weight: 600; }

        .message-content hr {
            border: none;
            border-top: 1px solid var(--border-light);
            margin: 10px 0;
        }

        .message-content code {
            background: var(--gray-100);
            padding: 2px 5px;
            border-radius: 4px;
            font-size: 0.85rem;
        }

        .message-content pre {
            background: var(--gray-100);
            padding: 10px;
            border-radius: 6px;
            overflow-x: auto;
            font-size: 0.85rem;
            margin: 8px 0;
        }

        .message-content pre code {
            background: none;
            padding: 0;
        }

        .chat-input-container {
            padding: 10px 20px;
            background: white;
            border-top: 1px solid var(--border-light);
        }

        .chat-input-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 800px;
            margin: 0 auto;
        }

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

        .attach-btn {
            position: absolute;
            left: 12px;
            width: 32px;
            height: 32px;
            background: transparent;
            color: var(--gray-400);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .attach-btn:hover {
            background: var(--gray-100);
            color: var(--gray-600);
        }

        .attach-btn svg {
            width: 18px;
            height: 18px;
        }

        .chat-input {
            width: 100%;
            padding: 14px 20px 14px 50px;
            border: 1px solid var(--border-light);
            border-radius: 12px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.2s;
        }

        .chat-input:focus {
            border-color: var(--primary);
        }

        .send-btn {
            width: 44px;
            height: 44px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .send-btn:hover {
            background: var(--primary-dark);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--gray-100);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--gray-400);
        }
