@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");
:root {
  --primary-color: #eab308; /* Yellow theme for JPG */
  --primary-hover: #ca8a04;
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-comic: 'Comic Neue', 'Chalkboard SE', 'Marker Felt', sans-serif;
}

.tool-center-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.main-tool-card {
  width: 100%;
  max-width: 950px; 
}

/* Tool Title */
.dual-icon { position: relative; width: 66px; height: 62px; margin-bottom: 14px; flex-shrink: 0;}
.dual-icon .sq { position: absolute; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.dual-icon .pos-tl { top: 0; left: 0; }
.dual-icon .pos-br { top: 22px; left: 26px; border: 2px solid #fff;}
.dual-icon.yellow .light { background: #fef08a; color: #854d0e; z-index: 1; }
.dual-icon.yellow .solid { background: #eab308; color: #fff; z-index: 2; }

/* Modern Cool Dropzone (Centered) */
.drop-zone { background: linear-gradient(145deg, #f8fafc, #fefce8); border: 2px dashed #fde047; border-radius: 24px; padding: 80px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; box-shadow: inset 0 0 20px rgba(255,255,255,0.8); display: flex; flex-direction: column; align-items: center; justify-content: center;}
.drop-zone:hover { border-color: var(--primary-hover); background: linear-gradient(145deg, #fefce8, #fef9c3); transform: translateY(-2px); }
.upload-icon-wrap { background: #fff; width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 8px 25px rgba(234, 179, 8, 0.2); }
.upload-icon-wrap i { font-size: 40px; color: var(--primary-color); }
.comic-text { font-family: var(--font-comic); font-size: 26px; margin-bottom: 8px; font-weight: 600; color: #854d0e; }
.drop-zone p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

/* Buttons */
.btn { border: 1px solid var(--border-color); background: #fff; color: var(--text-main); padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; justify-content: center;}
.btn:hover { background: #f1f5f9; }
.btn.primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25); }
.round-btn { border-radius: 50px !important; }

/* Settings Panel */
.settings-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0;}
.setting-group { flex: 1; min-width: 150px;}
.setting-group label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; }
.pro-select { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; outline: none; background: #fff; transition: 0.2s; }
.pro-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(234,179,8,0.1); }

/* File List Preview Area */
.data-preview-box { background-color: #fff; border: 1px solid #cbd5e1; border-radius: 16px; padding: 20px; max-height: 400px; overflow: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.file-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; transition: 0.2s;}
.file-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.file-item .thumb { height: 120px; border-radius: 8px; background: #e2e8f0 center / cover no-repeat; }
.file-item .fname { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;}
.file-item .ctrl { display: flex; justify-content: space-between; align-items: center; }
.file-item .num { font-size: 12px; font-weight: 700; color: var(--primary-color); background: #fef08a; padding: 2px 8px; border-radius: 50px;}
.file-item button.del { border: none; background: #fff; border: 1px solid #fecaca; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: #dc2626; transition: 0.2s; display: flex; align-items: center; justify-content: center;}
.file-item button.del:hover { background: #fee2e2; transform: scale(1.05);}