/* Shared by the Generators that use a form + preview + download layout
   (qr-code-generator, barcode-generator), all 12 languages. Linked as
   ../../css/categories/generator.css, after css/style.css + css/lang/{lang}.css and
   before the tool's own css/tools/{tool}.css. Each tool's preview element
   (#qrcode / #barcode) lives in its css/tools file; the body font comes from css/lang. */

.card {
  padding: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.form-row label {
  width: 90px;
  flex-shrink: 0;
  font-size: 13px;
  color: #555;
}
.form-row input[type=text] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-row input:focus { border-color: #0078d4; }

.form-row select {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  cursor: pointer;
}

.btn-calc {
  width: 100%;
  padding: 11px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.result-box {
  display: none;
  margin-top: 16px;
  background: #f0f6ff;
  border: 1px solid #c5ddf9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.result-box.show { display: block; }

.btn-download {
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #0078d4;
  border: 1px solid #0078d4;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-download:hover { background: #e8f2fc; }
