/* Camera and photo capture improvements */

/* Button styling for camera controls */
#start-photo-camera {
  background-color: #043922 !important;
  border-color: #043922 !important;
  color: white !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

#start-photo-camera:hover {
  background-color: #075c37 !important;
  border-color: #075c37 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

#capture-photo {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

#capture-photo:not([disabled]):hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
  cursor: pointer !important;
}

#capture-photo[disabled] {
  background-color: #cccccc !important;
  border-color: #bbbbbb !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

/* Camera container styling */
.photo-container {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  overflow: hidden;
  position: relative;
}

#photo-webcam {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  display: block !important;
  background-color: #000 !important;
}

/* Photo container background should be white when showing placeholder */
.photo-container {
  background-color: white !important;
}

/* Only make background black when video is showing */
.photo-container.camera-active {
  background-color: #000 !important;
}

#photo-preview-container {
  border: 1px solid #dee2e6;
  padding: 15px;
  border-radius: 8px;
  background-color: #f8f9fa;
}

#captured-photo {
  max-height: 300px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Camera prompt styling to match video section */
#start-photo-camera-prompt {
  text-align: center;
  padding: 20px;
  display: block !important;
}

#start-photo-camera-prompt i {
  font-size: 3rem;
  color: #B07C00;
  margin-bottom: 15px;
  display: block;
}

#start-photo-camera-prompt p {
  color: #302017;
  font-weight: 500;
  margin: 0;
}