/* EZTool — стили инструментов v2 */

.ezt2 { display:flex; flex-direction:column; gap:0; font-size:14px; }

/* ─── Зона дропа ─── */
.ezt2-drop {
  position: relative;
  background: #141820;
  border: 2px dashed #2a3040;
  border-radius: 14px;
  padding: 48px 24px 40px;
  text-align: center;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.ezt2-drop.ezt2-dragging {
  border-color: #4da6ff;
  background: rgba(77,166,255,.05);
}
.ezt2-drop-overlay {
  position: absolute; inset:0; cursor:default;
}
.ezt2-drop-title {
  font-size: 17px;
  font-weight: 600;
  color: #c8d0e0;
  margin-bottom: 18px;
}
.ezt2-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #4da6ff;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .15s;
  position: relative;
  z-index: 1;
}
.ezt2-btn-add:hover { opacity: .88; }
.ezt2-drop-hint {
  margin-top: 16px;
  font-size: 12px;
  color: #445;
}

/* ─── Тулбар ─── */
.ezt2-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #141820;
  border: 1px solid #1e2430;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 12px 16px;
  margin-bottom: 2px;
}
.ezt2-add-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4da6ff;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid rgba(77,166,255,.25);
  border-radius: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.ezt2-add-more:hover { background: rgba(77,166,255,.08); }

.ezt2-quality-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #556;
  flex: 1;
  min-width: 160px;
}
.ezt2-quality-row input[type=range] {
  flex: 1;
  accent-color: #4da6ff;
  height: 3px;
}

.ezt2-toolbar-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.ezt2-btn-convert {
  background: #4da6ff;
  color: #000;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.ezt2-btn-convert:hover:not(:disabled) { opacity: .88; }
.ezt2-btn-convert:disabled { opacity: .4; cursor: not-allowed; }

.ezt2-btn-delete-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #2a3040;
  color: #667;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ezt2-btn-delete-all:hover { border-color: #ff4d4d; color: #ff4d4d; }

/* ─── Список файлов ─── */
.ezt2-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.ezt2-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #141820;
  border: 1px solid #1e2430;
  border-radius: 10px;
  padding: 12px 14px;
  transition: background .15s;
}
.ezt2-row:hover { background: #181e2c; }

/* Превью */
.ezt2-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e2430;
}
.ezt2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ezt2-thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e2430, #252d40);
}

/* Инфо */
.ezt2-info {
  flex: 1;
  min-width: 0;
}
.ezt2-fname {
  font-size: 13px;
  font-weight: 500;
  color: #c8d0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.ezt2-fmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.ezt2-fsize { color: #667; }
.ezt2-fsaved { color: #778; }
.ezt2-saved { color: #34d399; font-weight: 600; }

/* Прогресс */
.ezt2-prog-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ezt2-prog-track {
  flex: 1;
  height: 3px;
  background: #1e2430;
  border-radius: 2px;
  overflow: hidden;
}
.ezt2-prog-fill {
  height: 100%;
  background: #4da6ff;
  border-radius: 2px;
  transition: width .15s linear;
  width: 0%;
}
.ezt2-prog-label { font-size: 11px; color: #4da6ff; white-space: nowrap; }

/* Статус */
.ezt2-status-label { font-size: 11px; margin-top: 4px; }
.ezt2-ok      { color: #34d399; }
.ezt2-err     { color: #ff4d4d; }
.ezt2-pending { color: #445; }

/* Действия */
.ezt2-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ezt2-btn-dl {
  display: inline-block;
  background: #1a2a3a;
  border: 1px solid #2a4060;
  color: #4da6ff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.ezt2-btn-dl:hover { background: #1e3348; text-decoration: none; color: #4da6ff; }

.ezt2-btn-rm {
  background: none;
  border: 1px solid #1e2430;
  color: #445;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  transition: all .15s;
  flex-shrink: 0;
}
.ezt2-btn-rm:hover { border-color: #ff4d4d; color: #ff4d4d; }

/* ─── Мобилка ─── */
@media (max-width:560px) {
  .ezt2-toolbar { flex-direction:column; align-items:stretch; }
  .ezt2-toolbar-btns { flex-direction:column; }
  .ezt2-btn-convert, .ezt2-btn-delete-all { width:100%; justify-content:center; }
  .ezt2-row { flex-wrap:wrap; }
  .ezt2-row-actions { width:100%; justify-content:flex-end; }
}
