body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background-color: #f5f8fc;
  color: #333;
  padding-bottom: 60px;
}
.matched {
  font-weight: bold;
  color: green;
  background-color: #d4edda;
  border-left: 5px solid green;
  padding: 5px;
  transition: all 0.3s ease-in-out;
}



header {
  display: flex;
  align-items: center;
  background-color: #2a5d9f;
  color: #fff;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: center; /* Center content */
  gap: 10px; /* Space between logo and text */
}


.title {
  font-size: 1.2em;
  font-weight: bold;
}
header,
footer {
  box-sizing: border-box;
  width: 100%;
  left: 0;
  margin: 0;
}
footer {
  min-height: 35px;
  padding: 5px; /* Reduce padding */
  font-size: 0.9em; /* Slightly reduce text size */
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #2a5d9f;
  color: white;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}
.container {
  width: 95%;
  max-width: 700px;
  margin: 5px auto; /* Centers horizontally */
  margin-top: 5px !important; /* Reduce top margin */
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensures child elements are centered */
}
#dashboard {
  width: 95%;
  max-width: 700px;
  margin: 20px auto; /* Ensures it is centered */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers everything inside */
  justify-content: center; /* Ensures vertical centering */
}

.card {
  width: 100%;
  max-width: 650px; /* Keep width uniform */
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center everything inside */
}
.card h3 {
  margin-bottom: 5px !important; /* Reduce space below the title */
  font-size: 1.1em; /* Optionally reduce font size slightly */
}

.card p,
.card button,
.card input {
  margin-top: 5px !important; /* Reduce space above content */
  margin-bottom: 5px !important; /* Reduce space below */
}
input[type="text"] {
  width: 90%;

  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 12px; /* Increased padding */
  margin-bottom: 12px;
  font-size: 16px; /* Better readability */

}
button {
  background-color: #2a5d9f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px 0;
  padding: 10px 15px;
  font-size: 16px;
  margin-top: 10px;
}
#submit-code-button {
  width: 80%;
  padding: 12px 20px;
  font-size: 16px;
  margin: 10px auto;
}
button:hover {
  background-color: #1c437a;
}
ul {
  list-style-type: none;
  padding: 0;
}
li.matched {
  background-color: #d4edda;
  border-left: 5px solid #28a745;
  padding: 5px 10px;
  margin-bottom: 5px;
}

.status {
  font-weight: bold;
}


#submit-code-button,
#startQrScanner,
#stopQrScanner {
  width: 80%; /* Consistent width */
  padding: 12px 20px;
  font-size: 16px;
  margin: 10px auto;
}
#qr-reader {
  width: 90%;
  max-width: 300px;
  margin: auto;
}

.or-divider {
  margin: 10px 0;
  font-weight: bold;
  color: #555;
}

.hidden {
  display: none !important;
}