/* 现代化简洁风格 - 类似Gemini设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #ffffff;
    color: #202124;
    min-height: 100vh;
    line-height: 1.6;
    overflow: hidden;
}

/* 主布局 */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧边栏 */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: #e8f0fe;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dadce0;
    position: relative;
    transition: width 0.3s ease, min-width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

/* PC端侧边栏折叠状态 */
.sidebar.collapsed {
    width: 0;
    min-width: 0;
    opacity: 0;
    border-right: none;
}

/* 侧边栏关闭按钮（仅移动端） */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: #dadce0;
    color: #202124;
}

.sidebar-close-btn svg {
    width: 20px;
    height: 20px;
}

/* 移动端菜单按钮（仅移动端显示） */
.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    color: #5f6368;
    transition: all 0.2s;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* PC端侧边栏折叠/展开按钮 */
.sidebar-toggle-btn {
    display: none;
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 50%;
    cursor: pointer;
    padding: 4px;
    color: #5f6368;
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.sidebar-toggle-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* 当侧边栏折叠时，按钮箭头向左；展开时，箭头向右 */
.sidebar.collapsed ~ .main-content .sidebar-toggle-btn svg {
    transform: rotate(180deg);
}

/* PC端显示侧边栏折叠按钮 */
@media (min-width: 769px) {
    .sidebar-toggle-btn {
        display: flex;
    }
    
    /* 移动端菜单按钮在PC端隐藏 */
    .mobile-menu-btn {
        display: none !important;
    }
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: 1px solid #dadce0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
}

.sidebar-content {
    flex: 1;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-chat-btn {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #202124;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.new-chat-btn:hover {
    background: #f1f3f4;
}

.new-chat-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.new-chat-btn span {
    white-space: nowrap;
}

.sidebar-btn {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #202124;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background: #f1f3f4;
}

.sidebar-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-btn span {
    white-space: nowrap;
}


/* 历史对话区域 */
.chat-history-section {
    flex: 1;
    overflow-y: auto;
    margin-top: 16px;
    min-height: 0;
}

.history-header {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.history-select-btn,
.history-delete-selected-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #5f6368;
    transition: all 0.2s;
    flex-shrink: 0;
}

.history-select-btn:hover,
.history-delete-selected-btn:hover {
    background: #dadce0;
    color: #202124;
}

.history-select-btn.active {
    background: #e8f0fe;
    color: #1a73e8;
}

.history-delete-selected-btn.has-selection {
    color: #ea4335;
}

.history-delete-selected-btn.has-selection:hover {
    background: rgba(234, 67, 53, 0.1);
}

.history-select-btn svg,
.history-delete-selected-btn svg {
    width: 18px;
    height: 18px;
}

.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    gap: 8px;
}

.history-item-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    color: #5f6368;
    transition: all 0.2s;
}

.history-item-checkbox svg {
    width: 18px;
    height: 18px;
}

.history-item-checkbox.checked {
    color: #1a73e8;
}

.history-item-checkbox:hover {
    background: #dadce0;
}

.history-item:hover {
    background: #f1f3f4;
}

.history-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.history-item-title {
    font-size: 14px;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.history-item-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #5f6368;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    flex-shrink: 0;
}

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

