* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url("../images/BG_5.jpeg"); /* Add this line */
  background-size: cover; /* Preserves image aspect ratio and graphics quality */
  background-position: center center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents image from repeating */
  background-attachment: fixed; /* Keeps image fixed while scrolling */
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.2);
  backdrop-filter: blur(10px);
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1a237e;
  font-weight: bold;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: rgba(0, 123, 255, 0.1);
  cursor: pointer;
  border-radius: 5px;
  color: #1a237e;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: #1a237e;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-btn:hover {
  background-color: #1a237e;
  color: white;
  transform: translateY(-2px);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

input,
select {
  padding: 0.8rem;
  border: 2px solid rgba(26, 35, 126, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 10px rgba(26, 35, 126, 0.2);
}

button {
  padding: 0.8rem 1.5rem;
  background-color: #1a237e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #283593;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.qr-result {
  text-align: center;
  margin-top: 2rem;
}

#qr-image {
  max-width: 300px;
  margin-bottom: 1rem;
}

.error-message {
  color: #f44336;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.input-group input.error {
  border-color: #dc3545;
}

/* For smaller screens */
@media screen and (max-width: 768px) {
  body {
    background-size: auto 100%;
    background-position: center top;
  }

  .container {
    margin: 1rem;
    padding: 1rem;
    width: auto;
  }
}

/* For very small screens */
@media screen and (max-width: 480px) {
  .container {
    margin: 0.5rem;
    padding: 0.5rem;
  }
}
