        /* Animated gradient backgrounds */
        @keyframes hero-gradient-animation-light {
            0% {
                --c-0: hsla(192, 56%, 59%, 1);
                --y-0: 27%;
                --s-start-0: 16%;
                --s-end-0: 78%;
                --x-0: 37%;
                --y-1: 34%;
                --c-1: hsla(239, 63%, 52%, 1);
                --x-1: 37%;
                --s-start-1: 1%;
                --s-end-1: 76%;
                --s-start-2: 4%;
                --s-end-2: 75%;
                --c-2: hsla(223, 73%, 65%, 1);
                --x-2: 20%;
                --y-2: 96%;
                --s-start-3: 5%;
                --s-end-3: 53%;
                --x-3: 77%;
                --y-3: 74%;
                --c-3: hsla(107, 35%, 81%, 1);
                --y-4: 40%;
                --s-start-4: 10%;
                --s-end-4: 73%;
                --c-4: hsla(110, 57%, 96%, 1);
                --x-4: 89%;
            }
            100% {
                --c-0: hsla(149, 51%, 92%, 1);
                --y-0: 2%;
                --s-start-0: 18%;
                --s-end-0: 69%;
                --x-0: 41%;
                --y-1: 73%;
                --c-1: hsla(201, 69%, 54%, 1);
                --x-1: 0%;
                --s-start-1: 12%;
                --s-end-1: 88%;
                --s-start-2: 9%;
                --s-end-2: 56%;
                --c-2: hsla(205, 39%, 83%, 1);
                --x-2: 24%;
                --y-2: 15%;
                --s-start-3: 5%;
                --s-end-3: 87%;
                --x-3: 9%;
                --y-3: 15%;
                --c-3: hsla(146, 34%, 89%, 1);
                --y-4: 50%;
                --s-start-4: 0%;
                --s-end-4: 89%;
                --c-4: hsla(124, 48%, 95%, 1);
                --x-4: 84%;
            }
        }

        @keyframes hero-gradient-animation-dark {
            0% {
                --x-0: 1%;
                --s-start-0: 5.202913631633715%;
                --s-end-0: 53.01682626841344%;
                --c-0: hsla(212.37, 81%, 25%, 0.61);
                --y-0: 0%;
            }
            100% {
                --x-0: 1%;
                --s-start-0: 5%;
                --s-end-0: 53.00384867488662%;
                --c-0: hsla(212.37, 81%, 25%, 0.32);
                --y-0: 0%;
            }
        }

        /* CSS Properties for animations */
        @property --x-0 { syntax: '<percentage>'; inherits: false; initial-value: 1%; }
        @property --s-start-0 { syntax: '<percentage>'; inherits: false; initial-value: 5.202913631633715%; }
        @property --s-end-0 { syntax: '<percentage>'; inherits: false; initial-value: 53.01682626841344%; }
        @property --c-0 { syntax: '<color>'; inherits: false; initial-value: hsla(212.37, 81%, 25%, 0.61); }
        @property --y-0 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
        @property --y-1 { syntax: '<percentage>'; inherits: false; initial-value: 34%; }
        @property --c-1 { syntax: '<color>'; inherits: false; initial-value: hsla(239, 63%, 52%, 1); }
        @property --x-1 { syntax: '<percentage>'; inherits: false; initial-value: 37%; }
        @property --s-start-1 { syntax: '<percentage>'; inherits: false; initial-value: 1%; }
        @property --s-end-1 { syntax: '<percentage>'; inherits: false; initial-value: 76%; }
        @property --s-start-2 { syntax: '<percentage>'; inherits: false; initial-value: 4%; }
        @property --s-end-2 { syntax: '<percentage>'; inherits: false; initial-value: 75%; }
        @property --c-2 { syntax: '<color>'; inherits: false; initial-value: hsla(223, 73%, 65%, 1); }
        @property --x-2 { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
        @property --y-2 { syntax: '<percentage>'; inherits: false; initial-value: 96%; }
        @property --s-start-3 { syntax: '<percentage>'; inherits: false; initial-value: 5%; }
        @property --s-end-3 { syntax: '<percentage>'; inherits: false; initial-value: 53%; }
        @property --x-3 { syntax: '<percentage>'; inherits: false; initial-value: 77%; }
        @property --y-3 { syntax: '<percentage>'; inherits: false; initial-value: 74%; }
        @property --c-3 { syntax: '<color>'; inherits: false; initial-value: hsla(107, 35%, 81%, 1); }
        @property --y-4 { syntax: '<percentage>'; inherits: false; initial-value: 40%; }
        @property --s-start-4 { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
        @property --s-end-4 { syntax: '<percentage>'; inherits: false; initial-value: 73%; }
        @property --c-4 { syntax: '<color>'; inherits: false; initial-value: hsla(110, 57%, 96%, 1); }
        @property --x-4 { syntax: '<percentage>'; inherits: false; initial-value: 89%; }

        :root {
            /* Light Mode Colors */
            --bg-gradient-light: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
            --panel-bg-light: rgba(255, 255, 255, 0.9);
            --panel-border-light: rgba(0, 0, 0, 0.1);
            --text-primary-light: #1e293b;
            --text-secondary-light: #64748b;
            --text-tertiary-light: #94a3b8;
            
            /* Dark Mode Colors */
            --bg-gradient-dark: linear-gradient(180deg, #0f172a00 0%, #1e293b00 100%);
            --panel-bg-dark: rgba(30, 41, 59, 0);
            --panel-border-dark: rgba(255, 255, 255, 0.1);
            --text-primary-dark: #ffffff;
            --text-secondary-dark: #e2e8f0;
            --text-tertiary-dark: #94a3b8;
            
            /* Accent Colors */
            --accent-primary: #3b82f6;
            --accent-secondary: #10b981;
            --accent-hover: rgba(59, 130, 246, 0.1);
            --success-color: #10b981;
            --error-color: #ef4444;
            --warning-color: #f59e0b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            min-height: 100vh;
            overflow: hidden;
            position: relative;
            color: var(--text-primary-light);
            transition: color 0.3s ease;
            
            /* Beautiful multi-gradient animated background for LIGHT mode */
            --c-0: hsla(192, 56%, 59%, 1);
            --y-0: 27%;
            --x-0: 37%;
            --y-1: 34%;
            --c-1: hsla(239, 63%, 52%, 1);
            --x-1: 37%;
            --c-2: hsla(223, 73%, 65%, 1);
            --x-2: 20%;
            --y-2: 96%;
            --x-3: 77%;
            --y-3: 74%;
            --c-3: hsla(107, 35%, 81%, 1);
            --y-4: 40%;
            --c-4: hsla(110, 57%, 96%, 1);
            --x-4: 89%;
            
            /* Simple white background for light mode */
            background: white;
        }

        body.dark-mode {
            color: var(--text-primary-dark);
            
            /* Simple animated gradient for DARK mode */
            --x-0: 1%;
            --c-0: hsla(212.37, 81%, 25%, 0.61);
            --y-0: 0%;
            background-color: hsla(213.18, 65%, 6%, 1);
            background-image: radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0));
            animation: hero-gradient-animation-dark 10s linear infinite alternate;
            background-blend-mode: normal;
        }

        .container {
            display: flex;
            height: 100vh;
            position: relative;
            width: 100%;
        }

        /* Settings Sidebar */
        .sidebar {
            width: 320px;
            background: var(--panel-bg-light);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-right: 1px solid var(--panel-border-light);
            padding: 24px;
            overflow-y: auto;
            transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
            transform: translateX(-100%);
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            z-index: 1000;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        }

        body.dark-mode .sidebar {
            background: var(--panel-bg-dark);
            border-right: 1px solid var(--panel-border-dark);
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        }

        .sidebar.open {
            transform: translateX(0);
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--panel-border-light);
            transition: border-color 0.3s ease;
        }

        body.dark-mode .sidebar-header {
            border-bottom: 1px solid var(--panel-border-dark);
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary-light);
            transition: color 0.3s ease;
        }

        body.dark-mode .sidebar-title {
            color: var(--text-primary-dark);
        }

        .close-sidebar {
            background: none;
            border: none;
            color: var(--text-secondary-light);
            font-size: 24px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s ease, color 0.3s ease;
        }

        body.dark-mode .close-sidebar {
            color: var(--text-secondary-dark);
        }

        .close-sidebar:hover {
            opacity: 1;
        }

        .sidebar-section {
            margin-bottom: 24px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .sidebar-section:hover {
            background: rgba(255, 255, 255, 0.7);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
            transform: translateY(-1px);
        }

        body.dark-mode .sidebar-section {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        body.dark-mode .sidebar-section:hover {
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        }

        .section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            font-size: 14px;
            font-weight: 600;
            color: #4b5563;
            text-transform: none;
            letter-spacing: normal;
            opacity: 1;
            transition: color 0.3s ease;
        }

        .section-title::before {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            background-color: #6b7280;
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
        }

        .section-title.profile::before {
            -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
        }

        .section-title.chat::before {
            -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>');
        }

        .section-title.settings::before {
            -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"></circle><path d="M12 1v6m0 6v6m4.22-13.22l4.24 4.24M1.54 8.96l4.24 4.24m12.44 0l4.24 4.24M1.54 15.04l4.24-4.24"></path></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"></circle><path d="M12 1v6m0 6v6m4.22-13.22l4.24 4.24M1.54 8.96l4.24 4.24m12.44 0l4.24 4.24M1.54 15.04l4.24-4.24"></path></svg>');
        }

        .section-title.info::before {
            -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>');
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>');
        }


        body.dark-mode .section-title {
            color: #d1d5db;
        }

        body.dark-mode .section-title::before {
            background-color: #9ca3af;
        }

        .settings-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .setting-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.02);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border-radius: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
            margin-bottom: 8px;
        }

        .setting-item:last-child {
            margin-bottom: 0;
        }

        body.dark-mode .setting-item {
            background: rgba(255, 255, 255, 0.05);
        }

        .setting-item:hover {
            background: rgba(0, 0, 0, 0.05);
            transform: translateX(2px);
        }

        body.dark-mode .setting-item:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .setting-label {
            color: #4b5563;
            font-size: 13px;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        body.dark-mode .setting-label {
            color: #d1d5db;
        }


        .subsection-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.02);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        body.dark-mode .subsection-header {
            background: rgba(255, 255, 255, 0.03);
        }

        .subsection-title {
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        body.dark-mode .subsection-title {
            color: #9ca3af;
        }

        .subsection-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            color: #6b7280;
        }

        body.dark-mode .subsection-count {
            background: rgba(255, 255, 255, 0.08);
            color: #9ca3af;
        }







        .setting-toggle {
            width: 44px;
            height: 24px;
            background: rgba(100, 116, 139, 0.3);
            border-radius: 12px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        body.dark-mode .setting-toggle {
            background: rgba(255, 255, 255, 0.2);
        }

        .setting-toggle.active {
            background: var(--accent-secondary);
        }

        .setting-toggle::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            top: 2px;
            left: 2px;
            transition: all 0.3s ease;
        }

        .setting-toggle.active::after {
            transform: translateX(20px);
        }

        .account-info {
            padding: 16px;
            background: rgba(0, 0, 0, 0.02);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        body.dark-mode .account-info {
            background: rgba(255, 255, 255, 0.05);
        }

        .account-avatar {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 18px;
            margin-bottom: 12px;
        }

        .account-name {
            color: var(--text-primary-light);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
            transition: color 0.3s ease;
        }

        body.dark-mode .account-name {
            color: var(--text-primary-dark);
        }

        .account-email {
            color: var(--text-secondary-light);
            font-size: 13px;
            transition: color 0.3s ease;
        }

        body.dark-mode .account-email {
            color: var(--text-secondary-dark);
        }

        /* Session Status Badge */
        .session-status {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(16, 185, 129, 0.1);
            border-radius: 8px;
            margin-bottom: 16px;
        }

        .session-status-dot {
            width: 8px;
            height: 8px;
            background: var(--success-color);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .session-status-text {
            font-size: 12px;
            color: var(--success-color);
            font-weight: 500;
        }

        /* Main Chat Area */
        .chat-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            min-height: 100vh;
            width: 100%;
        }

        .settings-toggle {
            position: fixed;
            top: 20px;
            left: 20px;
            background: var(--panel-bg-light);
            backdrop-filter: blur(20px);
            border: 1px solid var(--panel-border-light);
            color: var(--text-secondary-light);
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 12px;
            border-radius: 12px;
            opacity: 0.9;
            z-index: 999;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        /* Hamburger line styles */
        .settings-toggle .hamburger-line {
            width: 20px;
            height: 2px;
            background-color: #64748b; /* Fallback color */
            background-color: var(--text-secondary-light);
            margin: 3px 0;
            border-radius: 1px;
            transition: all 0.2s ease;
            display: block;
        }
        
        body.dark-mode .settings-toggle .hamburger-line {
            background-color: #e2e8f0; /* Fallback color */
            background-color: var(--text-secondary-dark);
        }
        
        .settings-toggle:hover .hamburger-line {
            background-color: #1e293b; /* Fallback color */
            background-color: var(--text-primary-light);
        }
        
        body.dark-mode .settings-toggle:hover .hamburger-line {
            background-color: #ffffff; /* Fallback color */
            background-color: var(--text-primary-dark);
        }

        body.dark-mode .settings-toggle {
            background: var(--panel-bg-dark);
            border: 1px solid var(--panel-border-dark);
            color: var(--text-secondary-dark);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .settings-toggle:hover {
            opacity: 1;
            background: var(--accent-hover);
            transform: translateY(-1px);
        }

        body.dark-mode .settings-toggle:hover {
            background: rgba(255, 255, 255, 0.15);
        }


        /* API Status Indicator */
        .api-status {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--panel-bg-light);
            backdrop-filter: blur(20px);
            border: 1px solid var(--panel-border-light);
            border-radius: 12px;
            font-size: 12px;
            z-index: 999;
            transition: all 0.3s ease;
        }

        body.dark-mode .api-status {
            background: var(--panel-bg-dark);
            border: 1px solid var(--panel-border-dark);
        }

        .api-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .api-status.connected .api-status-dot {
            background: var(--success-color);
        }

        .api-status.disconnected .api-status-dot {
            background: var(--error-color);
        }

        .api-status.checking .api-status-dot {
            background: var(--warning-color);
            animation: pulse 1s infinite;
        }

        /* Welcome Content */
        #welcomeContent {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            max-width: 700px;
            padding: 0 20px;
            /* Adjust for input area at bottom */
            margin-top: -70px;
        }
        
        .welcome-wrapper {
            /* Center the welcome card above message input */
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: calc(100vh - 140px); /* Account for input container height */
            position: absolute;
            top: 0;
            left: 0;
        }
        
        .welcome-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            width: 100%;
            padding: 40px 20px;
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Old animation styles - removed to prevent conflicts */

        .welcome-text-content {
            z-index: 2;
            position: relative;
        }

        .welcome-greeting {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary-light);
            margin-bottom: 18px;
            margin-top: 15px;
            line-height: 1.3;
            display: block;
        }

        body.dark-mode .welcome-greeting {
            color: var(--text-primary-dark);
        }

        .welcome-subtext {
            font-size: 27px;
            color: var(--text-secondary-light);
            margin-bottom: 45px;
            line-height: 1.4;
            font-weight: 500;
        }

        body.dark-mode .welcome-subtext {
            color: var(--text-secondary-dark);
        }

        .welcome-features {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            margin-top: 20px;
        }

        .welcome-feature {
            padding: 12px 24px;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 20px;
            font-size: 19px;
            color: #ffffff;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .welcome-feature:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
        }

        /* Messages Area */
        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 80px 20px 140px 20px !important; /* Even padding for proper centering - with !important to override cache */
            display: none;
            flex-direction: column;
            align-items: center; /* Center all messages */
            gap: 24px;
            scroll-behavior: smooth;
            width: 100%;
            max-width: none;
            margin: 0;
        }

        .messages-container.active {
            display: flex !important;
            align-items: center; /* Center horizontally */
            justify-content: flex-start; /* Start from top */
        }

        .messages-container::-webkit-scrollbar {
            width: 8px;
        }

        .messages-container::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.397);
        }

        body.dark-mode .messages-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0);
        }

        .messages-container::-webkit-scrollbar-thumb {
            background: var(--text-tertiary-light);
            border-radius: 4px;
        }

        body.dark-mode .messages-container::-webkit-scrollbar-thumb {
            background: var(--text-tertiary-dark);
        }

        /* Enhanced Floating Messages */
        .message {
            display: flex;
            position: relative;
            animation: messageFloat 0.6s ease-out;
            margin-bottom: 16px;
            width: 100%;
            max-width: min(800px, 90vw); /* Responsive max-width */
        }

        @keyframes messageFloat {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .message.user {
            justify-content: flex-end;
        }

        .message.assistant {
            justify-content: flex-start;
        }

        .message-bubble {
            max-width: 94%;
            min-width: 200px;
            width: fit-content;
            padding: 20px 24px;
            border-radius: 24px;
            position: relative;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.05),
                0 2px 8px rgba(0, 0, 0, 0.03);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateZ(0);
            overflow: visible;
        }

        body.dark-mode .message-bubble {
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .message-bubble:hover {
            transform: translateY(-2px) scale(1.01);
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.08),
                0 6px 20px rgba(0, 0, 0, 0.06),
                0 3px 12px rgba(0, 0, 0, 0.04);
        }

        body.dark-mode .message-bubble:hover {
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.3),
                0 6px 20px rgba(0, 0, 0, 0.15),
                0 3px 12px rgba(0, 0, 0, 0.08);
        }

        .message.user .message-bubble {
            background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.25) 0%, 
                rgba(99, 102, 241, 0.3) 100%);
            border: 1px solid rgba(59, 130, 246, 0.5);
            color: var(--text-primary-light);
            border-bottom-right-radius: 8px;
        }

        body.dark-mode .message.user .message-bubble {
            background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.3) 0%, 
                rgba(99, 102, 241, 0.35) 100%);
            border: 1px solid rgba(59, 130, 246, 0.5);
            color: var(--text-primary-dark);
        }

        .message.assistant .message-bubble {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.98) 0%, 
                rgba(248, 250, 252, 1) 100%);
            border: 1px solid rgba(226, 232, 240, 0.8);
            color: var(--text-primary-light);
            border-bottom-left-radius: 8px;
        }

        body.dark-mode .message.assistant .message-bubble {
            background: linear-gradient(135deg, 
                rgba(30, 41, 59, 0.98) 0%, 
                rgba(51, 65, 85, 1) 100%);
            border: 1px solid rgba(71, 85, 105, 0.6);
            color: var(--text-primary-dark);
        }

        .message-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        }

        body.dark-mode .message-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .message-logo {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }

        .message-sender-name {
            font-size: 14px;
            font-weight: 600;
            opacity: 0.9;
            color: var(--text-secondary-light);
        }

        body.dark-mode .message-sender-name {
            color: var(--text-secondary-dark);
        }
        
        /* Role badges in chat messages */
        .role-badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-left: 6px;
            vertical-align: middle;
        }
        
        .role-badge.admin {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .role-badge.superadmin {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .message.user .message-header {
            justify-content: flex-end;
        }

        .message.user .message-sender-name {
            color: #3b82f6;
        }

        body.dark-mode .message.user .message-sender-name {
            color: #60a5fa;
        }

        .message-content {
            line-height: 1.7;
            font-size: 16px;
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: pre-wrap;
            max-width: 100%;
        }

        .message-content h3, .message-content h4 {
            margin-top: 16px;
            margin-bottom: 8px;
        }

        .message-content ul, .message-content ol {
            margin-left: 20px;
            margin-top: 8px;
            margin-bottom: 8px;
        }

        .message-content strong {
            font-weight: 600;
        }

        .message-content p {
            margin: 0.5em 0;
            word-wrap: break-word;
        }

        .message-content code {
            background: rgba(0, 0, 0, 0.05);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 14px;
            word-break: break-all;
        }

        body.dark-mode .message-content code {
            background: rgba(255, 255, 255, 0.1);
        }

        .message-content pre {
            background: rgba(0, 0, 0, 0.05);
            padding: 12px;
            border-radius: 8px;
            overflow-x: auto;
            max-width: 100%;
        }

        body.dark-mode .message-content pre {
            background: rgba(255, 255, 255, 0.05);
        }

        .message-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 12px;
            padding-top: 8px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.dark-mode .message-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .message-time {
            font-size: 11px;
            opacity: 0.6;
            color: var(--text-tertiary-light);
        }

        body.dark-mode .message-time {
            color: var(--text-tertiary-dark);
        }

        .message-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .action-btn {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: var(--text-tertiary-light);
            cursor: pointer;
            padding: 6px 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            font-size: 12px;
            opacity: 0.7;
        }

        body.dark-mode .action-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-tertiary-dark);
        }

        .action-btn:hover {
            opacity: 1;
            background: rgba(0, 0, 0, 0.08);
            transform: scale(1.05);
        }

        body.dark-mode .action-btn:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .action-btn.liked {
            color: var(--success-color);
            background: rgba(16, 185, 129, 0.1);
            opacity: 1;
        }

        .action-btn.disliked {
            color: var(--error-color);
            background: rgba(239, 68, 68, 0.1);
            opacity: 1;
        }

        .action-btn.copied {
            color: var(--success-color);
            background: rgba(16, 185, 129, 0.1);
            opacity: 1;
        }
        
        /* Simplify button styles */
        .simplify-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 8px 16px;
            font-weight: 500;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }
        
        .simplify-btn:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .simplify-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .simplify-btn.simplified {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            cursor: default;
        }
        
        body.dark-mode .simplify-btn {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        }
        
        body.dark-mode .simplify-btn:hover {
            background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
        }
        
        body.dark-mode .simplify-btn.simplified {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        
        .simplified-badge {
            display: inline-block;
            padding: 4px 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .spin {
            animation: spin 1s linear infinite;
        }

        /* Thinking Indicator with Custom Animation */
        .thinking-indicator {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            min-width: 200px;
            width: fit-content;
        }
        
        .message.assistant .thinking-indicator {
            justify-content: flex-start;
        }
        
        .message.assistant .message-bubble {
            width: fit-content;
            min-width: 250px;
        }

        .thinking-indicator lottie-player {
            flex-shrink: 0;
        }

        .thinking-text {
            font-size: 15px;
            color: var(--text-secondary-light);
            font-weight: 500;
            white-space: nowrap;
        }

        body.dark-mode .thinking-text {
            color: var(--text-secondary-dark);
        }

        /* Logo Styles */
        .logo-image {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .welcome-logo {
            width: 200px;
            height: 200px;
            object-fit: contain;
            margin-bottom: 30px;
            animation: fadeIn 0.8s ease-out;
        }
        
        .welcome-animation-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 0;
            position: relative;
        }
        
        .welcome-animation {
            animation: fadeIn 0.8s ease-out;
            position: relative !important;
            top: auto !important;
            left: auto !important;
            transform: none !important;
        }
        
        .welcome-name-logo {
            width: 250px;
            height: auto;
            object-fit: contain;
            margin-top: -25px; /* Tight spacing to animation above */
            margin-bottom: 20px;
            animation: fadeIn 0.8s ease-out;
        }

        .sidebar .account-avatar {
            background: transparent;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar .account-avatar img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .logo-light, .logo-dark {
            transition: opacity 0.3s ease;
        }

        /* Hide/show logos based on theme */
        body:not(.dark-mode) .logo-dark {
            display: none !important;
        }

        body.dark-mode .logo-light {
            display: none !important;
        }

        body.dark-mode .logo-dark {
            display: block !important;
        }

        /* Input Area */
        .input-container {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 740px;
            padding: 20px;
            padding-bottom: 40px;
            background: transparent;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        /* Education Level Toggle */
        .education-toggle-container {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            max-width: 700px;
            margin-bottom: 15px;
            padding: 0;
            justify-content: flex-start;
            position: relative;
            z-index: 10;
        }
        
        .toggle-switch {
            position: relative;
            width: 44px;
            height: 24px;
            cursor: pointer;
        }
        
        .toggle-track {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #808080;
            border-radius: 12px;
            transition: background 0.3s ease;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .toggle-thumb {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .toggle-switch.active .toggle-track {
            background: #22c55e;
        }
        
        .toggle-switch.active .toggle-thumb {
            transform: translateX(20px);
        }
        
        body.dark-mode .toggle-track {
            background: #606060;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        body.dark-mode .toggle-switch.active .toggle-track {
            background: #16a34a;
        }
        
        .toggle-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary-light);
            user-select: none;
            transition: opacity 0.3s ease;
        }
        
        body.dark-mode .toggle-label {
            color: var(--text-primary-dark);
        }
        
        .toggle-text-option.fade-in {
            opacity: 1;
        }

        /* Old toggle styles - replaced with Lottie animation
        .education-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            cursor: pointer;
        }

        .education-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        } */

        /* Old toggle slider styles - replaced with Lottie animation
        .toggle-slider {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #808080;
            border-radius: 13px;
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5px;
            overflow: hidden;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 24px;
            left: 3px;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
            border-radius: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25),
                        0 1px 2px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.5);
            z-index: 2;
        }
        
        .toggle-state-text {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            z-index: 1;
            position: relative;
            user-select: none;
            transition: opacity 0.3s ease;
        }
        
        .toggle-state-text.off {
            margin-left: 2px;
        }
        
        .toggle-state-text.on {
            margin-right: 2px;
            opacity: 0;
        }
        
        .education-toggle input:checked ~ .toggle-slider .toggle-state-text.off {
            opacity: 0;
        }
        
        .education-toggle input:checked ~ .toggle-slider .toggle-state-text.on {
            opacity: 1;
        }

        .education-toggle input:checked + .toggle-slider {
            background: #22c55e;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .education-toggle input:checked + .toggle-slider:before {
            transform: translateX(23px) translateY(-50%);
            background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
        }

        /* Removed toggle labels - using external text now */

        .education-toggle-hint {
            font-size: 12px;
            color: var(--text-tertiary-light);
            padding: 5px 14px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 0, 0, 0.08);
            white-space: nowrap;
            transition: opacity 0.2s ease;
            font-weight: 500;
        }

        /* Dark mode education toggle */
        body.dark-mode .toggle-slider {
            background: #606060;
            border: 1px solid rgba(0, 0, 0, 0.3);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        body.dark-mode .education-toggle input:checked + .toggle-slider {
            background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3),
                        0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        body.dark-mode .toggle-slider:before {
            background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3),
                        0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        body.dark-mode .education-toggle input:checked + .toggle-slider:before {
            background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
        }
        End of old toggle styles */

        /* Responsive adjustment for education toggle */
        @media (max-width: 768px) {
            .education-toggle-container {
                margin-bottom: 8px;
            }
            
            .education-toggle {
                width: 46px;
                height: 24px;
            }
            
            .toggle-slider:before {
                height: 18px;
                width: 22px;
            }
            
            .education-toggle input:checked + .toggle-slider:before {
                transform: translateX(21px) translateY(-50%);
            }
            
            .toggle-state-text {
                font-size: 9px;
            }
            
            .toggle-text {
                font-size: 12px;
            }
            
            .education-toggle-hint {
                font-size: 11px;
                padding: 3px 10px;
            }
        }

        .input-wrapper {
            display: flex;
            gap: 12px;
            align-items: flex-end;
            max-width: 700px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 30px;
            padding: 8px 8px 8px 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0);
        }

        body.dark-mode .input-wrapper {
            background: rgba(30, 41, 59, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .message-input {
            flex: 1;
            background: rgba(225, 225, 225, 0);
            border: none;
            outline: none;
            padding: 12px 0;
            color: var(--text-primary-light);
            resize: none;
            max-height: 120px;
            font-family: inherit;
            line-height: 1.4;
            font-size: 16px;
        }

        body.dark-mode .message-input {
            color: var(--text-primary-dark);
        }

        .message-input::placeholder {
            color: var(--text-tertiary-light);
            font-weight: 400;
        }

        body.dark-mode .message-input::placeholder {
            color: var(--text-tertiary-dark);
        }

        .send-button {
            background: linear-gradient(135deg, #FFA922, #FF8C00) !important;
            border: none !important;
            border-radius: 50% !important;
            width: 40px !important;
            height: 40px !important;
            padding: 0 !important;
            cursor: pointer;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(255, 149, 0, 0.2) !important;
            flex-shrink: 0;
            font-size: 0 !important; /* Hide any text */
            color: transparent !important; /* Make text invisible */
        }

        .send-button:hover:not(:disabled) {
            background: linear-gradient(135deg, #FFA922, #FF8C00) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(255, 149, 0, 0.3) !important;
        }

        .send-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .send-button svg {
            width: 20px;
            height: 20px;
            fill: white !important;
            color: white !important;
        }

        /* Toast Notifications */
        .toast {
            position: fixed;
            bottom: 140px;
            right: 20px;
            background: var(--panel-bg-light);
            border: 1px solid var(--panel-border-light);
            border-radius: 12px;
            padding: 12px 20px;
            backdrop-filter: blur(25px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            z-index: 10000;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-primary-light);
            font-size: 14px;
            font-weight: 500;
        }

        body.dark-mode .toast {
            background: var(--panel-bg-dark);
            border: 1px solid var(--panel-border-dark);
            color: var(--text-primary-dark);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast.success {
            border-left: 4px solid var(--success-color);
        }

        .toast.error {
            border-left: 4px solid var(--error-color);
        }

        .toast.warning {
            border-left: 4px solid var(--warning-color);
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .sidebar {
                width: 280px;
            }

            .api-status {
                top: 60px;
                right: 10px;
                padding: 6px 12px;
                font-size: 11px;
            }

            #welcomeContent {
                margin-top: -60px; /* Less adjustment on mobile */
                padding: 0 15px;
            }
            
            .welcome-content {
                padding: 20px;
            }

            .welcome-animation {
                top: -60px;
            }

            .welcome-animation lottie-player {
                width: 90px !important;
                height: 90px !important;
            }

            .welcome-greeting {
                font-size: 18px;
            }

            .welcome-subtext {
                font-size: 16px;
                margin-bottom: 20px;
            }

            .messages-container {
                padding: 80px 10px 140px 10px; /* Minimal padding on mobile */
            }

            .message {
                max-width: calc(100% - 20px); /* Account for container padding */
            }

            .message-bubble {
                max-width: 95%;
                min-width: 150px;
                padding: 16px 20px;
            }

            .input-container {
                padding: 15px;
            }

            .input-wrapper {
                max-width: 100%;
            }

            .message-input {

/* Additional fixes for welcome screen and message positioning */
#welcomeContent[style*="display: none"] {
    display: none !important;
}

/* Removed duplicate - already defined above */

/* Message alignment handled in main styles */

.message.assistant .thinking-indicator {
    width: auto;
}

/* Responsive improvements for larger screens */
@media (min-width: 1200px) {
    .messages-container {
        padding: 80px 5% 140px 5%; /* Percentage-based padding */
    }
    
    .message {
        max-width: min(900px, 85vw); /* Responsive with viewport */
    }
    
    .message-bubble {
        max-width: 65%; /* Standard width on desktop */
    }
}

@media (min-width: 1600px) {
    .messages-container {
        padding: 80px 8% 140px 8%; /* Percentage-based for ultra-wide */
    }
    
    .message {
        max-width: min(1000px, 80vw); /* Responsive with viewport */
    }
    
    .message-bubble {
        max-width: 60%; /* Standard width on large desktop */
    }
}

/* Font Size Selector */
.font-size-selector {
    display: flex;
    gap: 8px;
}

.font-size-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-secondary-light) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.font-size-btn:hover {
    background: rgba(255, 149, 0, 0.2) !important;
    border-color: rgba(255, 149, 0, 0.3) !important;
    transform: none !important;
    box-shadow: none !important;
}

.font-size-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

body.dark-mode .font-size-btn {
    background: rgba(255, 255, 255, 0.49) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary-dark) !important;
}

body.dark-mode .font-size-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Font Size Classes */
body.font-size-small .message-content {
    font-size: 14px;
    line-height: 1.5;
}

body.font-size-medium .message-content {
    font-size: 16px;
    line-height: 1.6;
}

body.font-size-large .message-content {
    font-size: 18px;
    line-height: 1.7;
}

/* Version Labels */
.sidebar-version {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: rgba(107, 114, 128, 0.6);
    letter-spacing: 0.5px;
    padding: 8px;
}

body.dark-mode .sidebar-version {
    color: rgba(156, 163, 175, 0.6);
}
