/* public/assets/css/developer/data-cleaner.css */
.dc-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #f59e0b; --p-primary-hover: #d97706; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1400px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); box-sizing: border-box; font-family: system-ui, sans-serif; }
.dc-wrapper *, .dc-wrapper *::before, .dc-wrapper *::after { box-sizing: border-box; }

.dc-header { text-align: center; margin-bottom: 24px; border-bottom: 1px solid var(--p-border); padding-bottom: 24px; }
.dc-title { font-size: 1.7rem; font-weight: 800; color: var(--p-text); margin: 0 0 10px 0; }
.dc-subtitle { font-size: 0.95rem; color: var(--p-text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* 核心两栏固定布局 */
.dc-layout { display: flex; gap: 24px; align-items: flex-start; position: relative; }
@media (max-width: 900px) { .dc-layout { flex-direction: column; } }

/* 左侧：固定侧边栏 */
.dc-sidebar { width: 340px; flex-shrink: 0; background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; position: sticky; top: 24px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
@media (max-width: 900px) { .dc-sidebar { width: 100%; position: relative; top: 0; } }
.dc-sidebar-body { padding: 20px; display: flex; flex-direction: column; }

/* 右侧：主工作区 */
.dc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dc-io-container { background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }

.dc-panel-title { font-size: 1.05rem; font-weight: 800; color: var(--p-text); padding: 16px 20px; background: #f1f5f9; border-bottom: 1px solid var(--p-border); margin: 0; }

/* 表单与组件 */
.dc-form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dc-label { font-size: 0.95rem; font-weight: 700; color: #334155; }
.dc-input, .dc-select { width: 100%; padding: 12px 14px; border: 2px solid #cbd5e1; border-radius: 10px; font-size: 1rem; font-weight: 600; color: #1e293b; outline: none; transition: 0.2s; background: #ffffff; }
.dc-input:focus, .dc-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

.dc-checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 700; color: #334155; cursor: pointer; }
.dc-checkbox { width: 18px; height: 18px; accent-color: var(--p-primary); cursor: pointer; }
.dc-divider { width: 100%; height: 1px; background: var(--p-border); border: none; margin: 16px 0; }

.dc-btn-primary { width: 100%; margin-top: 24px; padding: 16px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; cursor: pointer; border: none; transition: 0.2s; background: var(--p-primary); color: #ffffff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.dc-btn-primary:hover { background: var(--p-primary-hover); transform: translateY(-2px); }
.dc-btn-copy { padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; cursor: pointer; background: #e2e8f0; color: #475569; border: none; transition: 0.2s; }
.dc-btn-copy:hover { background: var(--p-primary); color: #fff; }

.dc-stat-box { margin-top: 24px; background: #e2e8f0; padding: 16px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.dc-stat-item { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; color: #475569; }
.dc-stat-item strong { font-size: 1.1rem; font-family: monospace; }

/* 输入与虚拟列表输出区 */
.dc-textarea { width: 100%; height: 250px; padding: 16px; border: none; font-size: 0.95rem; font-weight: 500; color: #1e293b; outline: none; background: #ffffff; resize: none; font-family: 'Consolas', monospace; line-height: 1.6; }

.dc-virtual-list { width: 100%; height: 350px; overflow-y: auto; background: #ffffff; padding: 16px; scroll-behavior: smooth; }
.dc-list-item { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-family: 'Consolas', monospace; font-size: 0.9rem; color: #334155; word-break: break-all; transition: 0.2s; }
.dc-list-item:hover { background: #f8fafc; }
/* 信息绝对纯净，取消任何花哨的高亮或 Tag 样式 */
.dc-list-item-meta { display: flex; justify-content: space-between; color: #94a3b8; font-size: 0.8rem; margin-top: 4px; border-top: 1px dashed #e2e8f0; padding-top: 4px; }
.dc-empty-state { text-align: center; color: #94a3b8; font-weight: 700; margin-top: 100px; }
.dc-loading-indicator { text-align: center; padding: 12px; font-size: 0.85rem; font-weight: 700; color: var(--p-primary); background: #fffbeb; border-top: 1px solid #fef3c7; }

/* 黑夜模式 */
[data-theme="dark"] .dc-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .dc-title, [data-theme="dark"] .dc-panel-title, [data-theme="dark"] .dc-label { color: #f8fafc; }
[data-theme="dark"] .dc-subtitle { color: #94a3b8; }
[data-theme="dark"] .dc-sidebar { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .dc-io-container { background: #020617; border-color: #475569; }
[data-theme="dark"] .dc-panel-title { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .dc-input, [data-theme="dark"] .dc-select, [data-theme="dark"] .dc-textarea { background: #020617; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .dc-checkbox-label { color: #cbd5e1; }
[data-theme="dark"] .dc-virtual-list { background: #020617; }
[data-theme="dark"] .dc-list-item { border-bottom-color: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .dc-list-item:hover { background: #0f172a; }
[data-theme="dark"] .dc-list-item-meta { border-top-color: #334155; }
[data-theme="dark"] .dc-stat-box { background: #1e293b; }
[data-theme="dark"] .dc-loading-indicator { background: #334155; border-color: #475569; color: #60a5fa; }