body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #74ebd5, #acb6e5);
  color: #333;
}

h1 {
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

#form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

#form label {
  color: #fff;
  font-weight: bold;
}

input, select {
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-left: 5px;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #ff7f50;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background 0.3s;
}

button:hover {
  background-color: #ff5722;
}

#reader {
  width: 320px;
  max-width: 90%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background-color: #fff;
  margin-bottom: 15px;
}

#scanned-id {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

#result {
  margin-top: 10px;
  padding: 15px 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 1.2rem;
  text-align: center;
  max-width: 90%;
  word-wrap: break-word;
}

.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ff4d4d;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
}
