body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  padding: 40px;
}

input[type="text"] {
  padding: 10px;
  font-size: 16px;
  width: 250px;
  border: none;
  border-radius: 6px;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  background-color: #6a82fb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #4a54e1;
  transform: scale(1.05);
}

#result {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

h1.glow {
  font-size: 36px;
  text-shadow: 0 0 10px #fff, 0 0 20px #c6f, 0 0 30px #6ff;
  margin-bottom: 30px;
}

.flash {
  animation: flashEffect 0.2s;
}

@keyframes flashEffect {
  0% { background-color: #00ff00; }
  100% { background-color: transparent; }
}

#scanner {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

#scanner-preview {
  width: 300px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px #fff;
}

/* ✅ Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  input[type="text"] {
    width: 80%;
    font-size: 14px;
  }

  button {
    width: 80%;
    font-size: 14px;
  }

  h1.glow {
    font-size: 24px;
  }

  #scanner-preview {
    width: 90%;
    height: 180px;
  }

  #result {
    padding: 15px;
    font-size: 14px;
    margin: 20px 10px;
  }
}

@media (max-width: 480px) {
  input[type="text"], button {
    width: 100%;
    margin-bottom: 10px;
  }

  #scanner-preview {
    height: 160px;
  }

  h1.glow {
    font-size: 20px;
  }
}
