/* === 基础变量 === */
:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1b26;
    --bg-tertiary: #24253a;
    --bg-input: #2a2b3d;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #2e2f45;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --azure-color: #0078d4;
    --aws-color: #ff9900;
    --gcp-color: #4285f4;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --sidebar-width: 280px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

/* === 布局 === */
.app-container {
    display: flex;
    height: 100vh;
}

/* === 侧边栏 === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 0;
    border: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 15px;
    font-weight: 600;
}

.new-chat-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.new-chat-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* === 会话历史 === */
.session-history-section {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-section {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 38px;
    border: 1px solid transparent;
}

.session-item:hover {
    background: var(--bg-tertiary);
}

.session-item.active {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
}

.session-item .session-icon {
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.session-item .session-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.session-item .session-title {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.session-item .session-time {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.session-item .session-delete {
    background: none;
    border: none;
    color: transparent;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: var(--transition);
}

.session-item:hover .session-delete {
    color: var(--text-muted);
}

.session-item .session-delete:hover {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.session-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
}

/* === 可折叠区域 === */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 8px;
}

.collapsible-header:hover {
    color: var(--text-secondary);
}

.collapse-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.collapsible.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-body {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 500px;
    opacity: 1;
}

.collapsible.collapsed .collapsible-body {
    max-height: 0;
    opacity: 0;
}

/* 快捷提示词 */
.quick-prompts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prompt-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-btn:hover {
    background: var(--bg-input);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

/* 知识源管理 */
.knowledge-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.ks-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.ks-input:focus {
    border-color: var(--accent-blue);
}

.ks-add-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.ks-add-btn:hover {
    background: var(--accent-blue-hover);
}

.knowledge-list {
    max-height: 150px;
    overflow-y: auto;
}

.ks-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.ks-item:hover {
    background: var(--bg-tertiary);
}

.ks-item .ks-tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.ks-tag.azure { background: rgba(0,120,212,0.2); color: var(--azure-color); }
.ks-tag.aws { background: rgba(255,153,0,0.2); color: var(--aws-color); }
.ks-tag.gcp { background: rgba(66,133,244,0.2); color: var(--gcp-color); }
.ks-tag.custom { background: rgba(139,92,246,0.2); color: #8b5cf6; }

.ks-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
}

.ks-remove:hover {
    color: var(--error-color);
}

.sidebar-footer {
    padding: 10px 12px;
    flex-shrink: 0;
}

.btn-clear {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 7px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* === 主内容 === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.menu-btn:hover {
    background: var(--bg-tertiary);
}

.top-bar h1 {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge.azure { background: rgba(0,120,212,0.15); color: var(--azure-color); }
.badge.aws { background: rgba(255,153,0,0.15); color: var(--aws-color); }
.badge.gcp { background: rgba(66,133,244,0.15); color: var(--gcp-color); }

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.user-name {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--error-color);
    color: #fff;
    border-color: var(--error-color);
}

/* === 聊天区域 === */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.chat-messages {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 消息 */
.message {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--accent-blue);
    color: white;
    font-size: 14px;
}

.message.assistant .message-avatar {
    background: var(--bg-tertiary);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-text {
    line-height: 1.7;
    font-size: 14px;
    color: var(--text-primary);
}

.message-text p {
    margin-bottom: 8px;
}

.message-text ul, .message-text ol {
    margin: 8px 0;
    padding-left: 24px;
}

.message-text li {
    margin-bottom: 4px;
}

.message-text strong {
    color: var(--accent-blue);
}

.message-text code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
}

.message-text pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
}

.message-text pre code {
    background: none;
    padding: 0;
}

/* Markdown 表格 */
.message-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 13px;
}

.message-text th {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    padding: 8px 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
}

.message-text td {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.message-text tr:nth-child(even) {
    background: rgba(59, 130, 246, 0.04);
}

.message-text tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* 工具调用标签 */
.tool-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tool-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* PPT下载 */
.ppt-downloads {
    margin-top: 12px;
}

.ppt-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.ppt-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* 加载动画 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* === 输入区域 === */
.input-area {
    padding: 12px 24px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 12px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 150px;
    line-height: 1.5;
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.input-wrapper button {
    background: var(--accent-blue);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.input-wrapper button:hover {
    background: var(--accent-blue-hover);
}

.input-wrapper button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === MCP 数据源选择器 === */
.mcp-selector {
    max-width: 900px;
    margin: 6px auto 0;
}

.mcp-selector-header {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    user-select: none;
    width: fit-content;
}

.mcp-selector-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mcp-selector-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.mcp-selector-count {
    font-size: 11px;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.12);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.mcp-selector-toggle {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.mcp-selector-toggle.expanded {
    transform: rotate(90deg);
}

.mcp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 4px 2px;
    animation: fadeSlideIn 0.15s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mcp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.mcp-chip:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.06);
}

.mcp-chip.active {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-weight: 500;
}

.mcp-chip .mcp-chip-icon {
    font-size: 13px;
}

.mcp-chip .mcp-chip-check {
    font-size: 11px;
    opacity: 0;
    width: 0;
    transition: all 0.15s;
}

.mcp-chip.active .mcp-chip-check {
    opacity: 1;
    width: 13px;
}

/* === 文件上传按钮 === */
.upload-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.upload-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
}

/* === 附件预览区 === */
.attachments-preview {
    max-width: 900px;
    margin: 0 auto 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachments-preview:empty {
    display: none;
    margin-bottom: 0;
}

.attachment-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 8px 4px 4px;
    font-size: 12px;
    color: var(--text-secondary);
    animation: fadeIn 0.2s ease;
    max-width: 200px;
}

.attachment-chip.image-chip {
    padding: 3px;
}

.attachment-chip .att-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.attachment-chip .att-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.attachment-chip .att-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.attachment-chip .att-size {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.attachment-chip .att-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.attachment-chip .att-remove:hover {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

/* === 消息中的附件显示 === */
.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.msg-att-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.msg-att-image:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.2);
}

.msg-att-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.msg-att-doc .doc-icon {
    font-size: 16px;
}

/* === 图片灯箱 === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* 拖拽上传高亮 */
.input-area.drag-over .input-wrapper {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* === 控制台日志面板 === */
.console-panel {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 300px;
    transition: max-height 0.3s ease;
    flex-shrink: 0;
}

.console-panel.collapsed {
    max-height: 36px;
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    cursor: pointer;
    user-select: none;
    background: #161824;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.console-header:hover {
    background: #1c1e30;
}

.console-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.console-badge {
    background: var(--accent-blue);
    color: white;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}

.console-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
}

.console-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.console-toggle {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.console-panel.collapsed .console-toggle {
    transform: rotate(180deg);
}

.console-body {
    flex: 1;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.console-panel.collapsed .console-body {
    max-height: 0;
    overflow: hidden;
}

.console-logs {
    padding: 8px 12px;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 250px;
    background: #0d0e17;
}

.console-entry {
    display: flex;
    gap: 8px;
    padding: 1px 0;
    border-bottom: 1px solid rgba(46, 47, 69, 0.3);
}

.console-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 80px;
}

.log-level {
    flex-shrink: 0;
    min-width: 52px;
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 20px;
}

.console-entry.debug .log-level {
    color: #8b8b8b;
    background: rgba(139, 139, 139, 0.1);
}

.console-entry.info .log-level {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.console-entry.warning .log-level {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.console-entry.error .log-level {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.log-module {
    color: #a78bfa;
    flex-shrink: 0;
}

.log-msg {
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
}

.console-entry.error .log-msg {
    color: #fca5a5;
}

.console-entry.warning .log-msg {
    color: #fde68a;
}

.console-separator {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border-color);
}

/* === 响应式 === */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    .header-badges {
        display: none;
    }
}

/* === 滚动条 === */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
