/* GIF to Base64 tool, page-specific styles.
   Prefixed mgb64- to avoid collisions with the shared styles in
   site.css. The site tokens (steel blue #4a7fb5, white panels,
   soft borders) match every other tool page. This page is a
   compact utility, so the tool block is one panel, not two. */

.mgb64-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 18px;
  text-align: center;
}
.mgb64-dropzone p { margin: 6px auto; color: var(--muted); }
.mgb64-over {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}
.mgb64-file-input { display: none; }

.mgb64-facts {
  background: var(--accent-soft);
  border: 1px solid #c3d3e6;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 15px;
}
.mgb64-facts p { margin: 4px 0; }
.mgb64-fname { font-weight: 700; word-break: break-all; }

.mgb64-verdict {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0 0;
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.mgb64-verdict p { margin: 4px 0; }
.mgb64-verdict-fine { border-color: #a7f3d0; background: #ecfdf5; }
.mgb64-verdict-care { border-color: #fcd34d; background: #fffbeb; }
.mgb64-verdict-heavy { border-color: #fca5a5; background: #fef2f2; }

.mgb64-stage {
  display: flex; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  overflow: auto; margin-top: 16px;
  background-color: #f8fafc;
  background-image: conic-gradient(#e2e8f0 25%, #f8fafc 0 50%, #e2e8f0 0 75%, #f8fafc 0);
  background-size: 16px 16px;
}
.mgb64-stage img { max-width: 100%; height: auto; }

.mgb64-out { margin-top: 18px; }
.mgb64-out-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.mgb64-out-head label { font-weight: 700; font-size: 15px; }
.mgb64-out-count { color: var(--muted); font-size: 13.5px; }
.mgb64-copy { margin-left: auto; }
.mgb64-out textarea {
  width: 100%; box-sizing: border-box;
  min-height: 88px; max-height: 180px; resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #f8fafc; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.5;
  word-break: break-all; white-space: pre-wrap;
}

.mgb64-limits {
  font-size: 14px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 10px 14px; margin-top: 16px;
}
.mgb64-limits p { margin: 4px 0; }
.mgb64-limits strong { color: var(--ink); }

.mgb64-code {
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.55; white-space: pre;
}
