/* ══════════════════════════════════════════════════════════
   NEW-TOOLS.CSS — Watermark, Rotate, Flip, Metadata Viewer
══════════════════════════════════════════════════════════ */

/* ── WATERMARK CONTROLS ── */
.wm-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  background: var(--card, #0e1420);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.wm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wm-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #8892a0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wm-field input[type="text"],
.wm-field select {
  background: var(--input-bg, #161d2c);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text, #e8eaf0);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.wm-field input[type="text"]:focus,
.wm-field select:focus {
  border-color: var(--accent, #4f8ef7);
}

.wm-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border, rgba(255,255,255,0.12));
  outline: none;
  cursor: pointer;
}

.wm-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent, #4f8ef7);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(79,142,247,0.2);
}

.wm-field input[type="color"] {
  -webkit-appearance: none;
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
}

.wm-range-val {
  font-size: 12px;
  color: var(--accent, #4f8ef7);
  font-weight: 600;
  align-self: flex-end;
}

/* ── ROTATE / FLIP BUTTONS ── */
.rotate-btns-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.rotate-btn {
  background: var(--card, #0e1420);
  border: 1.5px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
  color: var(--text, #e8eaf0);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.rotate-btn:hover {
  border-color: var(--accent, #4f8ef7);
  background: rgba(79,142,247,0.08);
  color: var(--accent, #4f8ef7);
}

.rotate-btn.active {
  background: var(--accent, #4f8ef7);
  border-color: var(--accent, #4f8ef7);
  color: #fff;
}

/* ── METADATA TABLE ── */
.meta-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.meta-summary-card {
  background: var(--card, #0e1420);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.meta-summary-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.meta-summary-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #e8eaf0);
}

.meta-summary-card small {
  font-size: 11px;
  color: var(--text-muted, #8892a0);
}

.meta-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.meta-table thead tr {
  background: var(--card, #0e1420);
}

.meta-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8892a0);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.meta-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.05));
  color: var(--text, #e8eaf0);
  word-break: break-all;
}

.meta-table td:first-child {
  font-weight: 600;
  color: var(--accent, #4f8ef7);
  white-space: nowrap;
  width: 38%;
}

.meta-table tbody tr:hover {
  background: rgba(79,142,247,0.04);
}

.meta-table tbody tr:last-child td {
  border-bottom: none;
}
