/* ===== Base ===== */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #b71c1c;
  background: linear-gradient(135deg, #ffffff 0%, #f7eaea 100%);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 420px;
  padding: 32px 40px 36px;

  text-align: center;
  background-color: #ffffffcc;
  border-radius: 14px;
  border-top: 5px solid #e53935;

  box-shadow: 0 8px 28px rgba(183, 28, 28, 0.07);
}

.logo {
  height: 200px;
  margin: 0 0 20px 0;
}

h1 {
  margin: 0 0 14px 0;
  color: #e53935;
  font-weight: 700;
  letter-spacing: 1.2px;
}

p {
  margin: 0 0 24px 0;
  color: #b71c1c;
}

/* ===== Forms ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

input[type='text'],
input[type='file'] {
  width: 100%;
  padding: 10px;

  font-size: 16px;
  font-weight: 600;
  color: #b71c1c;

  border-radius: 8px;
  border: 2px solid #e53935;
  background-color: #ffffff;
}

input[type='file'] {
  cursor: pointer;
}

button,
input[type='submit'] {
  width: 100%;
  padding: 13px 0;

  font-size: 16px;
  font-weight: 700;
  color: #ffffff;

  border: none;
  border-radius: 8px;
  cursor: pointer;

  background-color: #e53935;
  box-shadow: 0 2px 7px #f4433660;
  transition: background-color 0.2s ease;
}

button:hover,
input[type='submit']:hover {
  background-color: #b71c1c;
}

/* ===== Notes & Result ===== */
.note {
  margin-top: 22px;
  font-size: 14px;
  color: #a17f7f;
}

#result {
  margin-top: 32px;
  padding: 20px;

  font-weight: 700;
  color: #000000;

  background-color: #fff5f5;
  border-radius: 12px;
  box-shadow: 0 2px 7px #f443361f;
}

/* ===== Label preview ===== */
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.label-text {
  max-width: 60%;
  text-align: left;
  word-break: break-word;
}

.code-row {
  margin-top: 6px;
  font-size: 12px;
  word-break: break-all;
  text-align: left;
}

/* ===== States ===== */
.hidden {
  display: none;
}
