/* Shared styles for /image-tools/* — all sub-tools (compress, convert, resize) load this. */

.it-drop {
  border: 2px dashed #cbd5e0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.it-drop:hover, .it-drop.it-drop-over {
  border-color: var(--tool-image, #10b981);
  background: #ecfdf5;
}
.it-drop-icon { color: var(--tool-image, #10b981); margin-bottom: 0.6rem; display: inline-flex; }
.it-drop-text strong { display: block; font-size: 1.05rem; color: #161922; font-weight: 600; }
.it-drop-text span   { display: block; font-size: 0.88rem; color: var(--text-soft, #475467); margin-top: 0.25rem; }

.it-settings {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}
.it-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .it-settings-row { grid-template-columns: 1fr; } }

.it-files {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.it-file {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}
@media (max-width: 560px) {
  .it-file { grid-template-columns: 56px 1fr auto; }
  .it-file .it-status { grid-column: 2 / -1; margin-top: 0.25rem; }
}
.it-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: #f1f5f9 center/cover no-repeat;
  flex-shrink: 0;
}
.it-meta { min-width: 0; }
.it-meta .it-name {
  font-size: 0.92rem; font-weight: 600; color: #161922;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.it-meta .it-sizes { font-size: 0.78rem; color: var(--text-soft, #475467); margin-top: 0.15rem; }
.it-saved { color: #10b981; font-weight: 600; }
.it-grew  { color: #d97706; }

.it-status {
  font-size: 0.74rem; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 999px;
  background: #f1f5f9; color: #64748b;
  white-space: nowrap;
}
.it-status.processing { background: #dbeafe; color: #1d4ed8; }
.it-status.done       { background: #d1fae5; color: #065f46; }
.it-status.error      { background: #fee2e2; color: #b91c1c; }
.it-status.skipped    { background: #fef3c7; color: #92400e; }

.it-remove {
  background: transparent; border: none; cursor: pointer;
  color: #94a3b8; padding: 0.3rem; border-radius: 6px;
}
.it-remove:hover { color: #b91c1c; background: #fef2f2; }

.it-batch {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.7rem; margin-top: 1.5rem;
}
.it-batch .btn { min-width: 140px; }
.it-batch .it-batch-info { font-size: 0.88rem; color: var(--text-soft, #475467); }

.it-error {
  margin-top: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 0.88rem;
}

.it-version {
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  padding: 0.5rem 1.5rem;
  margin-top: -0.5rem;
}

/* Hub page card grid — overrides for active links. */
.subtool-card.is-active { opacity: 1 !important; cursor: pointer; }
.subtool-card.is-active:hover { transform: translateY(-2px); }
a.subtool-card { text-decoration: none; color: inherit; }
