/* Shared by the 4 image-converter tools only (webp/png/jpg/avif), all 12 languages.
   Linked as ../../css/categories/image-converter.css, after css/style.css +
   css/lang/{lang}.css and before the tool's own css/tools/{tool}.css. png-converter
   lacks a quality slider (lossless format), so .quality-row/.quality-val live in the
   3 tools that have one (their css/tools files), not here. png-converter is also the
   one image tool with no css/tools file — it needs only this + css/lang. */

/* Drop zone */
#dropzone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
#dropzone:hover, #dropzone.dragover {
  border-color: #0078d4;
  background: #f0f6ff;
}
#dropzone p { color: #666; line-height: 1.6; }
#dropzone p strong { color: #0078d4; }
#dropzone small { color: #999; font-size: 12px; }
#file-input { display: none; }

/* File list */
#file-list {
  display: none;
  margin-top: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}
.file-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.file-item:last-child { border-bottom: none; }
.file-item:nth-child(even) { background: #fafafa; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: #888; font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.file-remove {
  background: none; border: none; cursor: pointer;
  color: #bbb; font-size: 16px; margin-left: 8px;
  padding: 0 4px; line-height: 1;
}
.file-remove:hover { color: #e00; }

/* Buttons */
.btn-row {
  display: flex;
  gap: 8px;
}
button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-primary {
  background: #0078d4;
  color: #fff;
  flex: 1;
}
.btn-primary:disabled { background: #aaa; cursor: not-allowed; }
.btn-secondary {
  background: #eee;
  color: #444;
}
.btn-secondary:hover { background: #ddd; }

/* Progress */
progress {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  border: none;
  background: #eee;
}
progress::-webkit-progress-bar { background: #eee; border-radius: 3px; }
progress::-webkit-progress-value { background: #0078d4; border-radius: 3px; }

/* Log */
#log {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 6px;
  padding: 12px;
  font-family: 'Consolas', 'D2Coding', monospace;
  font-size: 12px;
  line-height: 1.7;
  height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.log-ok { color: #6dbe6d; }
.log-err { color: #f47067; }
.log-info { color: #79c0ff; }

/* Download all */
#btn-download-all {
  display: none;
  width: 100%;
  background: #107c10;
  color: #fff;
}
#btn-download-all:hover { background: #0a5c0a; }

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}
