/* =====================================================================
   style.css — 画像→データURI（Base64）変換 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。
   ===================================================================== */

/* サイズ表示はタブ幅数字で桁を揃える */
.sg-result-row__value {
  font-variant-numeric: tabular-nums;
}

/* ドラッグ＆ドロップ枠 */
.idu-drop {
  border: 2px dashed var(--sg-border, #d1d5db);
  border-radius: var(--sg-radius, 8px);
  padding: 28px 16px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.idu-drop.is-dragover {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.06);
}
.idu-drop__text {
  margin: 0 0 12px;
  color: var(--sg-muted, #6b7280);
  font-size: 0.92rem;
  line-height: 1.6;
}
.idu-file-label {
  cursor: pointer;
}
.idu-drop__hint {
  margin-top: 12px;
}

.idu-privacy {
  margin-top: var(--sg-space-4);
}

/* プレビュー */
.idu-preview-wrap {
  text-align: center;
  margin-bottom: var(--sg-space-4);
}
.idu-preview {
  max-width: 100%;
  max-height: 260px;
  height: auto;
  border-radius: var(--sg-radius, 8px);
  border: 1px solid var(--sg-border, #e5e7eb);
  /* 透過画像が見やすいようチェッカー風の下地 */
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* data URI 出力欄 */
.idu-out {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
  resize: vertical;
}

.idu-bigwarn {
  margin-top: var(--sg-space-4);
}

.idu-usage code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(59, 91, 219, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}
