body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  transition: background-color 0.5s ease;
  background-size: auto 150px; /* Ensures logo is not distorted */
  background-position: center;
  background-repeat: repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 80px; /* Prevents bottom menu from overlapping content */
}

/* Reduce Swal modal text and title font size */
.swal2-popup {
  font-size: 14px !important;
}

.swal2-title {
  font-size: 20px !important;
}

/* Styling for last scanned barcode inside Swal */
.last-scanned {
  margin-top: 10px;
  font-size: 16px;
  color: #555;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: calc(100vh - 90px); /* Adjust to avoid bottom menu */  
  margin-top: 0; /* Remove extra margin */
}

/* Bottom menu styling */
.bottom-menu {
  display: flex;
  justify-content: center; /* Center the icons horizontally */
  background-color: black;
  padding: 15px 0;
  color: white;
  font-size: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.712);
  position: fixed;
  bottom: 0;
  left: 0;  /* Ensure it's aligned left */
  width: 100%;
  z-index: 500;
  align-items: center;
  height: 90px;
  gap: 40px; /* Add spacing between the icons */
}

.bottom-menu i {
  font-size: 38px;
  color: white;
  cursor: pointer;
  line-height: 1;
  margin-bottom: 20px;
}

.bottom-menu i:hover {
  color: #ffcc00; /* Change color on hover */
}

.last-scan-label {
  display: block;
  text-align: center;
  font-size: 18px;
  padding: 2px;
  font-weight: bold;
}


@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.scan-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Space between icon and text */
  font-size: 28px;
  font-weight: bold;
  color: #ff8c00; /* Dark orange */
  animation: pulse 2s infinite ease-in-out; /* Slower pulse */
}

.scan-label i {
  font-size: 28px; /* Adjust QR code size */
}


