.wg-layer { position: fixed; top: 50%; left: 50%; width: 1000px; max-width: 95%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05); border-radius: 16px; z-index: 1000; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; overflow: hidden; }
.wg-layer-content { padding: 0; box-sizing: border-box; }
.layer-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; margin: 0; }
.layer-header h3 { font-size: 24px; margin: 0; font-weight: 700; color: white; letter-spacing: -0.5px; }
.layer-header .layer-close { width: 50px; height: 50px; background: none; border: none; box-shadow: none; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; font-size: 25px; }
.csv-flex-wrap { display: flex; gap: 0; flex-wrap: nowrap; align-items: stretch; padding: 32px; background: #f8fafc; }
.csv-card { flex: 1 1 50%; background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; position: relative; }
.csv-card:first-child { margin-right: 16px; }
.card-header { display: flex; align-items: center; padding: 24px; border-bottom: 1px solid #e2e8f0; }
.icon-container { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-right: 16px; font-size: 24px; color: white; }
.download-icon { background: linear-gradient(135deg, #10b981, #059669); }
.upload-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.header-text h4 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #1e293b; }
.header-text .sub-desc { height:20px; margin: 0 0 3px; font-size: 14px; color: #555; font-weight: 500; }
.card-content { padding: 24px; }
.info-box { display: flex; align-items: center; padding: 16px; background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border: 1px solid #bbf7d0; border-radius: 8px; margin-bottom: 24px; font-size: 14px; color: #166534; }
.info-box i { margin-right: 8px; font-size: 16px; color: #10b981; }
.download-buttons-area { min-height: 120px; }
.download-buttons-area .downloadBtn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; background: #10b981; font-weight: 600; font-size: 14px; color:#fff; cursor: pointer; margin-bottom: 10px;}
.drag-drop-area { border: 2px dashed #d1d5db; border-radius: 12px; padding: 20px; text-align: center; background: #fafbfc; cursor: pointer; transition: all 0.3s ease; margin-bottom: 16px; }
.drag-drop-area:hover { border-color: #3b82f6; background: #f0f4ff; }
.drag-drop-area.drag-over { border-color: #3b82f6; background: linear-gradient(135deg, #eff6ff, #dbeafe); transform: scale(1.02); }
.drag-drop-area.drag-error { border-color: #ef4444; background: #fef2f2; }
.drag-drop-content { pointer-events: none; }
.drag-drop-icon { margin-bottom: 16px; }
.drag-drop-icon i { font-size: 48px; color: #9ca3af; transition: color 0.3s ease; }
.drag-drop-area:hover .drag-drop-icon i { color: #3b82f6; }
.drag-drop-area.drag-over .drag-drop-icon i { color: #3b82f6; }
.drag-drop-text h4 { margin: 0 0 8px 0; font-size: 18px; font-weight: 600; color: #374151; }
.drag-drop-text p { margin: 0 0 16px 0; font-size: 14px; color: #6b7280; }
.drag-drop-formats { font-size: 12px; color: #666; background: #eee; padding: 8px 16px; border-radius: 20px; display: inline-block; }
.selected-file-info { background: #f0f9ff; border: 1px solid #0ea5e9; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.file-info-content { display: flex; align-items: center; gap: 12px; }
.file-info-content i { font-size: 24px; color: #0ea5e9; }
.file-details { flex: 1; display: flex; flex-direction: column; }
.file-name { font-weight: 600; color: #0c4a6e; font-size: 14px; }
.file-size { font-size: 12px; color: #0369a1; margin-top: 2px; }
.remove-file-btn { background: none; border: none; color: #64748b; cursor: pointer; padding: 4px; border-radius: 4px; transition: all 0.2s ease; }
.remove-file-btn:hover { background: #e2e8f0; color: #374151; }
.upload-actions { text-align: center; margin-top: 16px; }
.upload-actions .uploadBtn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; background: #3b82f6; font-weight: 600; font-size: 14px; color:#fff; cursor: pointer; margin-bottom: 10px;}
.upload-actions .uploadBtn i { font-size:var(--font-size-md); }
.upload-text { margin: 0 0 12px 0; font-size: 15px; color: #64748b; font-weight: 500; }
.upload-section input[type="file"] { width: 390px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #f9fafb; }
.format-info { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.format-item { display: flex; align-items: center; font-size: 14px; color: #64748b; font-weight: 500; }
.format-item i { margin-right: 8px; font-size: 16px; color: #10b981; }
.divider { text-align: center; margin: 24px 0; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e2e8f0; }
.divider span { background: white; padding: 0 16px; color: #94a3b8; font-size: 14px; font-weight: 600; position: relative; }
.template-section h5 { margin: 0 0 16px 0; font-size: 16px; font-weight: 700; color: #334155; }
.preloaded-buttons { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; align-items: flex-start; }
.preload-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; background: #3b82f6; font-weight: 600; font-size: 14px; color:#fff; cursor: pointer; margin-bottom: 10px;}
.loading-state { display: flex; align-items: center; justify-content: center; width: 100%; padding: 20px; color: #64748b; font-size: 14px; }
.loading-state i { margin-right: 8px; font-size: 16px; }