body {
  margin: 0;
  background: #f0f2f5;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;  /* Default = 16px */
}
html {
  font-size: 16px; /* Base font size */
}
h1 {
  font-size: 1.2rem;
}

input, button {
  font-size: 1.4rem;
}
.hero, header {
  background: linear-gradient(135deg, #00c9ff, #92fe9d);
  padding: 10px 10px;
  text-align: center;
  color: white;
}
.hero h1, header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}
.hero p, header p {
  font-size: 1.2rem;
  margin-top: 10px;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}
loggedInuser{
  font-weight: bold;
  color: #ff764c;
  font-size: 0.8rem;
  text-align: left;
}
.features-section, .testimonials-section, .contact-section {
  padding: 60px 20px;
}
.feature, .testimonial {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}
.feature:hover {
  transform: translateY(-5px);
}
.feature i {
  font-size: 2.5rem;
  color: #00c9ff;
  margin-bottom: 15px;
}
.cta-section {
  background: #333;
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
.testimonial {
  margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  margin-bottom: 15px;
}
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

main {
  padding: 10px 10px;
  background: white;
  margin-top: 10px;
  border-radius: 10px;
}

input[type="text"] {
  padding: 10px;
  width: 70%;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 10px 15px;
  background: #004466;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background: #222;
  color: white;
  padding: 10px 0;
  text-align: center;
}

footer nav a {
  color: #ccc;
  margin: 0 10px;
  font-size: 0.9rem;
}

footer nav a:hover {
  color: #fff;
}
.logout {
  width: 100px;
  height: 100px;
  position: absolute;
  right: 0;
  margin: 2px;
}
.awesomplete {
  width: 100%;
}

.awesomplete ul {
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.awesomplete li[aria-selected="true"] {
  background: #004466;
  color: white;
}
.spinner-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top-color: #004466;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
username {
  font-weight: bold;
  color: #ff764c;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  header h1 {
    font-size: 1.3rem;
    padding-left: 10px;
  }

  input[type="text"] {
    width: calc(100% - 120px);
    margin-right: 0;
    margin-bottom: 10px;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }
}

/* Shared Base Button Style */
button.custom-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* 1. 📷 Scan QR Code - Purple Gradient */
#scanQRButton {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  color: #fff;
}
#scanQRButton:hover {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.3);
}
#scanQRButton:active {
  transform: scale(0.97);
}
#scanQRButton:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* 2. ♻️ Reset Search - Cool Gray */
#resetButton {
  background: linear-gradient(135deg, #4b5563, #6b7280);
  color: #fff;
}
#resetButton:hover {
  background: linear-gradient(135deg, #374151, #4b5563);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(75, 85, 99, 0.3);
}
#resetButton:active {
  transform: scale(0.97);
}
#resetButton:focus {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}

/* 3. 🗑 Clear Recent List - Minimal Red */
#clearRecentButton {
  background: transparent;
  color: #ef4444;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
}
#clearRecentButton:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  transform: translateY(-1px);
}
#clearRecentButton:active {
  transform: scale(0.98);
}
#clearRecentButton:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* 4. ✅ Submit / Check-In Attendee - Green */
#submitButton {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}
#submitButton:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}
#submitButton:active {
  transform: scale(0.97);
}
#submitButton:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* 5. 🚪 Logout - Warm Red */
#logoutBtn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}
#logoutBtn:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}
#logoutBtn:active {
  transform: scale(0.97);
}
#logoutBtn:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}
.status-message {
  align-items: center;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.status-message .icon {
  margin-right: 10px;
  font-size: 18px;
}

/* Success - Checked in */
.status-message.success {
  background-color: #e6ffed;
  color: #1a7f37;
  border-color: #b7ebc6;
}

/* Info - Not yet checked in */
.status-message.info {
  background-color: #e6f4ff;
  color: #0c63e4;
  border-color: #b3daff;
}

/* Error - Not in list */
.status-message.error {
  background-color: #fff1f0;
  color: #cf1322;
  border-color: #ffa39e;
}
.status-message.warning {
  background-color: #fffbe6;
  color: #ad6800;
  border: 1px solid #ffe58f;
}

.highlight-unpaid {
  color: #d4380d;
  font-weight: bold;
  background-color: #fff1f0;
  padding: 2px 6px;
  border-radius: 4px;
}
#paymentConfirmationWrapper {
  background-color: #fff1f0;
  border: 1px solid #ffa39e;
  padding: 10px;
  border-radius: 6px;
  color: #cf1322;
  font-weight: 500;
}