body{
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.2);
}

.camera-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;/* #363636 */
  padding: 10px 0;
  box-sizing: border-box;
}

#cameraFeed {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  border-radius: 30px;
  object-fit: cover;
  background: #000000;/* #5c5c5c */
}

#tattooOverlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25vw; 
  max-width: 250px;
  min-width: 100px;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  mix-blend-mode: multiply;
  cursor: move; 
  user-select: none;
  transition: transform 0.2s ease; 
  z-index: 1000;
}

.filter-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


.filter-bar::-webkit-scrollbar{
  display: none;
}

.filter-item {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid #fff;
  background: #111;
}
.filter-item:hover{
  transform: scale(1.1);
  border-color: #ff9800;
}

.upload-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
  color: #fff;
  font-size: 24px;
}

.placement-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1001;
}

.placement-selector select {
  margin-left: 8px;
  padding: 4px 6px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
}

/* === Mobile Responsiveness (max-width: 768px) === */
@media screen and (max-width: 768px) {
  .camera-container {
    width: 100%;
    height: 100vh;
    padding: 0;
    background: #000; 
    overflow: hidden;
  }

  #cameraFeed {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0; 
    object-fit: cover; 
    background: #000;
  }

  #tattooOverlay {
    width: 35vw;
  }

  .filter-bar {
    bottom: 0;
    gap: 10px;
    padding: 8px;
    overflow-x: auto; 
    justify-content: center;
  }

  .filter-item {
    width: 55px;
    height: 55px;
  }

  .back-btn {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
  }
}
