/* /styles.css */
/* Updated: 2026-06-30 12:16 PM EDT */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 16px;
}

.card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

h2 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.notice {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  background: #fff8dc;
  border: 1px solid #e0c45c;
  line-height: 1.4;
}

.status-box {
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 10px;
  background: #eef3f8;
  border: 1px solid #c7d6e4;
  font-size: 14px;
  line-height: 1.4;
}

.status-box.good {
  background: #eaf7ee;
  border-color: #9bd4ad;
}

.status-box.bad {
  background: #fdecec;
  border-color: #e0a1a1;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

button {
  min-height: 44px;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  background: #1f5eff;
  color: #ffffff;
  cursor: pointer;
}

button:disabled {
  background: #aab3c2;
  cursor: not-allowed;
}

.scanner-wrap {
  position: relative;
  width: 100%;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
}

video {
  width: 100%;
  min-height: 300px;
  display: block;
  background: #000000;
  object-fit: cover;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-box {
  width: 92%;
  height: 150px;
  border: 3px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
  position: relative;
}

.scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  background: #ffffff;
  opacity: 0.8;
}

.scan-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -32px;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.result-panel,
.manual-panel,
.tips {
  margin-top: 14px;
  padding-top: 4px;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d0da;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  background: #ffffff;
  color: #17202a;
}

textarea {
  min-height: 90px;
  resize: vertical;
  word-break: break-word;
}

#barcodeText {
  min-height: 130px;
}

ul {
  margin-top: 8px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .page {
    padding: 10px;
  }

  .card {
    padding: 14px;
    border-radius: 12px;
  }

  h1 {
    font-size: 21px;
  }

  button {
    width: 100%;
  }

  .scan-box {
    width: 94%;
    height: 135px;
  }
}