/* md5 — tool-specific components (loaded after the global /styles.css) */

.md5-out {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .7rem .85rem;
  border: 1px solid var(--border, #2a3344);
  border-radius: 10px;
  background: var(--surface, transparent);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 1rem;
  letter-spacing: .03em;
  word-break: break-all;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.md5-out:hover,
.md5-out:focus-visible {
  border-color: var(--accent, #6ea8fe);
  outline: none;
}
.md5-out.copied { border-color: var(--success, #2ecc71); }
.md5-out.copied::after {
  content: "Copied!";
  position: absolute;
  top: -0.65rem;
  right: .6rem;
  padding: 0 .35rem;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--success, #2ecc71);
  background: var(--surface, var(--bg, #fff));
  border-radius: 4px;
}

.md5-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  font-size: .9rem;
  user-select: none;
}
.md5-check input { accent-color: var(--accent, #6ea8fe); }

.md5-subhead { font-size: 1.1rem; margin-bottom: 0; }

.md5-drop {
  border: 2px dashed var(--border, #2a3344);
  border-radius: 12px;
  padding: 1.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.md5-drop:hover,
.md5-drop:focus-visible,
.md5-drop.is-over {
  border-color: var(--accent, #6ea8fe);
  background: color-mix(in srgb, var(--accent, #6ea8fe) 6%, transparent);
  outline: none;
}
.md5-drop p { margin: .25rem 0; }
.md5-drop-icon { font-size: 2rem; line-height: 1; margin-bottom: .35rem; }
