body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 1rem auto;
  max-width: 1000px;
  background: #f5f7fa;
  color: #333;
  line-height: 1.4;
}

#editor-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

#editor, #preview-container {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
  border: 1px solid #ddd;
  width: 45%;
}

label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}
label input {
  margin-top: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
}
label input:focus {
  border-color: #3b82f6;
  outline: none;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.buttons button,
.buttons .btnImport {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.buttons button:hover:not(:disabled),
.buttons .btnImport:hover {
  background: #2563eb;
}

.label-grid {
  display: grid;
  width: 220px;
  height: 140px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 6px;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  background: #fafafa;
}
.label-grid div {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.area-blank { grid-area: 1 / 1 / 2 / 2; }
.area-icon  { grid-area: 1 / 2 / 2 / 3; }
.area-text  { grid-area: 2 / 1 / 3 / 2; flex-direction: column; align-items: flex-start; padding-left: 6px; color: #222; }
.area-qr    { grid-area: 2 / 2 / 3 / 3; }
.area-text div:first-child {
  font-weight: 700;
  margin-bottom: 4px;
}
