:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-main);
}

/* 顶部导航 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* 渐变文字 - 蓝 */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 渐变按钮 */
.btn-gradient {
    /* background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); */
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* 功能卡片 */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover .feature-arrow {
    color: var(--primary-blue);
    transform: translate(4px, -50%);
}

.feature-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 14px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

.feature-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

/* 状态脉冲点 */
.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* 用户下拉菜单 */
.user-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-arrow.rotate {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-blue);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* 模态框 */
.modal-overlay {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Toast */
.custom-toast {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 30px;
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.4);
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 底部链接 */
.footer a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-blue);
}

/* 响应式微调 */
@media (max-width: 576px) {
    .feature-card {
        padding: 22px;
    }

    .feature-arrow {
        display: none;
    }
}

/* =========================================================
   应用页面（ldy.html / doubao_chat / image_model）亮色系覆盖
   ========================================================= */
.app-light-theme {
    background: #f8fafc !important;
    color: #0f172a;
}

/* 左侧边栏 */
.app-light-theme .left-sidebar,
.app-light-theme .sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.app-light-theme .left-sidebar .sidebar-logo,
.app-light-theme .sidebar-logo {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.app-light-theme .left-sidebar .sidebar-logo:hover,
.app-light-theme .sidebar-logo:hover {
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.35) !important;
}

.app-light-theme .left-sidebar .sidebar-btn,
.app-light-theme .sidebar-btn {
    color: #64748b !important;
    background: transparent !important;
}

.app-light-theme .left-sidebar .sidebar-btn:hover,
.app-light-theme .sidebar-btn:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.app-light-theme .left-sidebar .sidebar-btn.active,
.app-light-theme .sidebar-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

/* 头部标题 */
.app-light-theme .header {
    color: #0f172a !important;
}

.app-light-theme .header h1 {
    color: #0f172a !important;
}

.app-light-theme .header p {
    color: #64748b !important;
    opacity: 1 !important;
}

/* 左侧面板 */
.app-light-theme .left-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.app-light-theme .left-panel h1 {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.app-light-theme .left-panel .subtitle {
    color: #64748b !important;
}

.app-light-theme .form-group label {
    color: #334155 !important;
}

.app-light-theme .form-group textarea,
.app-light-theme .form-group input {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .form-group textarea:focus,
.app-light-theme .form-group input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .form-group .hint {
    color: #94a3b8 !important;
}

.app-light-theme .api-config {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .api-config h3 {
    color: #0f172a !important;
}

/* 右侧预览区 */
.app-light-theme .right-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.app-light-theme .preview-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .preview-header h2 {
    color: #0f172a !important;
}

.app-light-theme .device-switcher {
    background: #f1f5f9 !important;
}

.app-light-theme .device-btn {
    color: #64748b !important;
    background: transparent !important;
}

.app-light-theme .device-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

.app-light-theme .action-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .action-btn:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .action-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.app-light-theme .preview-container {
    background: #f8fafc !important;
}

/* 生成按钮、设置按钮、主要按钮 */
.app-light-theme .generate-btn,
.app-light-theme .settings-btn,
.app-light-theme .command-use-btn,
.app-light-theme .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.app-light-theme .generate-btn:hover,
.app-light-theme .settings-btn:hover,
.app-light-theme .command-use-btn:hover,
.app-light-theme .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35) !important;
}

.app-light-theme .btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* 指令弹窗 */
.app-light-theme .command-modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

.app-light-theme .command-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
}

.app-light-theme .command-modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .command-modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .command-modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .command-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .command-modal-body {
    background: #ffffff !important;
}

.app-light-theme .command-category-title {
    color: #2563eb !important;
}

.app-light-theme .command-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .command-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1) !important;
}

.app-light-theme .command-text {
    color: #334155 !important;
}

/* API 密钥弹窗 */
.app-light-theme .apikey-modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

.app-light-theme .apikey-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
}

