/* ----------  Image Compressor specifics  ---------- */

.dropzone {
  position: relative;
  display: block;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  outline: none;
  margin-bottom: 22px;
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--accent); background: var(--bg-elev-2); }
.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
  transform: scale(1.005);
}
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dropzone-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: #cdd3ff; border: 1px solid rgba(124, 92, 255, 0.3);
}
.dropzone-icon svg { width: 26px; height: 26px; }
.dropzone-text { color: var(--text); font-size: 15px; }
.dropzone-hint { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.images-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.images-header h2 { margin: 0; font-size: 18px; }
.muted { color: var(--text-dim); font-weight: 500; }
.hint  { color: var(--text-dim); font-size: 12px; }

.ic-list {
  display: grid;
  gap: 12px;
}

.ic-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.ic-thumb {
  width: 80px; height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #0e1117;
  border: 1px solid var(--border);
}

.ic-info { min-width: 0; }
.ic-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ic-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.ic-savings.is-good { color: var(--success); font-weight: 600; }
.ic-savings.is-bad  { color: #fbbf24; font-weight: 600; }

.ic-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--bg-elev-2); color: var(--text); border-color: var(--accent); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-btn svg { width: 16px; height: 16px; }

@media (max-width: 540px) {
  .ic-card {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }
  .ic-thumb { width: 64px; height: 64px; }
  .ic-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
