body { margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; background-color: #000; color: #e65c00; }
    .container { max-width: 100%; padding: 1rem; margin: 0 auto; box-sizing: border-box; }
    h1 { text-align: center; color: #e65c00; margin-bottom: 1.5rem; }
    .section { background: #1a1a1a; padding: 1rem; border-radius: 10px; box-shadow: 0 4px 8px rgba(230, 92, 0, 0.2); margin-bottom: 1rem; }
    label { font-weight: 600; display: block; margin-bottom: 0.5rem; }
    .input-group { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
    input[type="text"], input[type="file"] {
      padding: 0.6rem; border: 1px solid #e65c00; border-radius: 8px; font-size: 1rem;
      background-color: #000; color: #e65c00; width: 100%; box-sizing: border-box;
    }
    .scanner-button, .camera-button {
      padding: 0.6rem 1rem; font-size: 1rem; background-color: #e65c00;
      color: black; border: none; border-radius: 8px; cursor: pointer; width: 100%;
    }
    .scanner-button:hover, .camera-button:hover { background-color: #cc5200; }
    .info-link { font-size: 1.3rem; margin-left: 0.5rem; text-decoration: none; color: #e65c00; }
    
      #scanner-container { display: none; position: relative; width: 100%; height: 400px; background: #000; margin-bottom: 1rem; border-radius: 10px; overflow: hidden; }

    


#reader {
  width: 100%;
  max-width: 400px;
  height: 200px; /* Ensure height is defined */ 
  min-height: 200px;
  margin: auto;
  background: #222; /* Optional dark background */
  border-radius: 8px;
}

#close-btn {
  margin-top: 10px;
  display: none; /* Shown dynamically via JS */
}

#result {
  margin-top: 15px;
  font-size: 16px;
  color: #0f0;
}

/* Confirmation modal styling */
#confirmModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}
.confirm-container {
  max-width: 500px;
  margin: auto;
  max-height: calc(100% - 2rem);
  overflow-y: auto;
}
/* Note for max file size */
.file-label-note {
  font-size: 0.9rem;
  color: #ccc;
  margin-left: 0.5rem;
  font-style: italic;
}


/* Modal hidden and active states */
.hidden { display: none !important; }
#confirmModal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}


#confirmModal.active {
  overflow-y: auto;
  align-items: flex-start;
  padding-top: 2rem;
}

.confirm-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}
