/* Barreto.dev — réplicas web dos programas de PC (visual de janela do Windows / Tkinter). */
:root {
  --desk: #1f2937;
  --win: #f3f3f3;
  --panel: #ffffff;
  --line: #d4d4d4;
  --ink: #1b1b1b;
  --muted: #5f6368;
  --accent: #0067c0;
  --accent-ink: #ffffff;
  --log: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 20% 0%, #334155 0%, var(--desk) 55%, #0f172a 100%);
  color: var(--ink);
  font-size: 13px;
  padding: 28px 16px 80px;
}
.nota {
  max-width: 860px;
  margin: 0 auto 16px;
  color: #e5e7eb;
  font-size: 13.5px;
  line-height: 1.5;
}
.nota b { color: #fff; }
.nota .pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  background: #16a34a;
  color: #fff;
  vertical-align: 1px;
}
.nota .pill.sim { background: #d97706; }
.win {
  max-width: 860px;
  margin: 0 auto;
  background: var(--win);
  border: 1px solid #9ca3af;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-left: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.titlebar .ico { width: 16px; height: 16px; flex: none; }
.titlebar .t { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .ctl { display: flex; height: 100%; }
.titlebar .ctl span { width: 46px; display: grid; place-items: center; color: #333; font-size: 12px; }
.titlebar .ctl span:last-child:hover { background: #c42b1c; color: #fff; }
.body { padding: 10px 12px 12px; }
label.lbl { display: block; margin: 4px 0 4px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.grow > .fill { flex: 1; min-width: 160px; }
input[type="text"], input[type="number"], select {
  font: inherit;
  height: 26px;
  padding: 2px 6px;
  border: 1px solid #a3a3a3;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
input[type="number"] { width: 72px; }
input[readonly] { background: #fff; }
fieldset.lf {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 10px 0;
  padding: 6px 10px 10px;
}
fieldset.lf legend { padding: 0 4px; }
.grid-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.grid-opts label { display: inline-flex; gap: 6px; align-items: center; }
.btn {
  font: inherit;
  min-width: 88px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #a3a3a3;
  border-radius: 4px;
  background: linear-gradient(#fdfdfd, #ececec);
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); background: #e5f1fb; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #005aa8; }
.bar {
  position: relative;
  flex: 1;
  height: 16px;
  border: 1px solid #bcbcbc;
  background: #e6e6e6;
  overflow: hidden;
  border-radius: 2px;
}
.bar i { position: absolute; top: 0; bottom: 0; width: 0; background: #06b025; transition: width 0.2s; }
.bar.indet i { width: 28%; animation: indet 1.1s linear infinite; }
@keyframes indet { from { left: -28%; } to { left: 100%; } }
.log {
  margin-top: 4px;
  height: 230px;
  overflow: auto;
  background: var(--log);
  border: 1px solid #a3a3a3;
  padding: 6px 8px;
  font: 12.5px/1.45 Consolas, "Cascadia Mono", ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.out { margin-top: 12px; }
.out h4 { margin: 12px 0 6px; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.thumbs img { width: 100%; display: block; border: 1px solid var(--line); background: #000; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dl a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.hint { color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  body { padding: 14px 8px 80px; }
  .titlebar .ctl span { width: 34px; }
}
