/* public/assets/css/tools/image/combiner.css */
.ic-wrapper { background: var(--bg-surface); border-radius: 24px; padding: 24px; border: 1px solid var(--border-color); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.ic-header { font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; text-align: center; }
.ic-subtitle { color: var(--text-muted); font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; text-align: center; max-width: 800px; margin: 0 auto 24px; }

.ic-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ic-layout { grid-template-columns: 1fr; } }

.ic-panel { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.ic-panel-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }

/* 拖拽上传区 */
.ic-upload-box { border: 2px dashed var(--primary-color); border-radius: 12px; padding: 30px 20px; text-align: center; cursor: pointer; background: rgba(0, 102, 204, 0.03); transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--primary-color); font-weight: 600; }
.ic-upload-box:hover, .ic-upload-box.dragover { background: rgba(0, 102, 204, 0.1); transform: scale(1.02); }
.ic-file-input { display: none; }

/* 缩略图列表 */
.ic-list-container { max-height: 300px; overflow-y: auto; padding-right: 5px; display: flex; flex-direction: column; gap: 10px; }
.ic-list-container::-webkit-scrollbar { width: 6px; }
.ic-list-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.ic-list-item { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); padding: 8px; border-radius: 8px; border: 1px solid var(--border-color); }
.ic-list-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #e2e8f0; }
.ic-list-info { flex: 1; font-size: 0.85rem; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-list-del { background: #fee2e2; color: #ef4444; border: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
.ic-list-del:hover { background: #ef4444; color: #fff; }
.ic-empty-msg { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 20px 0; }

/* 表单控件 */
.ic-form-group { display: flex; flex-direction: column; gap: 8px; }
.ic-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.ic-select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-main); outline: none; transition: 0.2s; }
.ic-select:focus { border-color: var(--primary-color); }
.ic-range { -webkit-appearance: none; width: 100%; height: 6px; background: #cbd5e1; border-radius: 3px; outline: none; }
.ic-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-color); cursor: pointer; }
.ic-val-badge { background: rgba(0,102,204,0.1); color: var(--primary-color); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; }

/* 预览区 */
.ic-preview-box { flex: 1; background: #e2e8f0; border-radius: 12px; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 20px; position: relative; min-height: 400px; }
/* 棋盘格背景，用于清晰展示透明底色 */
.ic-preview-checker { background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
.ic-canvas { max-width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.2s; }

.ic-btn-group { display: flex; gap: 10px; }
.ic-btn { flex:1; background: var(--primary-color); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; transition: 0.2s; }
.ic-btn:hover { background: var(--primary-hover); }
.ic-btn-sec { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-color); }
.ic-btn-sm { padding: 4px 10px; font-size: 0.8rem; }

[data-theme="dark"] .ic-wrapper, [data-theme="dark"] .ic-list-item { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .ic-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .ic-panel-title, [data-theme="dark"] .ic-subtitle { border-color: #475569; }
[data-theme="dark"] .ic-select { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .ic-preview-box { background: #020617; }