.app-light-theme .apikey-modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .apikey-modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .apikey-modal-header .close-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .apikey-modal-header .close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .apikey-modal-body,
.app-light-theme .apikey-modal-footer {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.app-light-theme .apikey-form label {
    color: #334155 !important;
}

.app-light-theme .apikey-form .current-model {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}

.app-light-theme .apikey-form input[type="text"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .apikey-form input[type="text"]:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .apikey-form input[type="text"]::placeholder {
    color: #94a3b8 !important;
}

.app-light-theme .apikey-form .input-hint {
    color: #94a3b8 !important;
}

/* 通用模态框（代码查看、页面链接等） */
.app-light-theme .modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

.app-light-theme .modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
}

.app-light-theme .modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid transparent !important;
}

.app-light-theme .modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .modal-body {
    background: #ffffff !important;
}

.app-light-theme .modal-footer {
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .code-block {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

/* 图片/标题编辑弹窗（深色类覆盖） */
.app-light-theme .image-edit-modal .modal,
.app-light-theme .title-edit-modal .modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .image-edit-modal .modal-header,
.app-light-theme .title-edit-modal .modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .image-edit-modal .modal-header h3,
.app-light-theme .title-edit-modal .modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .image-edit-modal .modal-close,
.app-light-theme .title-edit-modal .modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .image-edit-modal .modal-close:hover,
.app-light-theme .title-edit-modal .modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .image-edit-modal .modal-body,
.app-light-theme .title-edit-modal .modal-body {
    background: #ffffff !important;
}

.app-light-theme .image-edit-modal .modal-footer,
.app-light-theme .title-edit-modal .modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .image-edit-modal .modal-btn.secondary,
.app-light-theme .title-edit-modal .modal-btn.secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .image-edit-modal .modal-btn.secondary:hover,
.app-light-theme .title-edit-modal .modal-btn.secondary:hover {
    background: #e2e8f0 !important;
}

.app-light-theme .image-edit-modal .modal-btn.primary,
.app-light-theme .title-edit-modal .modal-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: transparent !important;
}

.app-light-theme .image-preview-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .image-input-group label {
    color: #334155 !important;
}

.app-light-theme .image-input-group input {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .image-input-group input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .image-input-hint {
    color: #94a3b8 !important;
}

/* 背景编辑弹窗 */
.app-light-theme .bg-edit-modal .modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .bg-option {
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.app-light-theme .bg-option:hover {
    border-color: #3b82f6 !important;
}

.app-light-theme .bg-option.active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

.app-light-theme .bg-option-label {
    color: #334155 !important;
}

.app-light-theme .color-picker-wrapper label {
    color: #334155 !important;
}

/* 悬浮工具栏 */
.app-light-theme .floating-toolbar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12) !important;
}

.app-light-theme .toolbar-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .toolbar-header span {
    color: #64748b !important;
}

.app-light-theme .toolbar-close {
    color: #64748b !important;
}

.app-light-theme .toolbar-close:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.app-light-theme .toolbar-btn {
    color: #334155 !important;
}

.app-light-theme .toolbar-btn:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.app-light-theme .toolbar-btn.delete:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.app-light-theme .toolbar-divider {
    background: #e2e8f0 !important;
}

/* 顶部提示 */
.app-light-theme .xiaoxin.topModel {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .xiaoxin.topModel-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.app-light-theme .xiaoxin.topModel-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* iframe 编辑高亮覆盖 */
.app-light-theme .edit-highlight {
    outline: 2px dashed #2563eb !important;
}

.app-light-theme .edit-highlight:hover {
    outline-color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

.app-light-theme .editing-text {
    border: 2px solid #2563eb !important;
    background: #ffffff !important;
}

/* 页面链接弹窗 */
.app-light-theme .xiaoxin.modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .xiaoxin.modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .xiaoxin.modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .xiaoxin.modal-body {
    background: #ffffff !important;
}

.app-light-theme .xiaoxin.modal-footer {
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .xiaoxin.modal-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* 模型选择按钮 */
.app-light-theme .model-btn {
    border: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
}

.app-light-theme .model-btn:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .model-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.app-light-theme .settings-btn {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .settings-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

/* 空状态 */
.app-light-theme .empty-state {
    color: #94a3b8 !important;
}

.app-light-theme .empty-state h3 {
    color: #64748b !important;
}

.app-light-theme .empty-state p {
    color: #94a3b8 !important;
}

/* 聊天/图片应用内的消息区域保持白色卡片风格 */
.app-light-theme .chat-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.app-light-theme .model-selector {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* 加载、空状态 */
.app-light-theme .loading-state {
    color: #64748b !important;
}

.app-light-theme .loading-spinner {
    color: #2563eb !important;
}

/* 隐藏旧暗色背景产生的冲突 */
.app-light-theme .apikey-modal,
.app-light-theme .command-modal,
.app-light-theme .modal,
.app-light-theme .image-edit-modal .modal,
.app-light-theme .title-edit-modal .modal {
    color: #0f172a !important;
}

/* =========================================================
   聊天应用弹窗（关键词 / 知识库 / 对话记录）亮色系覆盖
   ========================================================= */

/* 遮罩 */
.app-light-theme .knowledge-modal-overlay,
.app-light-theme .keyword-modal-overlay,
.app-light-theme .chat-log-modal-overlay,
.app-light-theme .chat-detail-modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

/* 弹窗容器 */
.app-light-theme .knowledge-modal,
.app-light-theme .keyword-modal,
.app-light-theme .chat-log-modal,
.app-light-theme .chat-detail-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

/* 头部 */
.app-light-theme .knowledge-modal-header,
.app-light-theme .keyword-modal-header,
.app-light-theme .chat-log-modal-header,
.app-light-theme .chat-detail-modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .knowledge-modal-header h3,
.app-light-theme .keyword-modal-header h3,
.app-light-theme .chat-log-modal-header h3,
.app-light-theme .chat-detail-modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .knowledge-modal-close,
.app-light-theme .keyword-modal-close,
.app-light-theme .chat-log-modal-close,
.app-light-theme .chat-detail-modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.app-light-theme .knowledge-modal-close:hover,
.app-light-theme .keyword-modal-close:hover,
.app-light-theme .chat-log-modal-close:hover,
.app-light-theme .chat-detail-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* 内容区 */
.app-light-theme .knowledge-modal-body,
.app-light-theme .keyword-modal-body,
.app-light-theme .chat-log-modal-body,
.app-light-theme .chat-detail-modal-body {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* ===== 关键词弹窗 ===== */
.app-light-theme .keyword-sidebar {
    border-right: 1px solid #e2e8f0 !important;
}

.app-light-theme .keyword-sidebar-title {
    color: #0f172a !important;
}

.app-light-theme .keyword-group-item {
    color: #475569 !important;
}

.app-light-theme .keyword-group-item:hover {
    background: #f1f5f9 !important;
}

.app-light-theme .keyword-group-item.active {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.app-light-theme .add-group-btn {
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    background: transparent !important;
}

.app-light-theme .add-group-btn:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .keyword-search-input {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .keyword-search-input::placeholder {
    color: #94a3b8 !important;
}

.app-light-theme .keyword-search-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .add-keyword-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .keyword-list::-webkit-scrollbar {
    width: 6px !important;
}

.app-light-theme .keyword-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
}

.app-light-theme .keyword-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

.app-light-theme .keyword-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.app-light-theme .keyword-group-item .group-delete-btn {
    color: #94a3b8 !important;
}

.app-light-theme .keyword-group-item .group-delete-btn:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.app-light-theme .keyword-btn-secondary {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .keyword-btn-secondary:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .keyword-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .keyword-btn-primary:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
}

.app-light-theme .keyword-tag {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.app-light-theme .keyword-tag:hover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

.app-light-theme .keyword-tag.selected {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
}

.app-light-theme .keyword-tag .keyword-count {
    color: #64748b !important;
    background: #e2e8f0 !important;
}

.app-light-theme .keyword-tag.selected .keyword-count {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

.app-light-theme .keyword-tag .delete-keyword {
    background: #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .keyword-tag .delete-keyword:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

.app-light-theme .empty-keyword {
    color: #94a3b8 !important;
}

.app-light-theme .keyword-modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .keyword-selected-info {
    color: #64748b !important;
}

.app-light-theme .keyword-selected-info .highlight {
    color: #2563eb !important;
}

/* ===== 知识库弹窗 ===== */
.app-light-theme .add-knowledge-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .empty-knowledge {
    color: #94a3b8 !important;
}

.app-light-theme .knowledge-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .knowledge-item:hover {
    background: #f1f5f9 !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

.app-light-theme .knowledge-id,
.app-light-theme .knowledge-time {
    color: #94a3b8 !important;
}

.app-light-theme .knowledge-name {
    color: #0f172a !important;
}

.app-light-theme .knowledge-action-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .knowledge-action-btn:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
}

.app-light-theme .knowledge-action-btn.delete:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

.app-light-theme .knowledge-action-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
}

.app-light-theme .knowledge-action-btn.active:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.app-light-theme .active-knowledge-badge {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: #059669 !important;
}

/* ===== 对话记录弹窗 ===== */
.app-light-theme .chat-log-icon,
.app-light-theme .chat-detail-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.app-light-theme .chat-log-table-wrapper {
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .chat-log-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .chat-log-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #475569 !important;
}

.app-light-theme .chat-log-table tbody tr:hover {
    background: #f8fafc !important;
}

.app-light-theme .chat-log-group {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.app-light-theme .chat-log-group.ungrouped {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.app-light-theme .chat-log-time {
    color: #94a3b8 !important;
}

.app-light-theme .chat-log-view-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .chat-log-empty {
    color: #94a3b8 !important;
}

.app-light-theme .chat-log-page-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .chat-log-page-btn:hover:not(:disabled) {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .chat-log-page-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.app-light-theme .chat-log-page-info {
    color: #94a3b8 !important;
}

/* ===== 对话详情弹窗内容文字颜色 ===== */
.app-light-theme .chat-detail-content {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .chat-detail-content.answer {
    background: #eff6ff !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}

.app-light-theme .chat-detail-section {
    margin-bottom: 24px !important;
}

.app-light-theme .chat-detail-label {
    color: #64748b !important;
}

.app-light-theme .chat-detail-label::before {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.app-light-theme .chat-detail-meta {
    background: #f8fafc !important;
}

.app-light-theme .chat-detail-meta-item {
    color: #64748b !important;
}

.app-light-theme .chat-detail-meta-item strong {
    color: #0f172a !important;
}

.app-light-theme .chat-detail-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.app-light-theme .chat-detail-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .chat-detail-modal-body::-webkit-scrollbar {
    width: 6px !important;
}

.app-light-theme .chat-detail-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
}

.app-light-theme .chat-detail-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

.app-light-theme .chat-detail-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.app-light-theme .chat-log-table-wrapper::-webkit-scrollbar {
    width: 6px !important;
}

.app-light-theme .chat-log-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
}

.app-light-theme .chat-log-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

.app-light-theme .chat-log-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* ===== 知识库新增/编辑/删除弹窗 ===== */
.app-light-theme .knowledge-edit-modal-overlay,
.app-light-theme .knowledge-delete-modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

.app-light-theme .knowledge-edit-modal,
.app-light-theme .knowledge-delete-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

.app-light-theme .knowledge-edit-modal-header,
.app-light-theme .knowledge-delete-modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .knowledge-edit-modal-header h3,
.app-light-theme .knowledge-delete-modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .knowledge-edit-modal-close,
.app-light-theme .knowledge-delete-modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.app-light-theme .knowledge-edit-modal-close:hover,
.app-light-theme .knowledge-delete-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .knowledge-edit-modal-body,
.app-light-theme .knowledge-delete-modal-body {
    background: #ffffff !important;
    color: #0f172a !important;
}

.app-light-theme .knowledge-delete-modal-body p {
    color: #475569 !important;
}

.app-light-theme .delete-knowledge-name {
    color: #ef4444 !important;
}

.app-light-theme .knowledge-form-group label {
    color: #334155 !important;
}

.app-light-theme .knowledge-form-group input,
.app-light-theme .knowledge-form-group textarea {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .knowledge-form-group input:focus,
.app-light-theme .knowledge-form-group textarea:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .knowledge-edit-modal-footer,
.app-light-theme .knowledge-delete-modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .knowledge-btn-secondary,
.app-light-theme .knowledge-delete-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.app-light-theme .knowledge-btn-secondary:hover,
.app-light-theme .knowledge-delete-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .knowledge-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

/* ===== 系统指令 / 我的指令 展开收起 ===== */
.app-light-theme .command-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.app-light-theme .command-text.expanded {
    -webkit-line-clamp: unset !important;
}

.app-light-theme .command-expand-btn {
    background: transparent !important;
    border: none !important;
    color: #2563eb !important;
    font-size: 12px !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
    margin-top: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.app-light-theme .command-expand-btn:hover {
    color: #1d4ed8 !important;
}

.app-light-theme .command-text-wrapper {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* =========================================================
   聊天应用弹窗补充覆盖（form / create-group / delete-confirm）
   ========================================================= */

/* 通用表单弹窗 */
.app-light-theme .form-modal-overlay,
.app-light-theme .create-group-modal-overlay,
.app-light-theme .delete-confirm-modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

.app-light-theme .form-modal,
.app-light-theme .create-group-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
}

.app-light-theme .form-modal-header,
.app-light-theme .create-group-modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .form-modal-header h4,
.app-light-theme .create-group-modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .form-modal-close,
.app-light-theme .create-group-modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.app-light-theme .form-modal-close:hover,
.app-light-theme .create-group-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .form-modal-body,
.app-light-theme .create-group-modal-body {
    background: #ffffff !important;
    color: #0f172a !important;
}

.app-light-theme .form-modal-body input,
.app-light-theme .form-modal-body textarea,
.app-light-theme .create-group-form input {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .form-modal-body input::placeholder,
.app-light-theme .form-modal-body textarea::placeholder,
.app-light-theme .create-group-form input::placeholder {
    color: #94a3b8 !important;
}

.app-light-theme .form-modal-body input:focus,
.app-light-theme .form-modal-body textarea:focus,
.app-light-theme .create-group-form input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .form-modal-footer,
.app-light-theme .create-group-modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .form-modal-btn-secondary,
.app-light-theme .create-group-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.app-light-theme .form-modal-btn-secondary:hover,
.app-light-theme .create-group-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .form-modal-btn-primary,
.app-light-theme .create-group-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .create-group-form label {
    color: #334155 !important;
}

.app-light-theme .create-group-form .input-hint {
    color: #94a3b8 !important;
}

.app-light-theme .create-group-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
}

/* 删除确认弹窗 */
.app-light-theme .delete-confirm-modal {
    background: #ffffff !important;
    border: 1px solid #fecaca !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
}

.app-light-theme .delete-confirm-modal h3 {
    color: #0f172a !important;
}

.app-light-theme .delete-confirm-modal p {
    color: #475569 !important;
}

.app-light-theme .delete-confirm-icon {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
}

.app-light-theme .delete-keyword-name {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #ef4444 !important;
}

.app-light-theme .delete-confirm-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.app-light-theme .delete-confirm-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .delete-confirm-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
}

/* 指令弹窗内部组件补充 */
.app-light-theme .command-modal-tabs {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.app-light-theme .command-tab {
    color: #64748b !important;
}

.app-light-theme .command-tab:hover {
    color: #334155 !important;
}

.app-light-theme .command-tab.active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
}

.app-light-theme .user-command-toolbar select {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .user-command-toolbar select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

.app-light-theme .user-command-toolbar button {
    background: #eff6ff !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: #2563eb !important;
}

.app-light-theme .user-command-toolbar button:hover {
    background: #dbeafe !important;
}

.app-light-theme .command-card-actions button {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.app-light-theme .command-card-actions button:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .command-empty {
    color: #94a3b8 !important;
}

/* 弹窗滚动条统一 */
.app-light-theme .command-modal-body::-webkit-scrollbar,
.app-light-theme .keyword-modal-body::-webkit-scrollbar,
.app-light-theme .chat-log-modal-body::-webkit-scrollbar,
.app-light-theme .chat-detail-modal-body::-webkit-scrollbar,
.app-light-theme .knowledge-modal-body::-webkit-scrollbar,
.app-light-theme .knowledge-edit-modal-body::-webkit-scrollbar {
    width: 6px !important;
}

.app-light-theme .command-modal-body::-webkit-scrollbar-track,
.app-light-theme .keyword-modal-body::-webkit-scrollbar-track,
.app-light-theme .chat-log-modal-body::-webkit-scrollbar-track,
.app-light-theme .chat-detail-modal-body::-webkit-scrollbar-track,
.app-light-theme .knowledge-modal-body::-webkit-scrollbar-track,
.app-light-theme .knowledge-edit-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
}

.app-light-theme .command-modal-body::-webkit-scrollbar-thumb,
.app-light-theme .keyword-modal-body::-webkit-scrollbar-thumb,
.app-light-theme .chat-log-modal-body::-webkit-scrollbar-thumb,
.app-light-theme .chat-detail-modal-body::-webkit-scrollbar-thumb,
.app-light-theme .knowledge-modal-body::-webkit-scrollbar-thumb,
.app-light-theme .knowledge-edit-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

.app-light-theme .command-modal-body::-webkit-scrollbar-thumb:hover,
.app-light-theme .keyword-modal-body::-webkit-scrollbar-thumb:hover,
.app-light-theme .chat-log-modal-body::-webkit-scrollbar-thumb:hover,
.app-light-theme .chat-detail-modal-body::-webkit-scrollbar-thumb:hover,
.app-light-theme .knowledge-modal-body::-webkit-scrollbar-thumb:hover,
.app-light-theme .knowledge-edit-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* =========================================================
   聊天应用主界面主色调统一为蓝（原紫/粉等改蓝黑）
   ========================================================= */
.app-light-theme .model-btn:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .model-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.app-light-theme .settings-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .input-wrapper:focus-within {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .option-btn:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.app-light-theme .message.user .avatar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.app-light-theme .message.user .message-content {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
}

.app-light-theme .publish-btn.media {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

/* =========================================================
   保存到分组弹窗（save-group-modal）亮色系覆盖
   ========================================================= */
.app-light-theme .save-group-modal-overlay {
    background: rgba(15, 23, 42, 0.65) !important;
}

.app-light-theme .save-group-modal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15) !important;
}

.app-light-theme .save-group-modal-header {
    background: #ffffff !important;
}

.app-light-theme .save-group-modal-header h3 {
    color: #0f172a !important;
}

.app-light-theme .save-group-modal-close {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.app-light-theme .save-group-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .save-group-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
}

.app-light-theme .save-group-modal-body {
    background: #ffffff !important;
}

.app-light-theme .save-group-list::-webkit-scrollbar {
    width: 6px !important;
}

.app-light-theme .save-group-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

.app-light-theme .save-group-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

.app-light-theme .save-group-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.app-light-theme .save-group-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.app-light-theme .save-group-item:hover {
    background: #f1f5f9 !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

.app-light-theme .save-group-item.selected {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

.app-light-theme .save-group-item-radio {
    border-color: #cbd5e1 !important;
}

.app-light-theme .save-group-item.selected .save-group-item-radio {
    border-color: #2563eb !important;
    background: #2563eb !important;
}

.app-light-theme .save-group-item-name {
    color: #0f172a !important;
}

.app-light-theme .save-group-item-empty {
    color: #94a3b8 !important;
}

.app-light-theme .save-group-create {
    border-top: 1px solid #e2e8f0 !important;
}

.app-light-theme .save-group-create input {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .save-group-create input::placeholder {
    color: #94a3b8 !important;
}

.app-light-theme .save-group-create input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.app-light-theme .save-group-create button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.app-light-theme .save-group-modal-footer {
    background: #ffffff !important;
}

.app-light-theme .save-group-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.app-light-theme .save-group-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-light-theme .save-group-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25) !important;
}

.app-light-theme .save-group-btn-primary:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
}

