#camera-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

#viewfinder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#top-ui {
  position: absolute;
  top: env(safe-area-inset-top, 20px);
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 100;
  pointer-events: none;
}

#mode-status-container {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

#mode-indicator {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

#controls-layer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 240px; /* Increased height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: env(safe-area-in-bottom, 30px);
  /* Stronger Blackout Bar for Contrast */
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.8) 40%, 
    transparent 100%);
  z-index: 30;
}

#bottom-ui {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 24px;
}

.action-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mode-selection-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Increased Icon Size */
.mode-option {
    background: none;
    border: none;
    padding: 15px; /* Larger touch target */
    cursor: pointer;
    font-size: 32px; /* Scaled up icons */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mode-option.active {
    transform: scale(1.3);
}

.shutter-btn {
  width: 84px; /* Scaled up */
  height: 84px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.shutter-btn::after {
  content: "";
  width: 64px;
  height: 64px;
  background-color: #ffffff;
  border-radius: 50%;
}

#timer-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 31;
}

#timer-progress {
  height: 100%;
  width: 0%;
  background: #ff3b30;
}
