.capture-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 9999;
  animation: capture-flash-anim 0.3s ease-out;
  pointer-events: none;
}

@keyframes capture-flash-anim {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0;
  }
}

#capture-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.capture-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: capture-spin 1s linear infinite;
}

@keyframes capture-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#capture-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

#capture-controls .button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 70px;
}

#capture-controls .action-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid white;
  padding: 0;
  box-sizing: border-box;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

#capture-controls .action-button:active {
  transform: scale(0.95);
}

#capture-button {
  background-image: url('assets/icons/photo-camera.png');
}

#capture-button.video-mode {
  background-image: url('assets/icons/videocam.png');
}

#capture-button.recording {
  background-color: #e63946;
  background-image: none;
  position: relative;
}

#capture-button.recording::before {
  content: '';
  width: 30%;
  height: 30%;
  background-color: white;
  border-radius: 2px;
}

#save-video-button {
  background-image: url('assets/icons/download.png');
}

#delete-video-button {
  background-image: url('assets/icons/delete.png');
}

.mode-switcher {
  display: flex;
  gap: 15px;
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.mode-option {
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.mode-option.active {
  color: white;
}

.mode-option.disabled {
  pointer-events: none;
}
