.ios-camera-button {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15), inset 0 0 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), inset 0 0 4px rgba(0, 0, 0, 0.3);
  }

  &:active:not(.saving) {
    background: #eaeaea;
    transform: scale(0.95);
  }

  &:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(0 0 139 / 50%);
  }

  &.saving {
    background: #f5f5f5;
    cursor: progress;
    animation: pulse 1.5s infinite;

    .progress-ring {
      display: block;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 3px solid rgb(0 0 139 / 15%);
      border-top-color: rgb(0 0 139 / 50%);
      animation: spin 1s linear infinite;
    }
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}
