body {
  font-family: system-ui, sans-serif;
  background: #f9f9f9;
  margin: 0;
  /* padding: 1rem; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  color: #333;
}

.container {
  max-width: 480px;
  margin: auto;
  background: #fff;
  /* padding: 1.5rem; */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Main Upload Button */
input[type="file"]#imageInput {
  display: block;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #555;
}

button {
  display: block;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  border: none;
  border-radius: 8px;
  color: white;
  background: #0077ff;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't affect width */
  transition: background-color 0.2s ease;
}

button:hover {
  background: #005edc;
}

.close-btn {
  background: #aaa;
}
.close-btn:hover {
  background: #888;
}

#cameraContainer {
  display: none;
  text-align: center;
  margin-top: 1rem;
}

video,
canvas {
  width: 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
  background: #eee;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box; /* Ensure padding doesn't affect width */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
  outline: none;
}

/* Make readonly fields look different */
input[readonly],
input[type="text"][readonly] {
  /* Be more specific */
  background-color: #f4f4f4;
  color: #555;
  border-color: #ddd;
}

#status {
  text-align: center;
  color: #0077ff;
  font-weight: 600;
  margin: 1rem 0;
  font-size: 1.1rem;
}

/* Contact Card Styling */
.contact-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
  color: #333;
}

.wa-button {
  display: block; /* Make it full-width */
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.wa-button:hover {
  background-color: #1da851;
}
.wa-button:active {
  background-color: #128c7e;
}

/* --- NEW: Photo Uploader Styles --- */

.photo-uploader {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.photo-preview-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e9e9e9;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid #ddd;
}

.photo-placeholder {
  width: 40px;
  height: 40px;
  color: #999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.photo-preview {
  display: none; /* Hidden by default */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-input {
  display: none; /* Hide the actual file input */
}

/* NEW: Wrapper for the buttons */
.photo-uploader-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Style the label to look like a button */
.button-style-label {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  color: white;
  background: #555;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
}

.button-style-label:hover {
  background: #333;
}

/* Nitish */
/* App Screen */
.app-screen {
  min-height: 100vh;
  /* background: linear-gradient(180deg, #0b0b0b, #1a1a1a); */
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #ff6a00;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-btn {
  font-size: 1.3rem;
  cursor: pointer;
  margin-right: 12px;
  opacity: 0.85;
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
}

/* Content */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

/* Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #717a83;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(10px);
}

/* Menu Item */
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item .icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

/* Active Menu */
.menu-item.active {
  opacity: 1;
  color: #ff8c1a;
}

.menu-item.active .icon {
  transform: translateY(-2px);
}
/* Card Container */
.scaner-card {
  max-width: 420px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(221, 80, 50, 0.15),
    rgb(43 109 125 / 0%),
    rgba(24, 59, 78, 0.85)
  );
  /* background: linear-gradient(
    135deg,
    rgba(221, 80, 50, 0.15),
    rgba(43, 109, 125, 0.25),
    rgba(24, 59, 78, 0.85)
  ); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft glowing border */
.scaner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #dd5032, #2b6d7d, #183b4e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Text */
.scaner-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.95;
  color: #000;
}

/* File Input */
.scaner-card input[type="file"] {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  margin-bottom: 15px;
}

.scaner-card input[type="file"]::file-selector-button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  /* background: linear-gradient(135deg, #dd5032, #333); */
  background-color: #333;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

/* Buttons */
.scaner-card button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s ease;
}

/* Open Camera Button */
#cameraBtn {
  background: linear-gradient(135deg, #dd5032, #ff7a4f);
  color: #fff;
  box-shadow: 0 10px 25px rgba(221, 80, 50, 0.4);
}

#cameraBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(221, 80, 50, 0.6);
}

/* Camera Container */
#cameraContainer {
  margin-top: 20px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  display: none;
}

/* Video */
#camera {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #000;
}

/* Capture Button */
#captureBtn {
  background: linear-gradient(135deg, #2b6d7d, #3b8ea3);
  color: #fff;
}

/* Close Button */
.close-btn {
  background: transparent;
  color: #ffb4a4;
  border: 1px solid rgba(255, 180, 164, 0.4);
}

.close-btn:hover {
  background: rgba(255, 180, 164, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
  .scaner-card {
    margin: 20px;
    padding: 20px;
  }
}