.history-item-delete:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.history-item-delete svg {
    width: 16px;
    height: 16px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

/* AI Ops按钮 - 右上角 */
.ai-ops-top-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ff9800;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.ai-ops-top-btn:hover {
    background: #fb8c00;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.ai-ops-top-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-container.centered {
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.chat-messages {
    flex: 1;
    padding: 64px 24px 24px 24px;
    overflow-y: auto;
    background: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
    max-width: 100%;
}

@media (min-width: 768px) {
    .chat-messages {
        padding: 72px 24px 32px 24px;
    }
}

.chat-container.centered .chat-messages {
    flex: 0 1 auto;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    min-height: auto;
}

.chat-container.centered .chat-input-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    flex-shrink: 0;
}

.chat-container:not(.centered) .chat-messages {
    justify-content: flex-start;
    align-items: stretch;
}

.welcome-greeting {
    text-align: center;
    color: #1a73e8;
    font-size: 1.5rem;
    padding: 20px;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.chat-container.centered .welcome-greeting {
    opacity: 1;
    visibility: visible;
    order: -1;
}

.chat-container:not(.centered) .welcome-greeting {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}

.welcome-greeting p {
    margin: 0;
}

.welcome-message {
    text-align: center;
    color: #1a73e8;
    font-size: 1.5rem;
    padding: 60px 20px;
    font-weight: 400;
}

/* 消息样式 */
.message {
    margin-bottom: 24px;
    display: flex;
    width: 100%;
}

.message.user {
    flex-direction: column;
    align-items: flex-end;
}

/* AI消息容器 - 包含图标和内容 */
.message.assistant {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
}

/* AI消息图标 - 蓝色四角星 */
.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.message.assistant .message-avatar {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* 消息内容容器 */
.message-content-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* AI消息的包装器需要减去头像宽度 */
.message.assistant .message-content-wrapper {
    flex: 1;
    max-width: calc(100% - 44px);
}

/* 用户消息的包装器不需要限制宽度，让它根据内容自适应 */
.message.user .message-content-wrapper {
    max-width: 70%;
    align-items: flex-end;
    flex: 0 1 auto;
    width: auto;
}

.message-content {
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.message.user .message-content {
    background: #e8eaed;
    color: #202124;
    border-bottom-right-radius: 4px;
    font-weight: 400;
    width: 100%;
}

.message.assistant .message-content {
    background: #ffffff;
    color: #202124;
    border: none;
    border-bottom-left-radius: 4px;
    box-shadow: none;
}

/* Markdown渲染样式 */
.message-content h1, .message-content h2, .message-content h3,
.message-content h4, .message-content h5, .message-content h6 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.25;
}

.message-content h1 { font-size: 1.5em; border-bottom: 1px solid #e8eaed; padding-bottom: 8px; }
.message-content h2 { font-size: 1.3em; border-bottom: 1px solid #e8eaed; padding-bottom: 6px; }
.message-content h3 { font-size: 1.15em; }
.message-content h4 { font-size: 1em; }

.message-content p {
    margin-top: 0;
    margin-bottom: 10px;
}

.message-content ul, .message-content ol {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 24px;
}

.message-content li {
    margin-bottom: 4px;
}

.message-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: #202124;
}

.message-content pre {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid #e8eaed;
}

.message-content pre code {
    background: none;
    padding: 0;
    font-size: 0.85em;
    line-height: 1.5;
}

.message-content blockquote {
    border-left: 4px solid #e8eaed;
    padding-left: 16px;
    margin: 10px 0;
    color: #5f6368;
    font-style: italic;
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

.message-content th, .message-content td {
    border: 1px solid #e8eaed;
    padding: 8px 12px;
    text-align: left;
}

.message-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.message-content a {
    color: #1a73e8;
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

.message-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.message-content hr {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 16px 0;
}

.message-time {
    font-size: 0.75rem;
    color: #9aa0a6;
    margin-top: 4px;
    padding: 0 4px;
    font-weight: 400;
}

.message.user .message-time {
    text-align: right;
    padding-right: 4px;
}

.message.assistant .message-time {
    text-align: left;
    padding-left: 4px;
}

/* 流式消息动画 */
.streaming {
    position: relative;
}

.streaming::after {
    content: '▋';
    animation: blink 1.2s infinite;
    color: #1a73e8;
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 加载消息样式 */
.loading-message-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner-icon {
    display: inline-flex;
    align-items: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 输入区域 */
.chat-input-container {
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 快捷问题区域 */
.quick-questions {
    max-width: 800px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .quick-questions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-question-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #5f6368;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-question-item:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.quick-question-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.quick-question-item span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-group-wrapper {
    max-width: 800px;
    width: 100%;
}

.tools-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-btn, .file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5f6368;
    transition: color 0.2s, background 0.2s;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.tools-btn:hover, .file-btn:hover {
    color: #202124;
    background: #f1f3f4;
}

.tools-icon, .file-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
    flex-shrink: 0;
}

.tools-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(60, 64, 67, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 1000;
    padding: 8px;
}

.tools-btn-wrapper.active .tools-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tools-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    color: #202124;
    font-size: 14px;
}

.tools-menu-item:hover {
    background: #f1f3f4;
}

.tools-menu-item svg {
    width: 20px;
    height: 20px;
    color: #5f6368;
    flex-shrink: 0;
}

.tools-menu-item span {
    white-space: nowrap;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #dadce0;
    border-radius: 24px;
    background: #ffffff;
    transition: all 0.2s;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-wrapper:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.input-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
    font-weight: 400;
    padding: 0;
    min-height: 24px;
}

.message-input::placeholder {
    color: #9aa0a6;
}

.mode-selector-wrapper {
    position: relative;
}

.mode-selector-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #5f6368;
    font-weight: 400;
    transition: color 0.2s;
    white-space: nowrap;
}

.mode-selector-btn:hover {
    color: #202124;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.mode-selector-wrapper.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mode-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(60, 64, 67, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 1000;
}

.mode-selector-wrapper.active .mode-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    border-bottom: 1px solid #dadce0;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f1f3f4;
}

.dropdown-item.active {
    background: rgba(26, 115, 232, 0.1);
}

.dropdown-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.dropdown-item-sub {
    font-size: 12px;
    color: #5f6368;
}

.badge-new {
    background: #1a73e8;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.send-btn-circle {
    width: 36px;
    height: 36px;
    background: #f1f3f4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn-circle:hover {
    background: #e8eaed;
    color: #202124;
}

.send-btn-circle:disabled {
    background: #f1f3f4;
    color: #dadce0;
    cursor: not-allowed;
}

.send-btn-circle svg {
    width: 20px;
    height: 20px;
}

/* 自定义滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 文件上传相关 */
.upload-status {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
    text-align: center;
}

.upload-status.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.upload-status.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.upload-status.uploading {
    background: rgba(25, 118, 210, 0.15);
    color: #1976d2;
    border: 1px solid rgba(25, 118, 210, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(25, 118, 210, 0.3);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 智能运维消息样式 */
.aiops-message {
    max-width: 90%;
}

.aiops-message .message-content {
    max-width: 100%;
    background: rgba(26, 115, 232, 0.05);
    border: 1px solid rgba(26, 115, 232, 0.2);
}

/* 详情折叠区域 */
.aiops-details {
    margin-bottom: 16px;
    width: 100%;
}

.details-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(26, 115, 232, 0.05);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #1a73e8;
    font-weight: 500;
}

.details-toggle:hover {
    background: rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.3);
}

.details-toggle.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.details-toggle.expanded .toggle-icon {
    transform: rotate(90deg);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.details-content.expanded {
    max-height: 2000px;
    padding: 16px;
}

.detail-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(26, 115, 232, 0.03);
    border-left: 3px solid #1a73e8;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #202124;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #1a73e8;
    font-weight: 600;
}

/* 加载遮罩层样式 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(26, 115, 232, 0.2);
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #666;
}

.auth-buttons-section {
    padding: 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #dadce0;
}

.auth-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    transition: all 0.2s;
}

.auth-btn:hover {
    background: #f1f3f4;
}

.login-btn {
    color: #1a73e8;
    border-color: #1a73e8;
}

.login-btn:hover {
    background: rgba(26, 115, 232, 0.05);
}

.register-btn {
    background: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

.register-btn:hover {
    background: #1557b0;
}

.user-profile-section {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dadce0;
    margin-top: auto;
}

.user-info-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.user-management-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s;
    text-decoration: none;
}

.user-management-link:hover {
    background: #f1f3f4;
    color: #1a73e8;
}

.user-management-link svg {
    width: 20px;
    height: 20px;
}

.user-management-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-management-btn:hover {
    background: #f1f3f4;
    color: #1a73e8;
}

.user-management-btn svg {
    width: 20px;
    height: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* 认证模态框 */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: #f1f3f4;
    color: #202124;
}

.auth-modal-close svg {
    width: 20px;
    height: 20px;
}

/* 用户管理模态框样式 */
.user-management-modal {
    max-width: 800px;
    width: 90%;
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dadce0;
}

.user-management-header h2 {
    margin: 0;
    font-size: 24px;
    color: #202124;
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.refresh-btn svg {
    width: 20px;
    height: 20px;
}

.user-list-container {
    max-height: 600px;
    overflow-y: auto;
}

.user-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #1a73e8;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.user-username {
    font-size: 14px;
    color: #5f6368;
}

.user-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #e6f4ea;
    color: #1e8e3e;
}

.status-inactive {
    background: #fce8e6;
    color: #d93025;
}

.user-card-body {
    margin-bottom: 12px;
}

.user-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.meta-value {
    font-size: 14px;
    color: #202124;
}

.user-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.stats-loading,
.stats-error {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.user-card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: white;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #5f6368;
    font-size: 16px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #dadce0;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #5f6368;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: #1557b0;
}

.auth-submit-btn:disabled {
    background: #dadce0;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    /* 移动端菜单按钮显示 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 侧边栏默认隐藏在移动端 */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
    }

    /* 侧边栏关闭按钮显示 */
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-header {
        padding: 16px;
        padding-right: 48px; /* 为关闭按钮留出空间 */
    }

    .sidebar-title {
        font-size: 16px;
    }

    .sidebar-content {
        padding: 12px 8px;
        overflow-y: auto;
    }

    .chat-history-section {
        margin-top: 8px;
        flex: 1;
        overflow-y: auto;
    }

    /* 遮罩层，用于点击关闭侧边栏 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* 主内容区移动端适配 */
    .main-content {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .history-header {
        padding: 6px 8px;
        font-size: 11px;
    }

    .history-item {
        padding: 6px 8px;
    }

    .history-item-title {
        font-size: 13px;
    }

    /* AI Ops按钮移动端适配 */
    .ai-ops-top-btn {
        top: 8px;
        right: 8px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .ai-ops-top-btn svg {
        width: 16px;
        height: 16px;
    }

    .chat-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
    }

    .chat-messages {
        flex: 1;
        padding: 60px 12px 12px 12px !important;
        overflow-y: auto;
        min-height: 0;
    }

    .message {
        margin-bottom: 16px;
    }

    .message.assistant {
        gap: 8px;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
    }

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

    .message.assistant .message-content-wrapper {
        max-width: calc(100% - 36px);
    }

    .message.user .message-content-wrapper {
        max-width: 85%;
    }

    .message-content {
        padding: 10px 14px;
        font-size: 0.9rem;
        max-width: 100% !important;
    }

    .welcome-greeting {
        font-size: 1.2rem;
        padding: 16px;
    }

    /* 快捷问题移动端适配 */
    .quick-questions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 2px;
    }

    .quick-question-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .quick-question-item svg {
        width: 14px;
        height: 14px;
    }

    /* 输入框移动端适配 */
    .chat-input-container {
        padding: 12px;
        flex-shrink: 0;
        background: #ffffff;
        position: relative;
        z-index: 10;
    }

    .input-group-wrapper {
        max-width: 100%;
        position: relative;
    }

    .input-wrapper {
        padding: 10px 12px;
        position: relative;
    }

    .message-input {
        font-size: 15px;
        min-height: 20px;
        touch-action: manipulation;
    }

    .tools-btn,
    .file-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .tools-icon,
    .file-icon {
        width: 18px;
        height: 18px;
    }

    .send-btn-circle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        min-width: 36px;
        min-height: 36px;
        touch-action: manipulation;
    }

    .send-btn-circle svg {
        width: 18px;
        height: 18px;
        pointer-events: none;
    }

    .toggle-label {
        font-size: 12px;
    }

    .toggle-slider {
        width: 32px;
        height: 18px;
    }

    .toggle-slider::before {
        width: 14px;
        height: 14px;
    }

    .web-search-toggle input[type="checkbox"]:checked + .toggle-slider::before {
        transform: translateX(14px);
    }

    /* 认证模态框移动端适配 */
    .auth-modal-content {
        width: 95%;
        padding: 24px 20px;
        max-width: 95%;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group input {
        padding: 10px;
    }

    .auth-submit-btn {
        padding: 10px;
        font-size: 15px;
    }

    /* 用户资料区域移动端适配 */
    .user-profile-section {
        padding: 12px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .user-name {
        font-size: 13px;
    }

    .auth-buttons-section {
        padding: 12px;
    }

    .auth-btn {
        padding: 6px;
        font-size: 13px;
    }

    /* Markdown内容移动端适配 */
    .message-content h1 { font-size: 1.3em; }
    .message-content h2 { font-size: 1.2em; }
    .message-content h3 { font-size: 1.1em; }
    .message-content pre {
        padding: 8px;
        font-size: 0.8em;
    }

    /* 通知移动端适配 */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* 加载遮罩层移动端适配 */
    .loading-content {
        padding: 30px 40px;
        width: 90%;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 1rem;
    }

    .loading-subtext {
        font-size: 0.85rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .sidebar {
        max-height: 40vh;
    }

    .sidebar-content {
        max-height: calc(40vh - 50px);
    }

    .main-content {
        height: 60vh;
    }

    .quick-questions {
        grid-template-columns: 1fr;
    }

    .message.user .message-content-wrapper {
        max-width: 90%;
    }

    .message-content {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .ai-ops-top-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .ai-ops-top-btn span {
        display: none;
    }

    .ai-ops-top-btn svg {
        width: 18px;
        height: 18px;
    }

    .welcome-greeting {
        font-size: 1rem;
        padding: 12px;
    }

    .history-select-btn,
    .history-delete-selected-btn {
        padding: 2px;
    }

    .history-select-btn svg,
    .history-delete-selected-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* 权限控制样式 */
.tools-menu-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.ai-ops-top-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* 认证按钮 loading 状态 */
.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #dadce0;
}

.auth-submit-btn:disabled:hover {
    background: #dadce0;
    transform: none;
}

.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 发送按钮禁用状态 */
.send-btn-circle:disabled {
    background: #f1f3f4;
    color: #dadce0;
    cursor: not-allowed;
}

/* AI Ops 按钮 loading 状态 */
.ai-ops-top-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.ai-ops-top-btn.loading .loading-spinner-icon {
    animation: spin 1s linear infinite;
}

/* 文件上传菜单项 loading 状态 */
.tools-menu-item.uploading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.tools-menu-item.uploading .loading-spinner-icon {
    animation: spin 1s linear infinite;
}

/* 用户管理页面按钮 loading 状态 */
.um-refresh-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.um-refresh-btn.loading .loading-spinner-icon {
    animation: spin 1s linear infinite;
}

.um-action-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.um-action-btn.loading .loading-spinner-icon {
    animation: spin 1s linear infinite;
}

/* 历史对话删除按钮 loading 状态 */
.history-item-delete.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.history-item-delete.loading .loading-spinner-icon {
    animation: spin 1s linear infinite;
}

.history-delete-selected-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.history-delete-selected-btn.loading .loading-spinner-icon {
    animation: spin 1s linear infinite;
}

/* Loading 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner-icon {
    animation: spin 1s linear infinite;
}

/* 联网搜索开关样式 */
.web-search-toggle-wrapper {
    display: flex;
    align-items: center;
}

.web-search-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background-color 0.2s;
}

.web-search-toggle:hover {
    background: #f1f3f4;
}

.web-search-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: #dadce0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.web-search-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #1a73e8;
}

.web-search-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
    white-space: nowrap;
}

/* 知识库检索开关样式 */
.knowledge-base-toggle-wrapper {
    display: flex;
    align-items: center;
}

.knowledge-base-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background-color 0.2s;
}

.knowledge-base-toggle:hover {
    background: #f1f3f4;
}

.knowledge-base-toggle input[type="checkbox"] {
    display: none;
}

.knowledge-base-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #9c27b0;
}

.knowledge-base-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(16px);
}
