body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f4f4f9;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

form {
  margin-bottom: 20px;
}

input {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}


button {
  padding: 10px 20px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: #0056b3;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Label layout for 40mm x 30mm print */
#result {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 40mm;
  height: 30mm;
  padding: 2mm;
  font-family: Arial, sans-serif;
  background: white;
  margin: 0;
  box-sizing: border-box;
}

/* Horizontal labels container */
.labels-container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  width: 12mm;
  height: 25mm;
  margin-right: 1mm;
}

/* Style for each individual horizontal label */
.horizontal-label {
  font-size: 8px;
  font-weight: bold;
  color: #000;
  text-align: left;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 1.5mm;
}

/* Company Name (first label) - bigger and aligned to QR code top */
#labelNameText {
  font-size: 10px;
  margin-bottom: 2mm;
  margin-top: 10px;
}

.vertical-container {
  display: none;
}

/* Style the QR Code canvas */
.canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25mm;
  height: 25mm;
  background-color: #ffffff;
}

#qrcode {
  width: 25mm !important;
  height: 25mm !important;
}


canvas {
  margin-top: 10px;
}

/* Print styles for label maker */
@media print {
  body {
    margin: 0;
    padding: 0;
    background: white;
  }
  
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  
  form, h1 {
    display: none;
  }
  
  #result {
    width: 40mm;
    height: 30mm;
    margin: 0;
    padding: 2mm;
    page-break-inside: avoid;
  }
  
  @page {
    size: 40mm 30mm;
    margin: 0;
  }
}
